• New UUID generated

  • 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.
 #42974  by openkm_user
 
Hi,

How does new UUID generate? I know it is unique but is it always "new" or can the new one be one of UUID file that is deleted?

Like, consider file1 with UUID 1234, user deletes file1 and uploads another file file2, any chance this file2's UUID becoming the deleted file1's (1234)?

Thanks!
 #42981  by jllort
 
There'r are two distinct UUID, there's a unique UUID for the document, and then there's an specific UUID for the document version ( which is not the same of the UUID used to identify the document )

When you retrieve a document, you use the UUID + version name. Internally is converted to UUID version name, which is used to store the document in the datastore. Really from you side, you should be only interested in this combination UUID + version name or UUID ( what means the last version of the document )

Hope this give some light to you.
 #43042  by openkm_user
 
I am not sure I am explaining this properly. My only concern is, if a document containing a UUID 1234-5678-9012-3456 is deleted (also deleted from Trash) and in future a document is uploaded, will this new document by any chance have the deleted document's UUID 1234-5678-9012-3456?
 #43054  by jllort
 
It's quite difficult a new node in the database have the same UUID. The uuid generator is based in random numbers, but also with day time etc... It has a very very very small probability it happens a collision ( really the case should be create two documents practically at the same time, and I'm talking about miliseconds and another factors what makes it practically impossible ). I do not want to write the word "impossible" because in IT is quite dangerous, but I think is more probably you win in lottery all the days during a week rather than you see it.
 #43064  by openkm_user
 
Thanks again :). Since it depends on date, time, etc., probability of a new document getting UUID of another document is very low, like you explained. This solves another potential future bug :D.

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.