[JIRA] Commented: (NXP-3442) Lifecycle allowed state transitions shouldn't be mutable
[ http://jira.nuxeo.org/browse/NXP-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52207#action_52207 ] Anahide Tchertchian commented on NXP-3442: -- moved changes to jbpm-web (so that it does not depend on nuxeo-dm) http://hg.nuxeo.org/nuxeo/nuxeo-dm/rev/70a7b0ef9a46 http://hg.nuxeo.org/nuxeo/nuxeo-features/rev/4e5c6cb5c444 > Lifecycle allowed state transitions shouldn't be mutable > > > Key: NXP-3442 > URL: http://jira.nuxeo.org/browse/NXP-3442 > Project: Nuxeo Enterprise Platform > Issue Type: Bug >Affects Versions: 5.2 M1 >Reporter: Florent Guillaume >Assignee: Florent Guillaume > Fix For: 5.2 GA > > > CoreSession.getAllowedStateTransitions, through > LifeCycleStateImpl.getAllowedStateTransitions, returns the mutable collection > held by the lifecycle service. > This shouldn't be a mutable collection, as future callers (among which > LifeCycleServiceImpl.followTransition) would get a mutated value. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets
[JIRA] Commented: (NXP-3442) Lifecycle allowed state transitions shouldn't be mutable
[ http://jira.nuxeo.org/browse/NXP-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52189#action_52189 ] Anahide Tchertchian commented on NXP-3442: -- added a method on document actions to retrieve list of allowed life cycle states (unmodifiable collection is not suitable for UI) http://hg.nuxeo.org/nuxeo/nuxeo-dm/rev/4f051ac8f73d http://hg.nuxeo.org/nuxeo/nuxeo-features/rev/2998d0402d5c > Lifecycle allowed state transitions shouldn't be mutable > > > Key: NXP-3442 > URL: http://jira.nuxeo.org/browse/NXP-3442 > Project: Nuxeo Enterprise Platform > Issue Type: Bug >Affects Versions: 5.2 M1 >Reporter: Florent Guillaume >Assignee: Florent Guillaume > Fix For: 5.2 GA > > > CoreSession.getAllowedStateTransitions, through > LifeCycleStateImpl.getAllowedStateTransitions, returns the mutable collection > held by the lifecycle service. > This shouldn't be a mutable collection, as future callers (among which > LifeCycleServiceImpl.followTransition) would get a mutated value. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets
[JIRA] Commented: (NXP-3442) Lifecycle allowed state transitions shouldn't be mutable
[ http://jira.nuxeo.org/browse/NXP-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52186#action_52186 ] Anahide Tchertchian commented on NXP-3442: -- seems unmodifiable collection is not suitable for ui: see document_process.xhtml: throws: [NuxeoExceptionHandler] javax.servlet.ServletException: /incl/tabs/document_process.xhtml @51,81 itemValue="#{lcs}": Property '0' not found on type java.util.Collections$UnmodifiableCollection > Lifecycle allowed state transitions shouldn't be mutable > > > Key: NXP-3442 > URL: http://jira.nuxeo.org/browse/NXP-3442 > Project: Nuxeo Enterprise Platform > Issue Type: Bug >Affects Versions: 5.2 M1 >Reporter: Florent Guillaume >Assignee: Florent Guillaume > Fix For: 5.2 GA > > > CoreSession.getAllowedStateTransitions, through > LifeCycleStateImpl.getAllowedStateTransitions, returns the mutable collection > held by the lifecycle service. > This shouldn't be a mutable collection, as future callers (among which > LifeCycleServiceImpl.followTransition) would get a mutated value. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ___ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets