mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
MNT-24641 Avoid duplicate key error on content upload (#2984)
* On createOrGetByValue in EntityLookupCache, also cache by value
* Created getCachedEntityByValue that attempt to retrieve the value only from cache
* On attempt to create content URL, first check cache before attempting to create in the database avoiding a duplicate key
(cherry picked from commit f4103c242f
)
* Pre-commit formatting
* Fix EntityLookupCacheTest