Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-63464

After an upgrade, publishing a Web content fails

Details

    Description

      STEPS TO REPRODUCE
      1.- In a 6.0 installation, create a structure with a repeatable field:

      <?xml version="1.0"?>
      
      <root>
          <dynamic-element name="a" type="text" index-type="" repeatable="true"/>
      </root>
      

      2.- Create a Web content with the previous structure
      3.- In the field type some text and publish it
      4.- Edit it again and check the Localized checkbox for the field
      5.- In the web content edit form, change the Language to Spanish and type some text
      6.- Add a new field clicking on the '+' icon
      7.- Mark Localized for this new added field
      8.- Type some text and publish it. In database, this is saved this way:

      <?xml version="1.0"?>
      
      <root default-locale="en_US" available-locales="en_US,es_ES">
          <dynamic-element instance-id="6XLIJ7sk" name="a" type="text" index-type="">
              <dynamic-content language-id="en_US"><![CDATA[a]]></dynamic-content>
              <dynamic-content language-id="es_ES"><![CDATA[b]]></dynamic-content>
          </dynamic-element>
          <dynamic-element instance-id="KxoCvsi3" name="a" type="text" index-type="">
              <dynamic-content language-id="es_ES"><![CDATA[b]]></dynamic-content>
          </dynamic-element>
      </root>
      

      9.- Migrate to 6.2 EE + LPS-45541
      10.- In 6.2, edit the article and click on Publish.

      EXPECTED
      The Web content should be saved

      ACTUAL
      The following exception appears:

      Attachments

        Issue Links

          Activity

            People

              sergio.sanchez Sergio Sanchez
              sergio.sanchez Sergio Sanchez
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7 years, 16 weeks, 2 days ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 CE RC1