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

The expando attributes of type Integer cannot be modified by JSONWS

    Details

      Description

      The steps to reproduce are:

      1. Create a user expando attribute of type Integer (32) called newAtt
      2. Create a user by the interface without fill the expando attribute newAtt.
      3. Add a value by JSONWS. You can use a curl as the showed below:
      curl http://localhost:8080/api/jsonws/expandovalue/add-value \
        -u [email protected]:test \
        -d companyId=39733 \
        -d className='com.liferay.portal.kernel.model.User' \
        -d tableName='CUSTOM_FIELDS' \
        -d columnName='newAtt' \
        -d classPK=127226 \
        -d data='3'
      

      Expected result:
      The value is added
      Current result:
      An error like this is obtained:

      Column 127220 has type custom.field.int and is not compatible with type custom.field.java.lang.String
      

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            david.tello David Tello
            Participants of an Issue:
            Recent user:
            Summer Zhang
            Engineering Assignee:
            David Tello
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 weeks, 6 days ago

                Packages

                Version Package
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master