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

Upgrade a structure from 7.0 to 7.2 with a select field does not include their options.

    Details

      Description

      After upgrade a structure from 7.0 to 7.2 with a select field does not include their options.

      Steps to reproduce:

      1. Run a DXP 7.0 with the latest fixes (de-96-7010).
      2. Create an structure with a select field and their options.
      3. The database definition will looks like this:
       {"availableLanguageIds":["es_ES"],"defaultLanguageId":"es_ES","fields":[{"ddmDataProviderInstanceId":"","dataType":"string","predefinedValue":
      {"es_ES":"[\"\"]"}
      ,"multiple":false,"readOnly":false,"label":
      {"es_ES":"Seleccionar"}
      ,"type":"select","showLabel":true,"required":false,"visibilityExpression":"","fieldNamespace":"","indexType":"keyword","repeatable":false,"name":"SelectionA","options":[{"label":
      {"es_ES":"option 1"}
      ,"value":"value 1"},{"label":
      {"es_ES":"option 2"}
      ,"value":"value 2"},{"label":
      {"es_ES":"option 3"}
      ,"value":"value 3"},{"label":
      {"es_ES":"option 4"}
      ,"value":"value 4"}],"localizable":true,"tip":
      {"es_ES":""}
      ,"validation":"","dataSourceType":""}]}
       
      
      

      4  From a DXP 7.2 (dxp-9)

      5  Upgrade the database with the db_upgrade tool.

      6 After the upgrade process the structure description changed to:

       

      {"availableLanguageIds":["es_ES"],"successPage":{"body":{},"title":{},"enabled":false},"defaultLanguageId":"es_ES","fields":[{"ddmDataProviderInstanceId":"","dataType":"string","predefinedValue":
      {"es_ES":"[\"\"]"}
      ,"multiple":false,"readOnly":false,"label":
      {"es_ES":"Seleccionar"}
      ,"type":"select","required":false,"showLabel":true,"fieldNamespace":"","indexType":"keyword","visibilityExpression":"","repeatable":false,"name":"SelectionA","options":[{"label":
      {"es_ES":"option 1"}
      ,"value":"value 1"},{"label":
      {"es_ES":"option 2"}
      ,"value":"value 2"},{"label":
      {"es_ES":"option 3"}
      ,"value":"value 3"},{"label":
      {"es_ES":"option 4"}
      ,"value":"value 4"}],"localizable":true,"tip":
      {"es_ES":""}
      ,"dataSourceType":"[\"\"]","validation":{"expression":
      {"name":"","value":""}
      ,"parameter":{},"errorMessage":{}}}]}
       
      

      7 Run the DXP 7.2 portal:

      Expected behavior:
      The structure works
      Actual behavior:
      The structure become unresponsive

      Additional information:
      The same structure created from a DXP 7.2 and 7.3 portal looks like this:

      {"availableLanguageIds":["es_ES"],"successPage":{"body":{},"title":{},"enabled":false},"defaultLanguageId":"es_ES","fields":[{"dataType":"string","predefinedValue":
      {"es_ES":"[\"\"]"}
      ,"multiple":false,"readOnly":false,"label":
      {"es_ES":"Seleccionar"}
      ,"type":"select","required":false,"showLabel":true,"indexType":"keyword","repeatable":false,"name":"SelectA","options":[{"label":
      {"es_ES":"option 1"}
      ,"value":"value 1"},{"label":
      {"es_ES":"option 2"}
      ,"value":"value 2"},{"label":
      {"es_ES":"option 3"}
      ,"value":"value 3"},{"label":
      {"es_ES":"option 4"}
      ,"value":"value 4"},{"label":
      {"es_ES":""}
      ,"value":""}],"localizable":true,"tip":{"es_ES":""}}]}
      

      It looks like the dataSourceType is not upgraded correctly.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              chao.wang Chao Wang
              Reporter:
              roberto.diaz Roberto Díaz
              Participants of an Issue:
              Recent user:
              Chao Wang
              Engineering Assignee:
              Roberto Díaz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                12 weeks, 3 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP11
                  7.2.10.3 DXP SP4
                  7.2.X