Commit e2b35e2d authored by Aurel's avatar Aurel

add a log message if length of path is too long for the catalog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2a6c1d4b
......@@ -1061,6 +1061,10 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
klass._reserved_uid_lock.release()
elif catalog_path is not None:
# An uid conflict happened... Why?
# can be due to path length
if len(path) > 255:
LOG('SQLCatalog', WARNING, 'path of object %r is too long for catalog. You should use a shorter path.' %(object,))
object.uid = self.newUid()
LOG('SQLCatalog', WARNING,
'uid of %r changed from %r to %r !!! This can be fatal. You should reindex the whole site immediately.' % (object, uid, object.uid))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment