-
Notifications
You must be signed in to change notification settings - Fork 171
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
No exception when PUT is used with incorrect URI or missing file #2017
Comments
hi - as you mentioned, this issue is #1984 . Please allow us some time to address it, and in the meantime you're invited to follow the work on the issue this duplicates. |
Hi, the only reason I made this a separate issue, is that I'm not complaining about the requirement of using file:// instead of file:///. Rather this is about getting no error for an invalid path. I'm not sure if this extends to all invalid paths? Or just the two-vs-three-slash case. If you like, I can try with a completely invalid path and see if it still fails silently. |
Your feedback on 24 December 2024 about the non-existing exception in scenario which #1984 describes has been already relied to the team the same day, so hopefully they'll consider when developing the fix for #1984. |
Thanks, and for the record, I verified that a total garbage path also fails silently Perhaps this warrants a separate issue as this looks like a distinct symptom from the file:// vs file:/// case I suspect what is happening (having written this same kind of code) is that the PUT is treating the path as a wildcard pattern and uploading "all matching files", and of course there are none. |
Thank you for testing. We'll address this on #1984 . |
3.19.* and later
Windows (any)
JDK 17
Using a PUT to upload to a stage from a Windows file path, if you send an invalid path like file://C:/this/path/is/garbage the PUT does nothing.
Please see the related issue as described in #1984.
This issue is basically a follow-on of "... and it should have thrown an exception instead of failing silently"
An exception is thrown when invalid path like file:///C:/path/to/file or file://C:/path/to/garbage is used instead of a valid path starting with file://...
I have not tried that, but it doesn't matter. Driver should throw an exception.
The text was updated successfully, but these errors were encountered: