[ 
https://jira.nuxeo.org/browse/NXP-5762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=82492#action_82492
 ] 

Anahide Tchertchian commented on NXP-5762:
------------------------------------------

actually bug is not that easy to reproduce, a definitive way to reproduce it is 
to use the "coverage_widget.xhtml" template in smart search query conditions, 
and to edit a smart folder.
Steps:
- select the coverage condition that will display the coverage widget
- cancel addition of it (that does not make any difference)
- click on submit
=> error (because there's another coverage widget on the dublincore layout, 
also displayed in this form)

Caused by: java.lang.NullPointerException
        at 
org.nuxeo.ecm.platform.ui.web.directory.ChainSelect.getSelection(ChainSelect.java:376)
        at 
org.nuxeo.ecm.platform.ui.web.directory.ChainSelectListboxComponent.decode(ChainSelectListboxComponent.java:406)
        at 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1031)
        at javax.faces.component.UIInput.processDecodes(UIInput.java:639)


> Fix chain select bug when using the same widget template twice on the same 
> page
> -------------------------------------------------------------------------------
>
>                 Key: NXP-5762
>                 URL: https://jira.nuxeo.org/browse/NXP-5762
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.3.2
>            Reporter: Anahide Tchertchian
>             Fix For: 5.4
>
>
> Steps to reproduce:
> - display a layout with two distinct widgets both using the 
> "coverage_widget.xhtml" template
> - submit the form
> => NullPointerException in ChainSelect
> This is due to bad referencing between chain select sub components: trying to 
> fix the error by using safer code will result in a validation error as the 
> second chain select will not resolve the second select value correctly (and 
> incomplete selections are not allowed)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to