Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4594

Query for structure/get_model returns wrong fault code

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • N/A
    • None
    • Personalization
    • [4.5] - Sprint 5
    • Recommendation

    Description

      In case we send a request to Personalization restfrontend for non existing mandator (example: https://admin.test.perso.ibexa.co/api/v3/-1/structure/get_model/top_clicked) in response we receive fault code modelNotFoundFault. Instead we should receive fault code mandatorNotFound.

      Steps to reproduce:
      1. Send a request to https://admin.test.perso.ibexa.co/api/v3/-1/structure/get_model_/<any_model_ref_code> with admin authorization. Edit: update_model endpoint also has the same issue.

      Expected result:
      1. Since mandator does not exists we should receive fault code containing that information

      Actual result:
      1. Response contains fault code: modelNotFoundFault

       

      DoD:
      After bug has been fixed please update e2e tests repository . All of the places which need to be updated are marked with @Bug("IBX-xxxx") annotation.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              krzysztof.brozek@ibexa.co Krzysztof Brożek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: