Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26277

Content type copies generated identifiers are too long

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 4 hours
                3d 4h