Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1496

Node.getProperties(String[]) returns undecorated Property

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.2.0
    • 4.1.1, 4.2.0
    • None
    • Platform Sprint 142

    Description

      If run inside the repository VM, the following code results in an IllegalStateException("item is not of type ItemDecorator")

      		Node demo = session.getNode("/");
      		Property p1 = demo.getProperty("jcr:uuid");
      		Property p2 = demo.getProperties(new String[]{"jcr:uuid"}).nextProperty();
      		p1.isSame(p2);
      

      The problem seems to be a missing wrapper on p2, as returned by getProperties(String[]).

      isSame() then checks for the wrapper and throws.

      I also checked getProperties(String) and getProperty(String), both of which work normally.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              escitalopram Wolfgang Illmeyer
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: