https://bugs.kde.org/show_bug.cgi?id=361339
Bug ID: 361339 Summary: Album auto-creation creates nameless subalbums and corrupts album hierarchy Product: digikam Version: 5.0.0 Platform: Compiled Sources OS: Linux Status: UNCONFIRMED Severity: major Priority: NOR Component: Import Assignee: [hidden email] Reporter: [hidden email] I'm running 5.0.0beta5 (digikam-git r33955.9e7223e-1 from AUR) on Arch with a MySQL backend. Besides the wanted, correct date-based albums, importing new pictures with "Auto-creation of albums" creates additional, nameless sub albums which seem to contain duplicate pictures. These "ghost albums" seem to have the same effective filesystem path as the correct ones, so deleting them deletes the wanted subalbums and pictures as well. Opening such an album in filemanger reveals empty trailing path components, e.g.: "/mnt/nas/sandl/bilder/Fotos/Maxi-Test/2016///". My albums reside on NFS, but the problem exists for local collections as well. It is also independent of the camera used and of the actual date format (can also be reproduced with the default ISO format). As a workaround: How can I get rid of subalbums in the folder pane without deleting the pictures as well? (Sorry if that's FAQ, I'm quite new to Digikam). Reproducible: Always Steps to Reproduce: 1. Create a collection from some existing folder hierarchy (see screenshot 1) 2. Import some new picture which will autocreate new date based subalbums (see screenshot 2) Actual Results: Additional, nameless subalbums will be created (see screenshot 3) Expected Results: Only the wanted, date based subalbums should be created. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #1 from [hidden email] --- Created attachment 98212 --> https://bugs.kde.org/attachment.cgi?id=98212&action=edit Screenshot 1: Healthy album before import -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #2 from [hidden email] --- Created attachment 98213 --> https://bugs.kde.org/attachment.cgi?id=98213&action=edit Screenshot 2: Import Windows -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #3 from [hidden email] --- Created attachment 98214 --> https://bugs.kde.org/attachment.cgi?id=98214&action=edit Screenshot 3: Album after import -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98213|Screenshot 2: Import |Screenshot 2: Import Window description|Windows | -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #4 from [hidden email] --- Created attachment 98215 --> https://bugs.kde.org/attachment.cgi?id=98215&action=edit Console output of digikam showing two testcases -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
Maik Qualmann <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #5 from Maik Qualmann <[hidden email]> --- I can not reproduce this problem here (tested with SQLite and internal MySQL DB). I see no problem in this source code. The same problem, If you manually create a album (right-click album tree -> New...)? Can you test it with completely locally album and a SQLite DB? Maik -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #6 from [hidden email] --- Thanks Maik, with your help I was able to find a much simpler testcase. I can reproduce this with SQLite and a local album and even if I just manually create a new album with right-click, so this is not really an import issue. However, this seems to require a particular folder structure. To reproduce: 1. Create a file system folder named "Test-local3". Inside "Test-local3" create an empty folder named "Folder". Inside "Folder" create a folder named "Subfolder" and put an image there. 2. Create a new Digikam album for "Test-local3" with "Settings / Digikam einrichten (configure?) / Collections / Add [local] Collection" 3. Right-click on "Folder" and create a new album "NewSubfolder". 4. See a nameless album and duplicate albums appear... -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #7 from Maik Qualmann <[hidden email]> --- Also with this test case is not to reproduce the problem here. There must be another cause. In principle, it is impossible that digiKam folder with slashes created at the end. Could you try a patch? I would insert more debug messages. Maik -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #8 from [hidden email] --- Ok, sure. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #9 from Maik Qualmann <[hidden email]> --- Created attachment 98247 --> https://bugs.kde.org/attachment.cgi?id=98247&action=edit testDebug.patch Please try this patch, create a wrong album folder and upload the console output. In the "core" folder: patch -p0 < testDebug.patch Maik -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #10 from [hidden email] --- Created attachment 98248 --> https://bugs.kde.org/attachment.cgi?id=98248&action=edit Console output of small testcase with debug patch enabled Thanks. Here is the requested log of a small testcase (new album via right click), reproduced on a different (but very similar) machine. Heinz -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #11 from Maik Qualmann <[hidden email]> --- Created attachment 98257 --> https://bugs.kde.org/attachment.cgi?id=98257&action=edit mkdirTest.patch This is not a productive patch, it is only a test. Please look whether the issue is resolved. Maik -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #12 from [hidden email] --- Created attachment 98261 --> https://bugs.kde.org/attachment.cgi?id=98261&action=edit Console output after mkdirTest.patch Sorry, no progress. issue still exists. Heinz -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
Maik Qualmann <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98247|0 |1 is obsolete| | -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
Maik Qualmann <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98257|0 |1 is obsolete| | -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #13 from Maik Qualmann <[hidden email]> --- Created attachment 98262 --> https://bugs.kde.org/attachment.cgi?id=98262&action=edit test2Debug.patch Strange problem, please give me the ouput from this patch. What for a file system you use? Maik -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #14 from [hidden email] --- I'm setting up a new family picture server via NFS V3, server is BTRFS. This used to work approx. 4 weeks ago, don't know which update broke it. Latests tests were done on a laptop on ext4 (DB and picture folders). Can also reproduce on XFS and on Samba mounts, so I don't think it's FS related. Latest output: [...] digikam.general: Cancel Main Thread digikam.general: One job is done digikam.geoiface: ---- ------------------------>AlbumManager::createPAlbum--1--> "New Album" ------------------------>AlbumManager::createPAlbum--2--> (".", "..", "Folder") ------------------------>AlbumManager::createPAlbum--3--> QUrl("file:///mufu/transfer/test-local5/Folder/New Album") digikam.general: QFileSystemWatcher detected change at "/mufu/transfer/test-local5/Folder//" digikam.general: Detected change, triggering rescan of directory "/mufu/transfer/test-local5/Folder//" ------------------------>AlbumManager::createPAlbum--4--> (".", "..", "Folder") digikam.database: Starting scan! digikam.dimg: "/mufu/transfer/test-local5/Folder//Subfolder/user-manager.png" : PNG file identified digikam.database: Adding new item "/mufu/transfer/test-local5/Folder//Subfolder/user-manager.png" digikam.database: Recognized "/mufu/transfer/test-local5/Folder//Subfolder/user-manager.png" as identical to item 11 digikam.database: Scanning took 1 ms digikam.database: Finishing took 5 ms digikam.geoiface: ---- digikam.general: Cancel Main Thread [...] Heinz (afk for today) -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
Maik Qualmann <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #98262|0 |1 is obsolete| | -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=361339
--- Comment #15 from Maik Qualmann <[hidden email]> --- Created attachment 98268 --> https://bugs.kde.org/attachment.cgi?id=98268&action=edit CoreDBUrl.patch Please try this patch for testing. What Qt version you use? Maik -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |