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

REST interface does not accept accented characters #2160

Closed
xatapult opened this issue Sep 19, 2018 · 2 comments
Closed

REST interface does not accept accented characters #2160

xatapult opened this issue Sep 19, 2018 · 2 comments
Labels
investigate issues being looked at

Comments

@xatapult
Copy link

xatapult commented Sep 19, 2018

What is the problem

I have XML files in my database with accented characters in their filenames that I would like to access with REST. For instance /db/TEST/bäk.xml

I do not seem to be able to access this file using the REST interface. I tried (in the Chrome's address bar) http://.../exist/rest/db/TEST/bäk.xml and http://.../exist/rest/db/TEST/b%C3%A4k.xml but all yield the same result: Document /db/TEST/bäk.xml not found

I suppose the problem is with multibyte Unicode characters in general?

BTW, I also need this for the PUT and DELETE REST functionality but that fails as well.

What did you expect

The contents of the file

Describe how to reproduce or add a test

Create a file with an accented character somewhere. Try to retrieve it using REST

Context information

  • eXist 4.3.1 build 201807241821
  • Java version 1.8.0_181
  • Operating system W10
  • 64 bit
  • JAR installed
  • Any custom changes in e.g. conf.xml? Data directory moved to outside eXist installation directory
@triage-new-issues triage-new-issues bot added the triage issue needs to be investigated label Sep 19, 2018
@joewiz
Copy link
Member

joewiz commented Sep 19, 2018

I suspect that underlying this is the phenomenon I described in #1824 (comment). I don't think I had ever quite encountered this aspect of it - where there's no way at all to address a resource over REST - though I am able to see it over WebDAV via http://localhost:8080/exist/webdav/db/b%C3%A4k.xml. That URL opens up just fine for me in Chrome. But if I change webdav to rest, I get your result:

HTTP ERROR 404

Problem accessing /exist/rest/db/b%C3%A4k.xml. Reason:

Document /db/bäk.xml not found

@joewiz joewiz added the investigate issues being looked at label Sep 19, 2018
@triage-new-issues triage-new-issues bot removed the triage issue needs to be investigated label Sep 19, 2018
@duncdrum
Copy link
Contributor

duncdrum commented Jan 8, 2019

@joewiz agreed
@eriksiegel consolidating this ticket, please continue the discussion in #1824

@duncdrum duncdrum closed this as completed Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate issues being looked at
Projects
None yet
Development

No branches or pull requests

3 participants