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

Portal returns a 200 code even if there is a failure in the server side

    Details

      Description

      Steps to reproduce:

      1. In a vanilla installation, in your localhost go to http://localhost:8080/api/jsonws/company/get-company-by-virtual-host/virtual-host/localhost?p_auth=7vGaicGJ
      2. Assert that it works
      3. Retry using http://localhost:8080/api/jsonws/company/get-company-by-virtual-host/virtual-host/localhos?p_auth=7vGaicGJ (note that the las t of localhost has been removed)
      4. Assert that it fails and a message similar to this is printed in the page:
        {{
        Unknown macro: {"message"}

        }}

      5. Go to the browser console and check the status header.

      Current: Shows a 200 code
      Expected: An error code

      We should be careful with the changes to avoid break the current api.

      The full fix for this should include LPS-68286 commits

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brian.chan Brian Chan
              Reporter:
              roberto.diaz Roberto Díaz
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 17 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE