Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-1496

Node.getProperties(String[]) returns undecorated Property

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 4.1.1, 4.2.0
    • Labels:
    • Similar issues:
    • Processed by team:
      Platform
    • Sprint:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: