Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3384

TCK: BinaryPropertyTest.testGetLengthJcr2() fails with a multi-valued binary property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: jackrabbit-jcr-tests
    • Labels:
      None

      Description

      The BinaryPropertyTest class returns null from getPropertyIsMultivalued, meaning that it doesn't care if the property being tested is multi-valued or not. And in most cases that is true since the class uses PropertyUtil.getValue utility method to get the (first) value of the property. However, the testGetLengthJcr2 method calls Property.getValue directly, which breaks the test if the property being tested happens to be multi-valued.

        Attachments

          Activity

            People

            • Assignee:
              jukkaz Jukka Zitting
              Reporter:
              jukkaz Jukka Zitting
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: