-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
encode collection/path and report proper exception if any #232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - but I can't really say if it will work. For that I think @wolfgangmm or @joewiz are probably the best.
@gmella Thank you! Could you please supply a test case demonstrating why this addition of encode-uri was needed for you? Reviewers: Do not merge without further study and discussion. This is an area where we have erred in the past. We do not want to double-encode... |
@joewiz my first intend was just to fix error report since an exception was reported on upload.xql POST with a file that contains datetime info with colon in its filename.
My second modification was the encoding because using err:description then reported : I mixed both concern after proposing a PR on the bad branch... Sorry for my lack of efficiency. Test case will then only to perform an upload using eXide for a file that contains colon character. |
@gmella The issue of special characters in eXist resource names is complex and unfortunately not resolved - see eXist-db/exist#1824. Like the We've tried applying encoding and decoding to collection and resource path URIs in eXide, and unfortunately this resulted in inadvertent double-escaping—likely due to bugs in the encoding/decoding functions and/or due to unanticipated escaping of GET/POST parameters in the HTTP context. Thus, while I'd entertain a PR that encodes every collection and path URI, I would only do so if it were accompanied by full integration tests and test suite showing that characters of every class mentioned in the RFC performed as expected. If you're interested in this area, I'd greatly welcome your participation in issue 1824 and then back here once we've ironed out those issues? This is an important area that deserves care and attention. |
@joewiz Ok I will add comments on eXist-db/exist#1824. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still want to see the working error message in the code base.
Thanks to #247, I close my old (mixed/unclear) pull request and will try later again the encoding side. |
can store back again some filenames with colon or any other encoding requirement
and
error is now properly returned in json response on upload.xql POST (still to be displayed i guess)