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

Create a common exception handler for the REST API

    Details

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

      Description

      The idea is to be able to throw all Exceptions from the REST end point and have them handled commonly in order to ensure consistent response codes for corresponding exceptions across all resource methods. All errors should be returned with appropriate HTTP response code together with a JSON object with pre-defined fields including error message etc.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andrey_helmes Andrey Sergeev
                Reporter:
                hsunmark Henrik Sunmark
                Verified by:
                Henrik Sunmark
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 days Original Estimate - 2 days
                  2d
                  Remaining:
                  Time Spent - 1 day, 6 hours, 31 minutes Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - 1 day, 6 hours, 31 minutes Remaining Estimate - 2 hours
                  1d 6h 31m