Uploaded image for project: 'FHIR module'
  1. FHIR module
  2. FM-266

Return 401 instead of 500 when user is unauthenticated.

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      When the user is not logged in, the FHIR module currently returns an HTTP 500, which indicates a server error. Instead, it should return a 401 to indicate that the user is not logged in. I have verified that this happens when retrieving a single patient, but have not verified it with other resources. My assumption is that all endpoints would behave the same in this regard.

      See attached gif for details.

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              valvijo Valerio Joao
              Reporter:
              joeldenning Joel Denning
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h