sync failed due to PDF file at the root of the work directory
After upgrading to paperwork2 the sync at startup was broken. So label search and full text search etc. did not work and startup took several minutes each time.
Reason: For some reason I had put a file doc.pdf in document root some years ago.
label_loading
and index
both crashed because of
File "/usr/lib/python3/dist-packages/openpaperwork_core/fs/memory.py", line 111, in _get_memory_id
return uri.startswith("file://")
AttributeError: 'NoneType' object has no attribute 'startswith'
After deleting doc.pdf paperwork works fine.
Possible solution: Files in root dir (=without doc_id) should excluded from processing by label_loading and index
Thanks for your great work.