Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9779

Invalid component id in xhtml causes crash when clicking on a task in the dasboard

    XMLWordPrintable

    Details

      Description

      Some ids are generated from the following variable idPrefix :

      <nxu:set var="idPrefix" value="#

      {task.name}

      #

      {status.index}

      " cache="true">, but when the task name contains spaces it causes a crash with the following stack trace:

      Caused by: java.lang.IllegalArgumentException: Holiday request approval0_valueHolder
      at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:555)
      at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:351)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:151)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at org.nuxeo.ecm.platform.ui.web.binding.alias.AliasTagHandler.apply(AliasTagHandler.java:167)
      at org.nuxeo.ecm.platform.ui.web.tag.handler.SetTagHandler.apply(SetTagHandler.java:133)
      at org.nuxeo.ecm.platform.ui.web.binding.alias.AliasTagHandler.apply(AliasTagHandler.java:167)
      at org.nuxeo.ecm.platform.ui.web.tag.handler.SetTagHandler.apply(SetTagHandler.java:133)
      at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:175)

        Attachments

          Activity

            People

            • Assignee:
              mcedica Mariana Cedica
              Reporter:
              mcedica Mariana Cedica
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: