[Bug 272301] New: database corruption upon tag hierarchy removal

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 272301] New: database corruption upon tag hierarchy removal

Bugzilla from mail4ilia@gmail.com
https://bugs.kde.org/show_bug.cgi?id=272301

           Summary: database corruption upon tag hierarchy removal
           Product: digikam
           Version: 2.0.0
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: NOR
         Component: Database
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           2.0.0 (using KDE 4.6.2)
OS:                Linux

I'm running digikam 2.0-beta4 from philip5 PPA for Kubuntu 10.10.
I use mysql 5.1 database from Ubuntu 10.04 as DB storage. My collection has
right now 30-50 tags and several thousands photos (thank goodness I have all
metadata in files!).

When non-leaf tag is deleted, other tags may be deleted from the database or
become unreachable from the root (which hides them in GUI). I guess it may be a
bug in SQL queries (e.g. deletion triggers and maybe interaction between them,
or missed locking).

Reproducible: Always

Steps to Reproduce:
1. Create nested tags /tag1/tag2/tag3
2. Delete tag1 (this deletes tag2 & tag3 as well)
3. Restart digikam

Actual Results:  
Some or all tags are missing due to inconsistent Tags table (and maybe others).

I haven't noticed other tags being affected if instead of step 2 above I delete
tag3, then tag2, then tag1 (i.e. each time delete a leaf tag).

Expected Results:  
All non-related tags are unaffected

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
Reply | Threaded
Open this post in threaded view
|

[Bug 272301] Mysql database corruption upon tag hierarchy removal

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=272301


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Summary|database corruption upon    |Mysql database corruption
                   |tag hierarchy removal       |upon tag hierarchy removal




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
Reply | Threaded
Open this post in threaded view
|

[Bug 272301] Mysql database corruption upon tag hierarchy removal

Marcel Wiesweg
In reply to this post by Bugzilla from mail4ilia@gmail.com
https://bugs.kde.org/show_bug.cgi?id=272301





--- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-05-03 22:07:45 ---
Can you provide the affected database file (private mail is fine) along with a
list of the relevant tags?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
Reply | Threaded
Open this post in threaded view
|

[Bug 272301] Mysql database corruption upon tag hierarchy removal

Francesco Riosa-2
In reply to this post by Bugzilla from mail4ilia@gmail.com
https://bugs.kde.org/show_bug.cgi?id=272301





--- Comment #2 from Francesco Riosa <francesco+kde pnpitalia it>  2011-05-10 23:20:20 ---
Git commit 559160b3d730439d845329c4a1b367f8a0b3ee03 by Francesco Riosa.
Committed on 10/05/2011 at 23:08.
Pushed by riosa into branch 'master'.

on delete trigger did a bit too much cleanup

according to:
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
only elemnts between `lft` and `rgt` need to be deleted, not the whole
hiearchy, also populate it again is not needed.

Maybe during migration or in some other particular case better handling
is required. These cases still need to be found and addressed ATM.

This possibly close
CCBUG: 272301

M  +7    -12   data/database/dbconfig.xml.cmake    

http://commits.kde.org/digikam/559160b3d730439d845329c4a1b367f8a0b3ee03

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
Reply | Threaded
Open this post in threaded view
|

[Bug 272301] Mysql database corruption upon tag hierarchy removal

Francesco Riosa-2
In reply to this post by Bugzilla from mail4ilia@gmail.com
https://bugs.kde.org/show_bug.cgi?id=272301


Francesco Riosa <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |[hidden email]
         Resolution|                            |FIXED




--- Comment #3 from Francesco Riosa <francesco+kde pnpitalia it>  2011-05-16 01:17:30 ---
(In reply to comment #2)
this bug is fixed, please reopen if feel otherwise

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- 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
Reply | Threaded
Open this post in threaded view
|

[Bug 272301] Mysql database corruption upon tag hierarchy removal

Gilles Caulier-4
In reply to this post by Bugzilla from mail4ilia@gmail.com
https://bugs.kde.org/show_bug.cgi?id=272301

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.0.0

--
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
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 272301] Mysql database corruption upon tag hierarchy removal

bugzilla_noreply
In reply to this post by Bugzilla from mail4ilia@gmail.com
https://bugs.kde.org/show_bug.cgi?id=272301

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Database                    |Database-Mysql

--
You are receiving this mail because:
You are the assignee for the bug.