Uploaded image for project: 'Admin Tools Application'
  1. Admin Tools Application
  2. ADMINTOOL-37

Exceptions when clicking on "View Diff" link for a given document, when using the Wiki Diff tool

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.6
    • Fix Version/s: 4.1.7
    • Labels:
    • Similar issues:

      Description

      This is displayed in the browser :

      javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Admin/WikiDiff?page=Main/WebHome.xml&source=http://localhost:8080/xwiki/bin/download/Admin/WikiDiff/package.xar&target=&skipNewRev=${request.skipNewRev}]
      	org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
      	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:427)
      	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
      	org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:160)
      	org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      	com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
      	org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
      
      com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract Entity Resource Reference from URL [http://localhost:8080/xwiki/bin/view/Admin/WikiDiff?page=Main/WebHome.xml&source=http://localhost:8080/xwiki/bin/download/Admin/WikiDiff/package.xar&target=&skipNewRev=${request.skipNewRev}]
      	com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:619)
      	com.xpn.xwiki.XWiki.getXWiki(XWiki.java:567)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:170)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
      	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
      	org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:160)
      	org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      	com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
      	org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
      
      org.xwiki.resource.CreateResourceReferenceException: Invalid URL [http://localhost:8080/xwiki/bin/view/Admin/WikiDiff?page=Main/WebHome.xml&source=http://localhost:8080/xwiki/bin/download/Admin/WikiDiff/package.xar&target=&skipNewRev=${request.skipNewRev}]
      	org.xwiki.url.ExtendedURL.<init>(ExtendedURL.java:109)
      	org.xwiki.url.internal.standard.StandardURLResourceReferenceResolver.resolve(StandardURLResourceReferenceResolver.java:161)
      	org.xwiki.url.internal.standard.StandardURLResourceReferenceResolver.resolve(StandardURLResourceReferenceResolver.java:55)
      	org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:75)
      	org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:45)
      	com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:615)
      	com.xpn.xwiki.XWiki.getXWiki(XWiki.java:567)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:170)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
      	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
      	org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:160)
      	org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      	com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
      	org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
      
      java.net.URISyntaxException: Illegal character in query at index 212: http://localhost:8080/xwiki/bin/view/Admin/WikiDiff?page=Main/WebHome.xml&source=http://localhost:8080/xwiki/bin/download/Admin/WikiDiff/package.xar&target=&skipNewRev=${request.skipNewRev}
      	java.net.URI$Parser.fail(Unknown Source)
      	java.net.URI$Parser.checkChars(Unknown Source)
      	java.net.URI$Parser.parseHierarchical(Unknown Source)
      	java.net.URI$Parser.parse(Unknown Source)
      	java.net.URI.<init>(Unknown Source)
      	java.net.URL.toURI(Unknown Source)
      	org.xwiki.url.ExtendedURL.<init>(ExtendedURL.java:107)
      	org.xwiki.url.internal.standard.StandardURLResourceReferenceResolver.resolve(StandardURLResourceReferenceResolver.java:161)
      	org.xwiki.url.internal.standard.StandardURLResourceReferenceResolver.resolve(StandardURLResourceReferenceResolver.java:55)
      	org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:75)
      	org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:45)
      	com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:615)
      	com.xpn.xwiki.XWiki.getXWiki(XWiki.java:567)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:170)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
      	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
      	org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:160)
      	org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      	com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
      	org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
      

      Note that if I remove

      ${request.skipNewRev}

      from the URL, the page is properly displayed.

        Attachments

          Activity

            People

            • Assignee:
              acotiuga Alex Cotiugă
              Reporter:
              ralucamorosan Raluca Stavro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: