[
http://jira.nuxeo.org/browse/NXP-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60792#action_60792
]
Anahide Tchertchian commented on NXP-4117:
------------------------------------------
TODO:
- create a jar with all existing errors so that it can be unit tested. Also
need to activate anonymous login to test NXP-3702.
Current status:
- servlet errors are not caught anymore by the exception filter. could be a
good thing since we don't want it to apply to webengine requests, for instance.
- given diff files give more accurate errors, but there is still an error when
trying to access to a non-existing document.
- transaction is not rolled back correctly because seam phase listener is
called before, and commits the transaction if it's active => need another
solution (interceptor?)
> Fix error handling for errors happening in nuxeo restful phase listener
> -----------------------------------------------------------------------
>
> Key: NXP-4117
> URL: http://jira.nuxeo.org/browse/NXP-4117
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.2 GA
> Reporter: Anahide Tchertchian
> Assignee: Anahide Tchertchian
> Fix For: 5.3.x
>
>
> The error handling methods put the system in a bad state when issuing an
> error in RestFulPhasListener class. This can be reproduced trying to access a
> page with an unknow view id, or trying to acess a document without READ
> rights.
> http-127.0.0.1-8080-1 - 2009-10-02 15:38:01,895 ERROR
> [org.jboss.seam.web.ExceptionFilter] handling uncaught exception
> java.lang.IllegalStateException
> at
> com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:395)
> at
> com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:147)
> at
> com.sun.faces.util.RequestStateManager.getStateMap(RequestStateManager.java:276)
> at
> com.sun.faces.util.RequestStateManager.remove(RequestStateManager.java:243)
> at
> com.sun.faces.context.FacesContextImpl.release(FacesContextImpl.java:345)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:283)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> at
> org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at
> org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
> at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
> at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
> at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
--
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
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets