Page 1 of 1

UUID is reused after deletion?

PostPosted:Tue May 10, 2022 6:40 am
by taranu.andrei
Hello guys,

I have a quick question.
if we delete a file in openkm, the UUID will also be deleted. The deleted UUID will be used for another file in the future?

What I am thinking:
We have an integration between OpenKM and another application. In the other application, we store history of UUID's files from openkm.
So, if we delete a file, OpenKM will delete the file(also UUID), but in the history table of the other app, the UUID is not changing, so it will be there.
After a while, maybe OpenKM will generate the same deleted UUID, but for another file. Is it possible?

Thank you,
Taranu Andrei

Re: UUID is reused after deletion?

PostPosted:Wed May 11, 2022 6:29 am
by taranu.andrei
Good morning.

I found my answer here: viewtopic.php?t=21126

Re: UUID is reused after deletion?

PostPosted:Sat May 14, 2022 4:23 pm
by jllort
UUID is unique based on a logic that use a timestamp, etc... it is quite difficult ( nearly impossible ) the UUID be repeated. Remember when document is deleted go to the trash ( still exist in the OpenKM repository ), when clean the trash document is definitively purged of the system and totally removed from the database. Only in the table, OKM_ACTIVITY will display information about purged nodes -> history is never deleted.