https://bugs.kde.org/show_bug.cgi?id=392793

Ignacio Serantes <k...@aynoa.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@aynoa.net

--- Comment #4 from Ignacio Serantes <k...@aynoa.net> ---
Hi,

Maybe I'm wrong but I'm was revising the code and seems the problem is git
commit bd1041ea "Make renames a DB only operation".

I apply add next few lines to MetadataMover::updateMetadata() method in
"metadatamover.cpp" file and renaming works again for me.

     Document doc;
     doc.setId(id);
     doc.setParentId(parentId);
     doc.setUrl(toPath);
+    QFileInfo fileInfo(to);
+    doc.addFileNameTerm("F" + fileInfo.baseName().toUtf8());
+    doc.addFileNameTerm("F" + fileInfo.suffix().toUtf8());
     tr->replaceDocument(doc, DocumentUrl | FileNameTerms);

Please consider this code a simple proof of concept and not a repair attempt
because I'm not a C++ developer.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to