Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32852

ArrayIndexOutOfBoundsException can be thrown in hudson.model.Fingerprint.RangeSet.fromString(...)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      ArrayIndexOutOfBoundsException is thrown when range specification is without end part like "1-", "15-" etc.

      Fix:
      Number of available tokens should be checked and if it isn't appropriate, throw IllegalArgumenException with "Unable to parse..." as currently in this place.

        Attachments

          Issue Links

            Activity

            Hide
            pajasoft Pavel Janoušek added a comment -

            PR sent.

            Show
            pajasoft Pavel Janoušek added a comment - PR sent.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Ing. Pavel Janousek
            Path:
            core/src/main/java/hudson/model/Fingerprint.java
            http://jenkins-ci.org/commit/jenkins/0f89ef4162f5c9e0da687f51b1eae61aa512c4f9
            Log:
            JENKINS-32852 Fixed possible ArrayIndexOutOfBoundsException in RangeSet.fromString()

            Fixed possible ArrayIndexOutOfBoundsException in
            hudson.model.Fingerprint.RangeSet.fromString(...)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ing. Pavel Janousek Path: core/src/main/java/hudson/model/Fingerprint.java http://jenkins-ci.org/commit/jenkins/0f89ef4162f5c9e0da687f51b1eae61aa512c4f9 Log: JENKINS-32852 Fixed possible ArrayIndexOutOfBoundsException in RangeSet.fromString() Fixed possible ArrayIndexOutOfBoundsException in hudson.model.Fingerprint.RangeSet.fromString(...)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/src/main/java/hudson/model/Fingerprint.java
            http://jenkins-ci.org/commit/jenkins/721d323e75ce4b1e65d3ba6875dc124b1bdba698
            Log:
            Merge pull request #2023 from pjanouse/JENKINS-32852

            [FIXED JENKINS-32852] Fixed possible ArrayIndexOutOfBoundsException

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/java/hudson/model/Fingerprint.java http://jenkins-ci.org/commit/jenkins/721d323e75ce4b1e65d3ba6875dc124b1bdba698 Log: Merge pull request #2023 from pjanouse/ JENKINS-32852 [FIXED JENKINS-32852] Fixed possible ArrayIndexOutOfBoundsException
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #4459
            JENKINS-32852 Fixed possible ArrayIndexOutOfBoundsException in (Revision 0f89ef4162f5c9e0da687f51b1eae61aa512c4f9)

            Result = SUCCESS
            pjanouse : 0f89ef4162f5c9e0da687f51b1eae61aa512c4f9
            Files :

            • core/src/main/java/hudson/model/Fingerprint.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #4459 JENKINS-32852 Fixed possible ArrayIndexOutOfBoundsException in (Revision 0f89ef4162f5c9e0da687f51b1eae61aa512c4f9) Result = SUCCESS pjanouse : 0f89ef4162f5c9e0da687f51b1eae61aa512c4f9 Files : core/src/main/java/hudson/model/Fingerprint.java

              People

              • Assignee:
                pajasoft Pavel Janoušek
                Reporter:
                pajasoft Pavel Janoušek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: