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

HTMLEscapingPropertyWrapper and possibly other wrappers do not conform to the JCR API.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.5
    • 4.5.4
    • core
    • None

      Node.getProperty('x') should throw a PathNotFoundException if the x property doesn't exist - according to javadoc. In Magnolia, I get an instance of HTMLEscapingPropertyWrapper, which ends up blowing an NPE when i try to getString(). Not the expected behavior.

      I wasn't able to trace back where the null comes from in the first place, but it kinda sounds like there might be other side-effects/misinterpretation of the api with our wrappers, etc. Please investigate and ensure proper and consistent behavior.

        Acceptance criteria

              rkovarik Roman Kovařík
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD