[GH-ISSUE #496] Files with "&" w/ filename will be ignored by GUI-Import #382

Closed
opened 2026-02-25 21:31:49 +03:00 by kerem · 3 comments
Owner

Originally created by @olli0815 on GitHub (Dec 18, 2022).
Original GitHub issue: https://github.com/ciur/papermerge/issues/496

Originally assigned to: @ciur on GitHub.

In case you experience issues with docker image provided by linuxserver.io/papermerge, please open bug report in their repository.

Description
If a filename contains any "&" the file won't be imported

Expected
import or error message in GUI

Info:

  • Papermerge Version FE 2.1.0b12
Originally created by @olli0815 on GitHub (Dec 18, 2022). Original GitHub issue: https://github.com/ciur/papermerge/issues/496 Originally assigned to: @ciur on GitHub. **In case you experience issues with docker image provided by [linuxserver.io/papermerge, please open bug report in their repository.](https://github.com/linuxserver/docker-papermerge/issues)** **Description** If a filename contains any "&" the file won't be imported **Expected** import or error message in GUI **Info:** - Papermerge Version FE 2.1.0b12
kerem 2026-02-25 21:31:49 +03:00
Author
Owner

@ciur commented on GitHub (Dec 21, 2022):

What happens here is that backend returns an error with message:

{"errors":[{"detail":"Enter only safe characters.","status":"400","source":{"pointer":"/data/attributes/title"},"code":"invalid"}]}

Which is correct - as the backend is not allowed to upload files which contains "&".
However, the frontend (i.e. GUI) does not show the error to user :(.

I see two problems here actually:

  1. It should be documented what are allowed files names (valid file names)
  2. The GUI should report the problem i.e. show why files was not uploaded
<!-- gh-comment-id:1360935640 --> @ciur commented on GitHub (Dec 21, 2022): What happens here is that backend returns an error with message: `{"errors":[{"detail":"Enter only safe characters.","status":"400","source":{"pointer":"/data/attributes/title"},"code":"invalid"}]}` Which is correct - as the backend is not allowed to upload files which contains "&". However, the frontend (i.e. GUI) does not show the error to user :(. I see two problems here actually: 1. It should be documented what are allowed files names (valid file names) 2. The GUI should report the problem i.e. show why files was not uploaded
Author
Owner

@ciur commented on GitHub (Dec 24, 2022):

Following pull requests handles also the invalid characters set error messages i.e. when user uploads a document
with title containing one of the invalid set characters - it will display an error message:

https://github.com/papermerge/papermerge.js/pull/35/files

<!-- gh-comment-id:1364470020 --> @ciur commented on GitHub (Dec 24, 2022): Following pull requests handles also the invalid characters set error messages i.e. when user uploads a document with title containing one of the invalid set characters - it will display an error message: https://github.com/papermerge/papermerge.js/pull/35/files
Author
Owner

@ciur commented on GitHub (Dec 24, 2022):

invalid character set error message

<!-- gh-comment-id:1364470271 --> @ciur commented on GitHub (Dec 24, 2022): ![invalid character set error message](https://user-images.githubusercontent.com/24827601/209424002-99b2323c-d328-45a4-ae00-01df3942b2ef.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#382
No description provided.