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

4xx status code is not being returned when a client makes an invalid request to Liferay.Segments.Asah.REST API

    Details

      Description

      Prerequisites:

      Liferay DXP has been configured as a Data Source is AC

      Steps to reproduce:

      1. Create a content page
      2. Add a button and publish
      3. Create an AB Test using Click as Goal
      4. Select the button as targeted element
      5. Create a variant
      6. Execute curl:

      {{curl -X POST }}
      {{ http://localhost:8080/o/segments-asah/v1.0/experiments/\{experimentKey}/status }}
      {{ -H 'Content-Type: application/json' }}
      {{ --user user@liferay.com:pass }}
      {{ -d '{}}
      {{ "status": "FINISHED_WINNER"}}
      }'

      Expected result:

      4xx status code is returned

      Actual Result:

      500 status code is returned

       

        Attachments

          Activity

            People

            • Assignee:
              manoel.cyreno Manoel Cyreno
              Reporter:
              david.arques David Arques
              Participants of an Issue:
              Recent user:
              Manoel Cyreno
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                49 weeks, 2 days ago

                Packages

                Version Package
                7.2.10 DXP FP3
                7.2.X
                Master