Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-441

Potential NPE when forms are badly configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.18.0
    • 2.14.0
    • None
    • None

      Bug:
      Impossible to open forms in the cms 

       Message : Can not dispatch request '2' : 'forms' 'forms-list.json' '{lang=fr, siteName=intranet, page=1, start=0, limit=25}' Emplacement : org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46) Pile d'appels : org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'forms' 'forms-list.json' '{lang=fr, siteName=intranet, page=1, start=0, limit=25}' at org.ametys.core.ui.dispatcher.DispatchGenerator#_dispatching:198 at org.ametys.core.ui.dispatcher.DispatchGenerator#generate:95 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode#invoke:144 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
      Caused by: java.lang.NullPointerException
      at org.ametys.plugins.forms.table.FormTableManager#getColumns:803
      at org.ametys.plugins.forms.data.GetFormsListAction#act:106

      Reason:
      The method _extractField in the class FormPropertiesManager can potentially return null

      The method getColumns in the class FormTableManager isn't configured to handle an id that is null 

      Badly configured form with several inputs with the same id

            Unassigned Unassigned
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: