File names / paths with spaces cannot be navigated to via the Documents tab

Description

If the user uploads a file with spaces in the name or path, it can not be accessed via the Documents tab
i.e. clicking on it will not show the languages list in order to translate the document.

1. Sign in and go to a maintained project
2. Click Settings->Documents-> +
3. Browse and select a document with spaces in the path, or use the Advanced area to add a path with spaces
4. Click Upload
5. Click the Documents tab after successful upload
6. Click that document

Actual:
Nothing happens

Expected:
Language list shown to begin translating

Environment

None

Activity

Show:
Alex Eng
November 26, 2015, 10:44 PM

After investigation, path/name only with whitespaces works fine. But if it contains forward slash `/`, even after we encode it to `%2F`, it doesn't work.

This is due to jboss/apache restriction for security. http://stackoverflow.com/questions/4069002/receive-an-http-400-error-if-2f-is-part-of-the-get-url-in-jboss

Carlos Munoz
November 26, 2015, 11:15 PM

What about turning the doc id into a query param instead of a path param? Unfortunately it would break existing urls, but it would be a solid solution imo.

Assignee

Alex Eng

Reporter

Damian Jansen

Labels

Tested Version/s

None

Sprint

None

Fix versions

Affects versions

Priority

Highest
Configure