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

Fix checks for numeric IDs

    Details

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

      Description

      The StringUtils.isNumeric method is used in a few places in EJBCA, for example to check for valid IDs.

      This method is not appropriate to use with integer IDs, since it does not allow negative numbers.

      Check all occurrences of this method and replace where negative numbers are allowed.
      One such place is in CryptoTokenDownloadServlet, which is used for downloading public keys of crypto tokens.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              samuel Samuel Lidén Borell
              Verified by:
              Tarmo Raudsep (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Time Spent - 15 minutes Remaining Estimate - 45 minutes
                  45m
                  Logged:
                  Time Spent - 15 minutes Remaining Estimate - 45 minutes
                  15m