Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-3474

Preferences responds with 500 to GET of non-existing prefset

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Pilot CC 1
    • Component/s: APCP Infrastructure
    • Labels:
      None

      Description

      When prefset exists in DB:

      # curl -I -X GET https://preferences.prd.gcp.gpii.net/preferences/carla
      HTTP/1.1 200 OK
      

      Non-existing prefset:

      # curl -I -X GET https://preferences.prd.gcp.gpii.net/preferences/carlaaaaa
      HTTP/1.1 500 Internal Server Error
      

      Expected behavior – Preferences app should return 404 in case request is valid, but prefset does not exist in DB.

        Attachments

          Activity

            People

            • Assignee:
              cli@ocad.ca Cindy Qi Li
              Reporter:
              sergey Sergey Nazarov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: