https://bugs.kde.org/show_bug.cgi?id=415949
Bug ID: 415949 Summary: Can't write sidecar file if image file is a symlink to readonly directory Product: digikam Version: 6.4.0 Platform: Ubuntu Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Metadata-Engine Assignee: digikam-bugs-n...@kde.org Reporter: drh...@gmail.com Target Milestone: --- Created attachment 124942 --> https://bugs.kde.org/attachment.cgi?id=124942&action=edit Patch that fixes the issue My images are stored as a symlink to a readonly file (and directory) in git annex. I would like digikam to write sidecar files in the same directory (which is read/write) as the symlink (Not in the git annex). This is not possible because the save logic first checks if the image is stored in a directory with read write permissions. STEPS TO REPRODUCE 1. Load image that is a symlink to a file stored in a readonly directory. Like this ls -l 20140104_2717.jpg -> ../../.git/annex/objects/Xx/ZV/BLAKE2B256-s7492892--75f3a3f49dac4cd69004c8a6ca4278d3a88b7a6054466c4a8fc26cd0b5a9d312/BLAKE2B256-s7492892--75f3a3f49dac4cd69004c8a6ca4278d3a88b7a6054466c4a8fc26cd0b5a9d312 2. Configure digikam to read/write to sidecar files 3. Tell digikam to write metadata for file. Item->Write Metadata to file OBSERVED RESULT Side car file fails to write. digikam.metaengine: "/home/david/src/media/2014/2014-01-04/20140104_2717.jpg" ==> New Iptc Keywords: ("XYZ") digikam.metaengine: filePath "/home/david/src/media/2014/2014-01-04/20140104_2717.jpg" is a symlink. Using target "/home/david/src/media/.git/annex/objects/Xx/ZV/BLAKE2B256-s7492892--75f3a3f49dac4cd69004c8a6ca4278d3a88b7a6054466c4a8fc26cd0b5a9d312/BLAKE2B256-s7492892--75f3a3f49dac4cd69004c8a6ca4278d3a88b7a6054466c4a8fc26cd0b5a9d312" digikam.metaengine: Dir "/home/david/src/media/.git/annex/objects/Xx/ZV/BLAKE2B256-s7492892--75f3a3f49dac4cd69004c8a6ca4278d3a88b7a6054466c4a8fc26cd0b5a9d312" is read-only. Metadata not saved. EXPECTED RESULT Side car file is written into directory where original symlink is. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu 19.10 ADDITIONAL INFORMATION Looking at the code the logic is flawed. Please see attached patch which fixes the issue for me. Thanks -- You are receiving this mail because: You are watching all bug changes.