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

MockProperty does not maintain type of empty multi valued property

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD