paperless icon indicating copy to clipboard operation
paperless copied to clipboard

Error parsing name file if format test - name of the file - tag.pdf

Open ahyear opened this issue 6 years ago • 2 comments

a new issue appeared on email consuming process:

the email subject was like: test - name of the file - tag1,tag2

The file get in the consume directory but kills the docker consume when trying to parse it.

test - name of the file - tag1,tag2.pdf

the error is: documents.models.MultipleObjectsReturned: get() returned more than one Tag -- it returned 2!

No probleme when i test with a file named xxxx.pdf

Thank you for your help

ahyear avatar Dec 23 '18 13:12 ahyear

In fact the log is safe explained when there is more than one tag it craches. Is there a way to fixe that?

Normally there can be more than one tag per doc...

ahyear avatar Mar 24 '19 20:03 ahyear

stil the same issue.

If a doc il named 'test - name of the file - tag1,tag2.pdf' ore even 'test - name of the file - tag.pdf' it still crashes.

you need to rename it 'test - name of the file.pdf' in the comsume directory so it can pass...

ahyear avatar Jan 13 '21 15:01 ahyear