[
https://jira.nuxeo.com/browse/NXP-6493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florent Guillaume resolved NXP-6493.
------------------------------------
Resolution: Fixed
http://hg.nuxeo.org/nuxeo/nuxeo-jsf/rev/490c43b15ef9
Solved by starting the transaction ourselves when needed (using Seam methods,
as it does additional bookkeeping needed when it commits).
> Make sure transactions are always active when navigating and executing Seam
> EL.
> -------------------------------------------------------------------------------
>
> Key: NXP-6493
> URL: https://jira.nuxeo.com/browse/NXP-6493
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Reporter: Florent Guillaume
> Assignee: Florent Guillaume
> Priority: Major
> Fix For: 5.4.1
>
>
> When for instance clicking on the LiveEdit link, the following happens:
> - nxliveedit.xhtml page view requested
> - Seam phases 1-5 processing
> - RENDER_RESPONSE (6) processing
> - SeamPhaseListener.beforePhase (Seam code)
> - SeamPhaseListener.handleTransactionsBeforePhase -> starts a transaction
> - SeamPhaseListener.beforeRenderResponse
> - SeamPhaseListener.preRenderPage -> executes pages actions, which
> includes generating LE bootstrap document
> - SeamPhaseListener.handleTransactionsAfterPageActions -> commits
> transaction as there were page actions, but does not start a new one
> - RestfulPhaseListener.beforePhase (Nuxeo code)
> - service.navigate -> calls EL expressions -> inject documentManager >
> create a LocalSession outside of a transaction
> So a session outside a transaction has been created and is being held by the
> DocumentManagerBusinessDelegate in its sessions map, and will be served later
> to other requests. Because it was created outside a transaction, it is not
> registered with the transaction manager therefore invalidations processing
> and auto-save do not happen.
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.nuxeo.com/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