Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6106

Contents with unknown workflow step ID make the BO search crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 3.4.6, 3.5.4
    • None
    • None

      When searching contents in the back-office, we display the current step's icon and label.
      If the current step of a content in the repository is inconsistent (i.e. existed once but doesn't anymore, or some other error), having this content in the search results makes the search crash. The logs contain the following error:

      2015-03-12 11:04:38,390 ERROR [sitemap] (http-8080-7;/cms/plugins/web/search/list.xml) Cannot search for contents : null
      java.lang.NullPointerException
      	at org.ametys.cms.repository.SearchGenerator.saxContentCurrentState(SearchGenerator.java:754)
      	at org.ametys.cms.repository.SearchGenerator.saxContent(SearchGenerator.java:587)
      	at org.ametys.cms.repository.SearchGenerator.generate(SearchGenerator.java:169)
      

      If the step doesn't exist in the workflow, we should display an "unknown state" icon and message instead of crashing.

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: