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

NumberFormatException during scan

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.0.1
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Testing
    • Sprint:
      EJBCA Team Alice - 2019 w6

      Description

      No security issue, but we can improve invalid input handling.

       1.

      Caused by: java.lang.NumberFormatException: null
      at java.lang.Integer.parseInt(Integer.java:542)
      at java.lang.Integer.parseInt(Integer.java:615)
      at org.ejbca.ui.web.admin.keybind.InternalKeyBindingMBean.flushCurrentCache(InternalKeyBindingMBean.java:841)
      at org.ejbca.ui.web.admin.keybind.InternalKeyBindingMBean.getCurrentInternalKeyBindingId(InternalKeyBindingMBean.java:816)
      at org.ejbca.ui.web.admin.keybind.InternalKeyBindingMBean.isAllowedToEdit(InternalKeyBindingMBean.java:869)

       2.

      at java.lang.Integer.parseInt(Integer.java:542)
      at java.lang.Integer.parseInt(Integer.java:615)
      at org.ejbca.ui.web.admin.cryptotoken.CryptoTokenDownloadServlet.doGet(CryptoTokenDownloadServlet.java:69)

      3.

      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:569)
      at java.lang.Integer.parseInt(Integer.java:615)
      at org.ejbca.ui.web.admin.cainterface.CACertServlet.doGet(CACertServlet.java:125)

      4.

      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:569)
      at java.math.BigInteger.<init>(BigInteger.java:470)
      at org.ejbca.ui.web.admin.cainterface.EndEntityCertServlet.doGet(EndEntityCertServlet.java:121)

      5.

      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:580)
      at java.lang.Integer.valueOf(Integer.java:766)
      at org.ejbca.ui.web.admin.endentityprofiles.EndEntityProfileMBean.postConstruct(EndEntityProfileMBean.java:253)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 40 minutes
                  40m