wshanks / Zutilo

Zotero plugin providing some additional editing features
Other
1.53k stars 72 forks source link

Missing first character after using "Modify attachment paths" #214

Closed qqobb closed 2 years ago

qqobb commented 2 years ago

There's currently an issue with missing first characters after using the "Modify attachment paths" function. It seems to arise on Linux/macOS when using the Linked Attachment Base Directory setting. Using "Modify attachment paths" to fix Windows style paths on a Linux setup, I could reproduce the issue that other users have reported on the Zotero forums.

A workaround should be to reset the Linked Attachment Base Directory and use absolute paths while using "Modify attachment paths".

https://forums.zotero.org/discussion/94250/opening-retrieving-and-saving-linked-files

qqobb commented 2 years ago

I can reproduce the issue on both Linux and Windows. The "Replace all instances" checkbox isn't relevant. Backslashes aren't relevant either. The issue can be reproduced as follows. The old partial path should be different from the Linked Attachment Base Directory and ending with a path separator, /OldFolder/. The new partial path should be the Linked Attachment Base Directory given without the final path separator, /BaseFolder. Zutilo will turn /OldFolder/MyFile.pdf into /BaseFolderMyFile.pdf, which currently ends up as attachments:yFile.pdf.

This seems to be related to a Zotero issue.

qqobb commented 2 years ago

Fixed in Zotero 6.