Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10202

Incorrect evaluation of executed hashes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Package Init 1.0.2
    • JCR Package Init 1.0.4
    • Repoinit
    • None

    Description

      Only the first executed hash is compared against the list of candidates in https://github.com/apache/sling-org-apache-sling-jcr-packageinit/blob/4a78330354e4d65402ec8bf37dfda20346826651/src/main/java/org/apache/sling/jcr/packageinit/impl/ExecutionPlanRepoInitializer.java#L127.

      If another item in the executed hash list is containing the hash already, the execution plan is still scheduled for execution. I think a nested loop is somehow missing here.

      The assumption that the execution plan order in candidates and processed hashes is always the same is wrong.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: