bnomei / kirby3-autoid

Automatic unique ID for Pages, Files and Structures including performant helpers to retrieve them. Bonus: Tiny-URL.
https://forum.getkirby.com/t/kirby3-autoid-plugin/23572
MIT License
80 stars 8 forks source link

Duplicate autoid ? #28

Closed tristantbg closed 5 years ago

tristantbg commented 5 years ago

I got a duplicate AutoID on two pages (they had the same one), is it possible ? Does the plugin checks if the autoid already exists or not ?

bnomei commented 5 years ago

should almost not be possible. it generates very random values by default https://github.com/bnomei/kirby3-autoid/blob/master/classes/AutoID.php#L395

and has a loop to make sure that values is not used yet https://github.com/bnomei/kirby3-autoid/blob/master/classes/AutoID.php#L410 https://github.com/bnomei/kirby3-autoid/blob/master/index.php#L12

question any chance the content file was copied on file-system level?

tristantbg commented 5 years ago

Thank you for the explanations !

bnomei commented 5 years ago

maybe related to new k 3.2.0 duplicate feature? see #30