• Property Groups lost when copying or moving a document

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #17366  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?
 #17374  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 ?
 #17383  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... :(
 #17387  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.