Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20607

Some URLs display a 500 HTTP instead of DocumentDoesNotExist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 14.9
    • None
    • None
    • Unknown

    Description

      Steps to reproduce:

      Result: the user gets a 500 HTTP status and a nasty error

      HTTP ERROR 500 javax.servlet.ServletException: Failed to extract the Resource Reference from the URL [http://localhost:8080/xwiki/jcaptcha]
      URI:	/xwiki/jcaptcha
      STATUS:	500
      MESSAGE:	javax.servlet.ServletException: Failed to extract the Resource Reference from the URL [http://localhost:8080/xwiki/jcaptcha]
      SERVLET:	default
      CAUSED BY:	javax.servlet.ServletException: Failed to extract the Resource Reference from the URL [http://localhost:8080/xwiki/jcaptcha]
      CAUSED BY:	org.xwiki.resource.CreateResourceReferenceException: Invalid JCaptcha URL format [/]
      Caused by:
      
      javax.servlet.ServletException: Failed to extract the Resource Reference from the URL [http://localhost:8080/xwiki/jcaptcha]
      	at org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.getResourceReference(ResourceReferenceHandlerServlet.java:110)
      	at org.xwiki.resource.servlet.ResourceReferenceHandlerServlet.service(ResourceReferenceHandlerServlet.java:87)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
      	at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
      	at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1624)
      	at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFi
      

      Expected result: the users receives the "The requested page could not be found." message similar to accesing http://localhost:8080/xwiki/foo

      Attachments

        Activity

          People

            Unassigned Unassigned
            oana.tabaranu Elena-Oana Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: