Details
-
Bug
-
Resolution: Fixed
-
High
-
1.5.0, 1.4.1, 5.4.8
-
None
Description
While working on EZP-26270, I faced a database error on content type copy.
It turns out that the identifier generated for content types copies is really long, and makes it very likely to hit this error. In the ContentTypeHandler, the copy identifier is generated as 'copy_of_' . $createStruct->identifier . '_' . $createStruct->remoteId. That's 41 characters, leaving only 9, since ezcontentclass.identifier is a VARCHAR(50).
Either the generated identifier must be shortened (I don't think we need an md5 in there, or maybe only the X first chars of it), or the database field must be longer.
I'll shorten the name used for the source content type in the meanwhile.