Hi everybody,
we migrated our XWiki from Windows Server (Tomcat 7, XWiki 6) to Ubuntu
Server 14.10 (Tomcat 8, XWiki 7) installed via the apt repository.
All issues up to now could be solved but I stumbled upon one remaining
issue.
Opening Pages with " in the title/link lead to a tomcat 500 page.
On the Windows instance the pages work.
Could anybody help me to fix this?
Thanks in advance.
Example:
Page: Kunden Appstore "iPad Apps"
Link:
http://10.80.75.216/xwiki/wiki/kunden/view/Some+%26+Space/Kunden+Appstore+%…
Exception:
HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0:
Failed to extract Entity Resource Reference from URL [
http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+
"iPad+Apps"]
type Exception report
message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to
extract Entity Resource Reference from URL [
http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+
"iPad+Apps"]
description The server encountered an internal error that prevented it from
fulfilling this request.
exception
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number
11007 in 0: Failed to extract Entity Resource Reference from URL [
http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+
"iPad+Apps"]
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:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
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)
root cause
com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract
Entity Resource Reference from URL [
http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+
"iPad+Apps"]
com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:645)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:593)
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:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
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)
root cause
org.xwiki.resource.CreateResourceReferenceException: Invalid URL [
http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+
"iPad+Apps"]
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:641)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:593)
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:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
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)
root cause
java.net.URISyntaxException: Illegal character in path at index 74:
http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+
"iPad+Apps"
java.net.URI$Parser.fail(URI.java:2848)
java.net.URI$Parser.checkChars(URI.java:3021)
java.net.URI$Parser.parseHierarchical(URI.java:3105)
java.net.URI$Parser.parse(URI.java:3053)
java.net.URI.<init>(URI.java:588)
java.net.URL.toURI(URL.java:939)
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:641)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:593)
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:618)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
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)
note The full stack trace of the root cause is available in the Apache
Tomcat/8.0.9 (Ubuntu) logs.