[Bug 231598] New: Metadata on Albums are lost when album moved from one collection to another

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

[Bug 231598] New: Metadata on Albums are lost when album moved from one collection to another

Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598

           Summary: Metadata on Albums are lost when album moved from one
                    collection to another
           Product: digikam
           Version: unspecified
          Platform: Fedora RPMs
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:            (using KDE 4.4.1)
Installed from:    Fedora RPMs

I have 2 collection defined (one local one and one on a NAS).
If I set the properties of an album in the local collection (I set date,
category, caption, thumbnail) and then move that album to my second collection
(on the NAS) the properties of the album are lost and I have to set them again
...

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

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


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Database




--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2010-03-22 09:44:42 ---
Which digiKam version you use exactly ? Go to help/About dialog for details

Gilles Caulier

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #2 from Vincent Tassy <timetre free fr>  2010-03-22 10:35:14 ---
I'm currently using 1.1.0 on Fedora 12 but it's been behaving like this for as
long as I can remember ...

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Gilles Caulier-4
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
            Version|unspecified                 |1.1.0




--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Marcel Wiesweg
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-04-18 16:24:16 ---
SVN commit 1116055 by mwiesweg:

When reading the album move hints and looking for the src collection, dont look
it up
in the list of currently scanned collections, but in the list of all
collections -
the src collection may be scanned previously or later.

BUG: 231598

 M  +2 -1      NEWS  
 M  +7 -5      libs/database/collectionscanner.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1116055

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Vincent Tassy <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |




--- Comment #4 from Vincent Tassy <timetre free fr>  2011-12-19 10:26:55 ---
Team,

I'm afraid the problem is still present ... Didn't realise this bug was closed.
Problem was still present in 1.9
Problem is still present in 2.3

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Gilles Caulier-4
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #5 from Gilles Caulier <caulier gilles gmail com>  2011-12-19 10:31:03 ---
Please try with last 2.4 release...

Gilles Caulier

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Gilles Caulier-4
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.1.0                       |2.3.0




--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #6 from Vincent Tassy <timetre free fr>  2011-12-22 10:03:52 ---
Bug is still present in 2.4.1

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #7 from Vincent Tassy <timetre free fr>  2011-12-22 10:21:11 ---
I looked into the problem a little more ...
I would have thought that when an album is moved from one collection to
another, its record in the the Albums database would be updated ... in
particular the albumRoot and relativePath fields but that the other fields
(date, caption, collection, icon) would be preserved.

It seems it's not the case !!
A new row is created for the moved Album and don't contain the previous
meta-data !

Here's an example:
Prior to the move:
id  |albumRoot|relativePath|date      |caption|collection|icon
2102|1        |/Test       |2011-12-09|       |Fête      |96451

after the move:
id  |albumRoot|relativePath|date      |caption|collection|icon
2102|0        |1-/Test     |2011-12-09|       |Fête      |96451              
2103|2        |/2011/Test  |2011-12-22|       |          |

--
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 231598] Metadata on Albums are lost when album moved from one collection to another

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Vincent Tassy <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #8 from Vincent Tassy <timetre free fr>  2011-12-22 16:39:16 ---
More insight ...
The problem doesn't occur if both the source and the destination Collections
are "Local Collections"

On my setup, I have one "Local Collection" and one "Collection on Network
Shares"
which is a NAS I have mounted through NFS.

I get the problem only when I move albums between those two .. local to network
or network to local.

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Gilles Caulier-4
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Metadata on Albums are lost |Metadata on Albums are lost
                   |when album moved from one   |when album moved from local
                   |collection to another       |collection to a network
                   |                            |collection




--- Comment #9 from Gilles Caulier <caulier gilles gmail com>  2011-12-22 16:42:21 ---
Vincent,

You use which version of digiKam ?

Gilles Caulier

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #10 from Vincent Tassy <timetre free fr>  2011-12-22 17:36:04 ---
I use 2.4.1

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Gilles Caulier-4
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.3.0                       |2.4.1




--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Marcel Wiesweg
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #11 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-12-26 20:49:20 ---
Vincent, would you be ready to compile digikam with a patch with debug
statement I would prepare for you? I'm not sure what is the problem with NAS
collections in this context.

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598





--- Comment #12 from Vincent Tassy <timetre free fr>  2011-12-27 09:34:57 ---
Yes Marcel, no problem. I've compiled Digikam before.
I might not have time to do it this week but I'll get on it as soon as I can.

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Marcel Wiesweg
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598

--- Comment #13 from Marcel Wiesweg <[hidden email]> ---
Created attachment 71265
  --> https://bugs.kde.org/attachment.cgi?id=71265&action=edit
Debug statements

Sorry for long delay. First step to gain more insight with some debug
statements. Move one album from within digikam as described, give console
output (enable 50003 in kdebugdialog) starting with the move. Thanks.

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598

Vincent Tassy <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #14 from Vincent Tassy <[hidden email]> ---
Well, guess what,

I compiled the version from git and the bug is now gone !!

I tried version 2.5.0 on the same system and same data just before and the bug
was still there.
2.6.0 out of git works like a charm so I'll go ahead and close the bug as
fixed.
Good job !

--
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 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598

Vincent Tassy <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.4.1                       |2.5.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
|

[Bug 231598] Metadata on Albums are lost when album moved from local collection to a network collection

Vincent Tassy-2
In reply to this post by Vincent Tassy-2
https://bugs.kde.org/show_bug.cgi?id=231598

--- Comment #15 from Vincent Tassy <[hidden email]> ---
Created attachment 71301
  --> https://bugs.kde.org/attachment.cgi?id=71301&action=edit
debug output as per patch provided by marcel

console output when moving a folder from a collection to another location
(network share)

--
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
12