Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-29639

CMCRevoke command request fails on EE Page with java.lang.NumberFormatException: For input string error

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • pki-core
    • None
    • None
    • None
    • rhel-sst-idm-cs
    • ssg_idm
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Certificate System
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Revoking a cert using CMCRevoke fails with `The Certificate System has encountered an unrecoverable error.\n<P>\nError Message:<BR>\n<I>java.lang.NumberFormatException: For input string: "174053205115788431968469617103054103621`

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Everytime

      Steps to reproduce

      1.  Generate the Certificate Request 
      2.  Approve the request
      3. Generate Certificate Revokation Request using 'CMCRevoke' command.
      4. Submit the request on EE Page
      5. Check Certificate status using CLI/Web-UI.

      Expected results

      Certificate Request should raised succesfully.

      2. Should able to approve request.

      3. Should able to Revoke Certificate using EE Page.

      4. Certificate Status should be REVOKED.

      Actual results

      on revoke a cert on the CLI  I get a 200 OK and it seems to be revoke but there is a XML error of concern:  `The Certificate System has encountered an unrecoverable error.\n<P>\nError Message:<BR>\n<I>java.lang.NumberFormatException: For input string: "174053205115788431968469617103054103621`  with the Revoke cert generated .     There is also CMC revocation binary blob written to CMCRevoke.out

      {{}}

      In the system logs I see a stack trace

      {{}}

      1. INE: LdapBoundConnFactory (DBSubsystem).returnConn: final values. Total: 3, pool: 3
      2. 2024-03-18 18:58:32 [https-jsse-jss-nio-20443-exec-22] SEVERE: CMCRevReqServlet: For input string: "88613806727793172336691275452995819241"
      3. java.lang.NumberFormatException: For input string: "88613806727793172336691275452995819241"
      4. at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
      5. at java.base/java.lang.Integer.parseInt(Integer.java:668)
      6. at java.base/java.lang.Integer.valueOf(Integer.java:999)
      7. at com.netscape.cms.servlet.cert.CMCRevReqServlet.auditSerialNumber(CMCRevReqServlet.java:865)
      8. at com.netscape.cms.servlet.cert.CMCRevReqServlet.process(CMCRevReqServlet.java:367)
      9. at com.netscape.cms.servlet.cert.CMCRevReqServlet.process(CMCRevReqServlet.java:270)
      10. at com.netscape.cms.servlet.base.CMSServlet.service(CMSServlet.java:502)
      11. at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
      12. at jdk.internal.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
      13. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      14. at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      15. at org.apache.catalina.security.SecurityUtil.lambda$execute$0(SecurityUtil.java:280)
      16. at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
      17. at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:584)
      18. at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
      19. at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170)
      20. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:221)
      21. at org.apache.catalina.core.ApplicationFilterChain.lambda$doFilter$0(ApplicationFilterChain.java:145)
      22. at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
      23. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143)
      24. at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      25. at jdk.internal.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
      26. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      27. at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      28. at org.apache.catalina.security.SecurityUtil.lambda$execute$0(SecurityUtil.java:280)
      29. at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
      30. at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:584)
      31. at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
      32. at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
      33. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:187)
      34. at org.apache.catalina.core.ApplicationFilterChain.lambda$doFilter$0(ApplicationFilterChain.java:145)
      35. at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
      36. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143)
      37. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
      38. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
      39. at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
      40. at com.netscape.cms.tomcat.ExternalAuthenticationValve.invoke(ExternalAuthenticationValve.java:83)
      41. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
      42. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      43. at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:555)
      44. at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
      45. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
      46. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
      47. at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
      48. at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
      49. at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
      50. at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
      51. at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      52. at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
      53. at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
      54. at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      55. at java.base/java.lang.Thread.run(Thread.java:840)
      56.  

      {{}}

              Unassigned Unassigned
              gkimetto@redhat.com Gilbert Kimetto
              RHCS Maintenance RHCS Maintenance
              IdM CS QE IdM CS QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: