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

NPE in FolderWorkflow on inherited multi-valued properties

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.24.14, 2.26.03
    • 2.24.15, 2.26.04
    • None
    • Sprint 84

    Description

      When adding an inherited multi-valued property to hippostd:modify of a query template (e.g. new document), the following NPE is logged (full stacktrace is attached):
      [INFO] [talledLocalContainer] javax.jcr.ValueFormatException: property /content/documents/ul2nl/organisaties/archeologie/ul2:authorization is a multi-valued property, so it's values can only be retrieved as an array

      Reproduction path:
      -In http://localhost:8080/cms/console/?path=/hippo:configuration/hippo:queries/hippo:templates/new-document add the following values:
      -./hippo:paths (we're using a different property, ul2:authorization, but the same error is logged when using hippo:paths. Just make sure you enter a multi-valued property)
      -$inherited
      -Write changes to repository
      -Go to CMS and create a new document
      -Error will be triggered: 'Invalid content'

      Expected behaviour:
      Multi-valued properties are supported

      Attachments

        1. FolderWorkflowImpl.java
          50 kB
          Robbert Kauffman
        2. FolderWorkflowImpl.patch
          2 kB
          Robbert Kauffman
        3. hippo-cms-error (3).txt
          5 kB
          Robbert Kauffman

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            rkauffman Robbert Kauffman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: