Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3398

Duplicate JAVA patch suffix should not be allowed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.2.0
    • Ranger
    • None

    Description

      Duplicate JAVA suffix is allowed. Currently we need a manual human intervention to find and correct. Use case in details as follows.

      Use-Case:

      1. Say user1 & user2 working on a fix in Ranger and they both need JAVA patch changes.
      2. Assume user1 needs to update table1 and user2 needs to update table2 using java.
      3. Both Checked latest JAVA patch suffix (say it is _J10050). And used suffix _J10051 for their JAVA files

      If both commits ends up merging. The setup script will apply ONLY one of the both JAVA files (suffixed _J10051) randomly.

      Reproduce Steps:

      1. cd <ranger-repo>/security-admin/src/main/java/org/apache/ranger/patch/
      2. Update suffix of last 2 patches such that both contains same suffix
      3. mvn clean compile package install -U #build ranger
      4. setup ranger

      To avoid this, we need to fail maven build itself if there are duplicate suffix.

      Attachments

        Issue Links

          Activity

            People

              kishor.gollapalliwar Kishor Gollapalliwar
              kishor.gollapalliwar Kishor Gollapalliwar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: