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

Improve handling when receiving SCEP getCACaps request for missing CA

    Details

    • Issue discovered during:
      Review
    • Sprint:
      EJBCA Sprint 13

      Description

      Currently, when EJBCA receives a SCEP getCACaps request for a missing CA it throws NPE (and returns HTTP 400).

      This seems to be a regression since the behavior of getCAInfo was changed to return null instead of throwing CADoesNotExistException.

      Before, getCACaps log.debug this, but also return HTTP 200 with some bogus capabilities.

      The proper behaviour should be to return HTTP 404, and debug log a short message (to not fill up the log).

        Attachments

          Activity

            People

            Assignee:
            samuel Samuel Lidén Borell
            Reporter:
            samuel Samuel Lidén Borell
            Verified by:
            Henrik Sunmark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m