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 S3 objects whose names include characters that are invalid for Synapse #29

Open
BrunoGrandePhD opened this issue Mar 23, 2021 · 0 comments
Assignees

Comments

@BrunoGrandePhD
Copy link

Currently, the Lambda function fails when trying to synchronize a new object to Synapse when the file name contains invalid characters (e.g. &). Specifically, these characters are allowed by S3 but not allowed by Synapse. Hence, the file will exist in S3 but not in the corresponding Synapse project.

Here's the error that I found in the Lambda function logs:

synapseclient.core.exceptions.SynapseHTTPError: 400 Client Error: 
Invalid Name: '0000350121_H&E_A1.ome.tiff'. Names may only contain: letters, numbers, spaces, underscores, hyphens, periods, plus signs, apostrophes, and parentheses
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

No branches or pull requests

2 participants