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

expandovalue/get-json-data Service Fails When Retrieving True/False Value

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.20 EE GA2
    • Fix Version/s: 6.2.0 CE B1
    • Component/s: Web Services
    • Labels:
    • Environment:

      LIFERAY VERSION: 6.1 GA2
      OPERATING SYSTEM: Red Hat Enterprise 6
      APPLICATION SERVER: Tomcat 7.0
      JAVA VIRTUAL MACHINE: Java 6
      DATABASE: Oracle 11.2

      Description

      Steps to reproduce/Testing done
      1. Go to Control Panel > Custom Fields
      2. Choose Organization
      3. Add a true/false data type named test-boolean
      4. Create a new organization and set the test-boolean Custom Field to True
      5. Go to http://localhost:8080/api/jsonws/?signature=/expandovalue/get-json-data-5-companyId-className-tableName-columnName-classPK
      6. Enter in the appropriate values:
      companyID: 10154 (obtained from company table)
      className: com.liferay.portal.model.Organization
      tableName: CUSTOM_FIELDS
      columnName: test-boolean
      classPK: 10602 (obtained from organizationId in organization_ table for the organization you just created)
      7. Click Invoke

      Results of Testing
      Expected Behavior: The value of the boolean field is returned
      Actual Behavior: Receive an error.

      Errors/Logs

      {
        "exception": "com.liferay.portlet.expando.ValueDataException: Column 11101 has type custom.field.boolean and is not compatible with type custom.field.java.lang.String"
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 15 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE B1