Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-6955

REST soft exceptions

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.14.0
    • Fix Version/s: EJBCA 6.14.0
    • Component/s: None
    • Labels:
      None

      Description

      The current ExceptionHandler for the Certificate Management REST API treats all exceptions as errors in the response to the client, e.g.

      {
       "errorCode": 202,
       "errorMessage": "Waiting for approval by another administrator"
      }
      

      The example above (and most likely some other exceptions) are managed exceptions which should not be considered, nor presented as errors. Implement special handling for these exceptions and use a separate return object. Something like:

      {
      "statusCode": XXX,
      "message": "something something"
      }
      

        Attachments

          Activity

            People

            Assignee:
            hsunmark Henrik Sunmark
            Reporter:
            robinsed Robin Sedvallson (Inactive)
            Verified by:
            Bastian Fredriksson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 6 hours Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 6 hours Remaining Estimate - 2 hours
                6h