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

Exceptions caught by the EST servlet are not logged properly

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.2.0
    • Fix Version/s: EJBCA 7.3.0, EJBCA 7.2.1
    • Component/s: None
    • Labels:
    • Provenance:
      Internal Delivery
    • Sprint:
      EJBCA Team Alice - 2019 w28

      Description

      Some exceptions caught by the EST servlet (EstServlet.java) are not logged properly, making troubleshooting difficult.

      E.g. the code block

      } catch (NoSuchAliasException | CADoesntExistsException | CertificateRenewalException | CertificateCreateException e) {
          if (log.isDebugEnabled()) {
               log.debug("Bad request by EST client with username '" + username + "' to EST alias " + alias + ": " + e.getMessage());
          };
          response.sendError(HttpServletResponse.SC_BAD_REQUEST, e.getLocalizedMessage());
      } 
      

      Swallows wrapped exceptions.

        Attachments

          Activity

            People

            Assignee:
            bastianf Bastian Fredriksson
            Reporter:
            bastianf Bastian Fredriksson
            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 - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m