-
Notifications
You must be signed in to change notification settings - Fork 149
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
BUG & FIX: Windows path bugfix for "Error: ... contains invalid WIN32 path characters." #390
Comments
If you wan't i can create an pull request? Also some changes in the Filesystem are required to work:
|
@philippdonabauer We'd be happy to have your PR. Can you write a test in https://github.com/jamhall/s3rver/blob/master/test/test.js with your use case that fails on Windows, then PR your test code and post your output? |
@leontastic yes i can do. Next weekend i will write a test and make a pull request with the depending changes. Thank you. |
Still getting this error --version 4.5.0
It might be that the test created in relation to #420 with commit cf29c53 doesn't consider region or amplify mock (just guesses as don't have time to look into currently) Workaround: use public (not vault or level: private)Note: potentially region was not in path before, region is not in public as yet |
@SimonLegg , yes. I am facing the same issue. But I need to use protected or private. Any workaround for it? |
@rehanbabertkxel - I'm just in development at the moment so I'm sticking with public until i need to properly deploy then I'll just switch to private. I might use project environment variables or build environment to still allow amplify mock to be used for local development. Regards |
To bugfix "invalid WIN32 path characters" insert following code.
This error message is produced if you use the Amplify private storage put command to upload on s3erver on windows. The identity id contains an ":" so the path for the private upload is "private/region:identity_id/file" and windows does not allow special characters like ":", "<"...
At:
s3rver/lib/models/s3-object.js
Lines 6 to 9 in 9d8e6ca
after
this.key= key;
insert following code:The text was updated successfully, but these errors were encountered: