Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-4815

NPE in FolderWorkflow#add() when a query contains modify-parameters that are not supplied in the call

    XMLWordPrintable

Details

    Description

      A query can have hippostd:modify properties. The value of fields in a document can be filled by workflow using these. When there is a property mentioned that is not used in the call to the workflow, a NPE occurs.

      Steps to reproduce the error:
      1. In the console of GoGreen go to /hippo:configuration/hippo:queries/hippo:templates/new-faq.
      2. Add 2 new items to the hippostd:modify property: "./hippogogreen:question" and "$myvariable". Write changes to repository.
      3. Log into the cms, and add a new faq in the FAQs folder. The message is: " An error occured, please retry". The stacktrace points to a NPE in org.hippoecm.repository.standardworkflow.FolderWorkflowImpl.

      I think this class tries to parse the given argument, but no value was given during the call. I would expect that in that case the argument would be ignored. In any case the code should not break with an NPE.

      Attachments

        1. screenshot-1.jpg
          215 kB
          Junaidh Kadhar Sheriff

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            bleunis Bert Leunis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: