-
Bug
-
Resolution: Done
-
Undefined
-
None
-
rhel-9.4
-
None
-
None
-
None
-
rhel-sst-idm-cs
-
ssg_idm
-
None
-
False
-
-
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
- Generate the Certificate Request
- Approve the request
- Generate Certificate Revokation Request using 'CMCRevoke' command.
- Submit the request on EE Page
- 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
{{}}
- INE: LdapBoundConnFactory (DBSubsystem).returnConn: final values. Total: 3, pool: 3
- 2024-03-18 18:58:32 [https-jsse-jss-nio-20443-exec-22] SEVERE: CMCRevReqServlet: For input string: "88613806727793172336691275452995819241"
- java.lang.NumberFormatException: For input string: "88613806727793172336691275452995819241"
- at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
- at java.base/java.lang.Integer.parseInt(Integer.java:668)
- at java.base/java.lang.Integer.valueOf(Integer.java:999)
- at com.netscape.cms.servlet.cert.CMCRevReqServlet.auditSerialNumber(CMCRevReqServlet.java:865)
- at com.netscape.cms.servlet.cert.CMCRevReqServlet.process(CMCRevReqServlet.java:367)
- at com.netscape.cms.servlet.cert.CMCRevReqServlet.process(CMCRevReqServlet.java:270)
- at com.netscape.cms.servlet.base.CMSServlet.service(CMSServlet.java:502)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
- at jdk.internal.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.apache.catalina.security.SecurityUtil.lambda$execute$0(SecurityUtil.java:280)
- at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
- at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:584)
- at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
- at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:170)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:221)
- at org.apache.catalina.core.ApplicationFilterChain.lambda$doFilter$0(ApplicationFilterChain.java:145)
- at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143)
- at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
- at jdk.internal.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
- at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.base/java.lang.reflect.Method.invoke(Method.java:568)
- at org.apache.catalina.security.SecurityUtil.lambda$execute$0(SecurityUtil.java:280)
- at java.base/java.security.AccessController.doPrivileged(AccessController.java:712)
- at java.base/javax.security.auth.Subject.doAsPrivileged(Subject.java:584)
- at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
- at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:253)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:187)
- at org.apache.catalina.core.ApplicationFilterChain.lambda$doFilter$0(ApplicationFilterChain.java:145)
- at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:143)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
- at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
- at com.netscape.cms.tomcat.ExternalAuthenticationValve.invoke(ExternalAuthenticationValve.java:83)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
- at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:555)
- at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
- at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
- at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
- at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890)
- at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743)
- at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
- at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
- at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
- at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
- at java.base/java.lang.Thread.run(Thread.java:840)
{{}}