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 [email protected]:pass }}
      {{ -d '{}}
      {{ "status": "FINISHED_WINNER"}}
      }'

      Expected result:

      4xx status code is returned

      Actual Result:

      500 status code is returned

       

      Attachments

        Activity

          People

            manoel.cyreno Manoel Cyreno
            david.arques David Arques (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 24 weeks, 2 days ago

              Packages

                Version Package
                7.2.10 DXP FP3
                7.2.X
                7.3.10 DXP GA1
                Master