Bug 320873 - Changing comments appends them, not change them
Summary: Changing comments appends them, not change them
Status: RESOLVED UPSTREAM
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: widgets - TagWidget (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Nepomuk Bugs Coordination
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 17:56 UTC by Hrvoje Senjan
Modified: 2013-06-08 16:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2013-06-07 17:56:20 UTC
If i add a comment for a file, and then try to change it, new comment is appended to the old one.
(nao:description gets "duplicated")



Reproducible: Always




 nepomukshow 01\ Hegel\ 20.10.93.mp3 
nepomukshow(4703)/nepomuk (library) Nepomuk2::ResourceManagerPrivate::_k_storageServiceInitialized: Nepomuk Storage service up and initialized.

<nepomuk:/res/346789d8-a020-4ffe-8338-3c451152da51>
        rdf:type            nmm:MusicPiece                                                             
        rdf:type            nfo:Audio                                                                  
        rdf:type            nfo:FileDataObject                                                         
        rdf:type            nie:InformationElement                                                     
        nao:created         2013-05-31T01:08:23.882Z                                                   
        nao:lastModified    2013-06-07T17:47:19.544Z                                                   
        nao:numericRating   10                                                                         
        nao:numericRating   9                                                                          
        nao:numericRating   8                                                                          
        nao:description     Što Hegel zapravo jest? > filozofirajuća sloboda                           
        nao:description     Što Hegel zapravo jest?                                                    
        nao:description     Što zapravo Hegel jest?                                                    
        nie:mimeType        audio/mpeg                                                                 
        nie:url             file:///home/hrvoje/Documents/despot/Hegel br 01-10/01 Hegel 20.10.93.mp3  
        nie:title           01 Hegel 20.10.93                                                          
        nie:lastModified    2012-07-28T15:05:29Z                                                       
        nie:created         2012-07-28T15:05:29Z                                                       
        nfo:averageBitrate  1.2800000000e+05                                                           
        nfo:sampleRate      4.4100000000e+04                                                           
        nfo:fileSize        65806336                                                                   
        nfo:fileName        01 Hegel 20.10.93.mp3                                                      
        nfo:channels        2                                                                          
        nfo:duration        4112                                                                       
        nmm:trackNumber     1                                                                          
        nmm:performer       nepomuk:/res/7686b98f-78d3-49a3-b3cf-86e322631a6f                          
        nmm:musicAlbum      nepomuk:/res/d0a81ea8-76b0-467f-9462-3562d971d62c                          
        nmm:releaseDate     1993-01-01T00:00:00Z                                                       
        kext:indexingLevel  2

(i hope i selected proper component)
Comment 1 Vishesh Handa 2013-06-07 18:05:34 UTC
Oh boy!

I tried reproducing it and it doesn't duplicate the rating or comment for me. Could you try for some other files? This is quite freaky!
Comment 2 Hrvoje Senjan 2013-06-07 18:26:46 UTC
(In reply to comment #1)
> I tried reproducing it and it doesn't duplicate the rating or comment for
> me. Could you try for some other files? This is quite freaky!

Tried some 5,6 files, same result (but the rating is fine):

nepomukstorage(5404)/nepomuk (storage service) Nepomuk2::DataManagementModel::addProperty: (QUrl("nepomuk:/res/992a65ee-aeed-4bf4-9618-fad79d78d432") )   QUrl( "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#description" )  (""buhi"") "dolphin"
(snip)
nepomukstorage(5404)/nepomuk (storage service) Nepomuk2::DataManagementModel::addProperty: (QUrl("nepomuk:/res/992a65ee-aeed-4bf4-9618-fad79d78d432") )   QUrl( "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#description" )  (""buhi2"") "dolphin"
Comment 3 Hrvoje Senjan 2013-06-07 18:58:48 UTC
Huh, also tags get duplicated... and can't be removed
Comment 4 Hrvoje Senjan 2013-06-08 00:00:25 UTC
(In reply to comment #2)
> Tried some 5,6 files, same result (but the rating is fine):

Scrap that, rating also doesn't change :-(
Comment 5 Hrvoje Senjan 2013-06-08 12:02:59 UTC
Vishesh, can you tell me what is recommended virtuoso version for trunk/4.11?
I was using 6.1.7 post rc1 snapshot, and now i tried go back to 6.1.6. This now creates the situation that comments don't get set at all :-(( that is,  nao:description  gets added, but it's just empty
nepomukstorage(20548)/nepomuk (storage service) Nepomuk2::DataManagementModel::addProperty: (QUrl("nepomuk:/res/9e213505-b0b3-4f4f-aa5b-4faa96b0ecb4") )   QUrl( "http://www.semanticdesktop.org/ontologies/2007/08/15/nao#description" )  ("""") "dolphin

Changing ratings and tags works now though :-)
Comment 6 Vishesh Handa 2013-06-08 16:48:35 UTC
I'm currently using 6.1.6, I haven't tested virtuoso 6.1.7 or virtuoso 7 till now.