Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3939

SegmentMK Template equals and hashCode broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.15, 1.4
    • segmentmk
    • None

    Description

      the hash code generation cannot differentiate between 'zeo child nodes' and 'many child nodes', producing the same value if all other properties are the same.

      equals: in one of the 2 constructors the 'properties' array is not sorted, producing a failing check if 2 templates are the same but have shuffled properties

      Attachments

        1. templates.patch
          5 kB
          Alex Deparvu

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: