Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Invalid Characters in Path #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

elgertam
Copy link
Member

  • Added exception when a character in the path is not valid on Synapse
  • Added test verifying that invalid paths throw exceptions

* Added exception when a character in the path is not valid on Synapse
* Added test verifying that invalid paths throw exceptions
Copy link
Member

@pcstout pcstout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can catch the filename errors (on .store()) and pretty them up that way we don't have to keep a list of valid/invalid chars.

@@ -226,6 +229,17 @@ def _data_push(self, ki_project_resource, syn_parent):
sys_path = SysPath(ki_project_resource.abs_path, rel_start=kiproject.local_path)
syn_entity = None

# check for valid characters in string
for rel_part in sys_path.rel_parts:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs to be a method so it can be called on line #219 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants