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

            summer.zhang Summer Zhang
            david.tello David Tello
            Kiyoshi Lee Kiyoshi Lee
            David Tello David Tello
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 30 weeks, 3 days ago

              Packages

                Version Package
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                7.4.3.5 CE GA5
                7.4.13 DXP U1
                Master