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

custom tags attributes using mixed case - error enable/disable OE

    XMLWordPrintable

Details

    Description

      Enabling online editor, while editing an xml block that uses a custom tag with mixed case defined attributes, results in an error.
      Upon validation, it seems that the attribute names are converted to lowercase. This causes the validation to fail.

      Steps to reproduce

      Create a custom tag as such

      -- in content.ini
      AvailableCustomTags[]=testtag
      IsInline[testtag]=true
      [testtag]
      CustomAttributes[]
      CustomAttributes[]=attrID
      
      -- in ezoe_attributes.ini
      [CustomAttribute_testtag_attrID]
      Name=attrID
      Required=true
      
      • create an article object
      • add a //testtag// to the body
      • disable online editor
      • enable online editor
      • draft saving will fail with the following error:
        Required data is either missing or is invalid:
        Summary: Attribute 'custom:attrid' is not allowed in <custom> element.
        

        (attrID attribute got converted into attrid, somehow)

      Attachments

        Activity

          People

            dp@ez.no dp@ez.no
            joc@ez.no joc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: