Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5469

MockProperty does not maintain type of empty multi valued property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • testing
    • None

    Description

      This test fails

      private void assertSetEmptyMultiValueProperty(Node node) throws RepositoryException {
          Property property = node.setProperty("test", new String[]{});
          assertEquals(PropertyType.STRING, property.getType());
      }
      

      Also info.magnolia.test.mock.jcr.MockProperty#getType throws ArrayIndexOutOfBoundsException.

      This behaviour appears to be broken already in org.apache.jackrabbit.commons.AbstractProperty, in fact Jackrabbit itself doesn't use this class.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD