Page 1 of 1

Property Groups lost when copying or moving a document

PostPosted:Sun Aug 05, 2012 8:38 pm
by noxious
Hello, everyone!
I'm using OpenKM 5.1.10 and i just realized that when I "copy" or "move" a document at a new location, the notes and custom Property Groups are lost... :(
However, when I "drag and drop" the document the Property Groups are maintained :!:
Is this a bug or is it just me doing something wrong?

Re: Property Groups lost when copying or moving a document

PostPosted:Tue Aug 07, 2012 7:14 am
by jllort
On move should maintaining metadata ( property groups ) but on copy, really is only copyed the binary file, not all related information. could you verify on move is not doing it correctly ?

Re: Property Groups lost when copying or moving a document

PostPosted:Tue Aug 07, 2012 10:40 am
by noxious
Thank you for your answer, jllort.
OK, you are right, on move metadata are indeed maintained.
However, I think that this should also happen on copy procedure, because when you copy a file you need not only its content but also all the information-metadata which are associated with it. Copying notes and custom property groups is very important for the project that i'm working on and thus,if you're not planning to change this behavior on future versions, i'll have to mess with the code and work on an extension... :(

Re: Property Groups lost when copying or moving a document

PostPosted:Wed Aug 08, 2012 7:37 am
by jllort
Actually we're involved in other features and this will have really very low priority. If you want to get it faster you should take minimal changes in source code.

I will orientate how doing it
http://wiki.openkm.com/index.php/Developer_Guide
http://doxygen.openkm.com/5.1.x/d5/d4d/ ... rvlet.html ( here we're using move and copy ), really move is only a change of path, the object is the same.

To mantaining values you should get all metadata, create in new document, and get all notes (take a look (String docPath) returns all document data, you should read all notes and write into new document ).

For notes take a look at http://doxygen.openkm.com/5.1.x/de/d57/ ... rvlet.html

The changes you should done will be done in DocumentServlet into copy method

Re: Property Groups lost when copying or moving a document

PostPosted:Wed Aug 08, 2012 12:08 pm
by noxious
OK, thank you jllort!