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

liferay.js can't recognize int return values from JSONWebService

    Details

      Description

      When JSONWS remote service returns an int value, it is not recognized by liferay.js and the error "The server returned an empty response" is shown.

      Test steps:

      + login
      + go to API page
      + choose /assetcategory/get-vocabulary-categories-count
      + enter groupId and vocabularyId
      + click on Invoke

      The result is: "The server returned an empty response" instead of 0. The server returns 0 correctly, so its on JS side. See attached screenshot.

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              igor.spasic Igor Spasic (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 8 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE RC2
                6.2.0 CE RC5