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

Fix error handling for errors happening in nuxeo restful phase listener

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2 GA
    • Fix Version/s: 5.3 RC
    • Component/s: None

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atchertchian Anahide Tchertchian
                Reporter:
                atchertchian Anahide Tchertchian
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: