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

FileParameterValue should compare contents and not just location

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate
    • core
    • n/a

    Description

      The hashCode() implementation of FileParameterValue.java only considers the location. Often times the file parameter is passed with the same file name and thus the same location, but the contents are different. The hashCode() should consider the contents so that the queue will queue the WaitingItem for each invocation that has different file parameter contents.

      The current workaround is to add a string parameter that provides a unique string like a timestamp and ldap name. This is not ideal having to do an extra parameter to differentiate the parameter action list.

      Attachments

        Issue Links

          Activity

            oleg_nenashev Oleg Nenashev added a comment -

            Marking as duplicate to JENKINS-19017, because the second one is referenced from the PR

            oleg_nenashev Oleg Nenashev added a comment - Marking as duplicate to JENKINS-19017 , because the second one is referenced from the PR

            People

              Unassigned Unassigned
              elblinkin LB Denker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: