Tomcat error 500 for pages with " in title

classic Classic list List threaded Threaded
15 messages Options
D R
Reply | Threaded
Open this post in threaded view
|

Tomcat error 500 for pages with " in title

D R
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+%22iPad+Apps%22

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.
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

rrodriguezIDIS
Hi D R!

Have you checked if the encoding in the whole enviroment is correctly set up? I've seen something similar here in a CentOS installation this morning while fine tunning encoding as per...

http://goo.gl/RC2k5k

I'm not able to remember what error resulted to at least a similar message, but it was an erroneous configuration in some step. I swear that it was while teaking with hibernate.cfg.xml thought...

HTH!

Ricardo

--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es

________________________________________
De: users [[hidden email]] en nombre de D R [[hidden email]]
Enviado: lunes, 20 de abril de 2015 16:09
Para: XWiki Users
Asunto: [xwiki-users] Tomcat error 500 for pages with " in title

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+%22iPad+Apps%22

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.
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users

________________________________

Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
D R
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

D R
Thanks, Ricardo.

I checked the encoding documentation and performed some steps but the issue
still occurs.

What I did:

- XWiki encoding
    - web.xml: already UTF-8
    - xwiki.cfg: already UTF-8

- HTML encoding: added to each wiki (Content-Type tag was completely
missing)

- Hibernate configuration: UTF-8 properties added

- MySQL config: added UTF-8 settings and converted each database from
utf8_general_ci to utf8_bin

- Tomcat: already UTF-8

- System config: already en_US.UTF-8

- OpenOffice import: no changes needed because no issues so far

I then rebooted the Ubuntu Server machine.

When opening pages with " in the title/link I still get the same error 500
from tomcat.

Any further hints/suggestions?

Regs,
Dennis

2015-04-20 20:54 GMT+02:00 <[hidden email]>:

> Hi D R!
>
> Have you checked if the encoding in the whole enviroment is correctly set
> up? I've seen something similar here in a CentOS installation this morning
> while fine tunning encoding as per...
>
> http://goo.gl/RC2k5k
>
> I'm not able to remember what error resulted to at least a similar
> message, but it was an erroneous configuration in some step. I swear that
> it was while teaking with hibernate.cfg.xml thought...
>
> HTH!
>
> Ricardo
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
>
> ________________________________________
> De: users [[hidden email]] en nombre de D R [[hidden email]]
> Enviado: lunes, 20 de abril de 2015 16:09
> Para: XWiki Users
> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>
> 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+%22iPad+Apps%22
>
> 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.
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
> ________________________________
>
> Nota: A información contida nesta mensaxe e os seus posibles documentos
> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
> por favor elimínea. A distribución ou copia desta mensaxe non está
> autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos
> adjuntos es privada y confidencial y está dirigida únicamente a su
> destinatario/a. Si usted no es el/la destinatario/a original de este
> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
> está autorizada.
>
> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
D R
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

D R
Does anybody have additional hints how I can solve this blocking issue?

Thanks in advance.

2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:

> Thanks, Ricardo.
>
> I checked the encoding documentation and performed some steps but the
> issue still occurs.
>
> What I did:
>
> - XWiki encoding
>     - web.xml: already UTF-8
>     - xwiki.cfg: already UTF-8
>
> - HTML encoding: added to each wiki (Content-Type tag was completely
> missing)
>
> - Hibernate configuration: UTF-8 properties added
>
> - MySQL config: added UTF-8 settings and converted each database from
> utf8_general_ci to utf8_bin
>
> - Tomcat: already UTF-8
>
> - System config: already en_US.UTF-8
>
> - OpenOffice import: no changes needed because no issues so far
>
> I then rebooted the Ubuntu Server machine.
>
> When opening pages with " in the title/link I still get the same error 500
> from tomcat.
>
> Any further hints/suggestions?
>
> Regs,
> Dennis
>
> 2015-04-20 20:54 GMT+02:00 <[hidden email]>:
>
>> Hi D R!
>>
>> Have you checked if the encoding in the whole enviroment is correctly set
>> up? I've seen something similar here in a CentOS installation this morning
>> while fine tunning encoding as per...
>>
>> http://goo.gl/RC2k5k
>>
>> I'm not able to remember what error resulted to at least a similar
>> message, but it was an erroneous configuration in some step. I swear that
>> it was while teaking with hibernate.cfg.xml thought...
>>
>> HTH!
>>
>> Ricardo
>>
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Technical Secretariat
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>>
>> ________________________________________
>> De: users [[hidden email]] en nombre de D R [[hidden email]]
>> Enviado: lunes, 20 de abril de 2015 16:09
>> Para: XWiki Users
>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>>
>> 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+%22iPad+Apps%22
>>
>> 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.
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>> ________________________________
>>
>> Nota: A información contida nesta mensaxe e os seus posibles documentos
>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
>> por favor elimínea. A distribución ou copia desta mensaxe non está
>> autorizada.
>>
>> Nota: La información contenida en este mensaje y sus posibles documentos
>> adjuntos es privada y confidencial y está dirigida únicamente a su
>> destinatario/a. Si usted no es el/la destinatario/a original de este
>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>> está autorizada.
>>
>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

rrodriguezIDIS
Hi D R!

Does this URL included in the error message some special meaning for you? Could it be the only space with some reserved characters in the space name?

http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps

Perhaps they were allowed in your Windows Server and Ubuntu rejects them?

Cheers!

--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es

________________________________________
De: users [[hidden email]] en nombre de D R [[hidden email]]
Enviado: miércoles, 22 de abril de 2015 11:33
Para: XWiki Users
Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title

Does anybody have additional hints how I can solve this blocking issue?

Thanks in advance.

2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:

> Thanks, Ricardo.
>
> I checked the encoding documentation and performed some steps but the
> issue still occurs.
>
> What I did:
>
> - XWiki encoding
>     - web.xml: already UTF-8
>     - xwiki.cfg: already UTF-8
>
> - HTML encoding: added to each wiki (Content-Type tag was completely
> missing)
>
> - Hibernate configuration: UTF-8 properties added
>
> - MySQL config: added UTF-8 settings and converted each database from
> utf8_general_ci to utf8_bin
>
> - Tomcat: already UTF-8
>
> - System config: already en_US.UTF-8
>
> - OpenOffice import: no changes needed because no issues so far
>
> I then rebooted the Ubuntu Server machine.
>
> When opening pages with " in the title/link I still get the same error 500
> from tomcat.
>
> Any further hints/suggestions?
>
> Regs,
> Dennis
>
> 2015-04-20 20:54 GMT+02:00 <[hidden email]>:
>
>> Hi D R!
>>
>> Have you checked if the encoding in the whole enviroment is correctly set
>> up? I've seen something similar here in a CentOS installation this morning
>> while fine tunning encoding as per...
>>
>> http://goo.gl/RC2k5k
>>
>> I'm not able to remember what error resulted to at least a similar
>> message, but it was an erroneous configuration in some step. I swear that
>> it was while teaking with hibernate.cfg.xml thought...
>>
>> HTH!
>>
>> Ricardo
>>
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Technical Secretariat
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>>
>> ________________________________________
>> De: users [[hidden email]] en nombre de D R [[hidden email]]
>> Enviado: lunes, 20 de abril de 2015 16:09
>> Para: XWiki Users
>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>>
>> 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+%22iPad+Apps%22
>>
>> 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.
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>> ________________________________
>>
>> Nota: A información contida nesta mensaxe e os seus posibles documentos
>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
>> por favor elimínea. A distribución ou copia desta mensaxe non está
>> autorizada.
>>
>> Nota: La información contenida en este mensaje y sus posibles documentos
>> adjuntos es privada y confidencial y está dirigida únicamente a su
>> destinatario/a. Si usted no es el/la destinatario/a original de este
>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>> está autorizada.
>>
>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users

________________________________

Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.

Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.

See more languages: http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
--
Ricardo Rodríguez
Research Management and Promotion Technician
Technical Secretariat
Health Research Institute of Santiago de Compostela (IDIS)
http://www.idisantiago.es
D R
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

D R
Hi,

it has nothing to do with the space name. I can reproduce the issue accross
several (sub-)wikis and different spaces. The only thing relevant to
reproduce the error is the quotation mark (") in the page name.

As soon as I want to open such a document or create one I get the 500 error
from tomcat mentioned below.

Yes, the Windows server accepts the quotation marks, I can click the
document links and they are shown correctly, the Ubuntu Server throughs the
500 error at me.

Regs,
Dennis

2015-04-22 11:44 GMT+02:00 <[hidden email]>:

> Hi D R!
>
> Does this URL included in the error message some special meaning for you?
> Could it be the only space with some reserved characters in the space name?
>
>
> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
>
> Perhaps they were allowed in your Windows Server and Ubuntu rejects them?
>
> Cheers!
>
> --
> Ricardo Rodríguez
> Research Management and Promotion Technician
> Technical Secretariat
> Health Research Institute of Santiago de Compostela (IDIS)
> http://www.idisantiago.es
>
> ________________________________________
> De: users [[hidden email]] en nombre de D R [[hidden email]]
> Enviado: miércoles, 22 de abril de 2015 11:33
> Para: XWiki Users
> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
>
> Does anybody have additional hints how I can solve this blocking issue?
>
> Thanks in advance.
>
> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
>
> > Thanks, Ricardo.
> >
> > I checked the encoding documentation and performed some steps but the
> > issue still occurs.
> >
> > What I did:
> >
> > - XWiki encoding
> >     - web.xml: already UTF-8
> >     - xwiki.cfg: already UTF-8
> >
> > - HTML encoding: added to each wiki (Content-Type tag was completely
> > missing)
> >
> > - Hibernate configuration: UTF-8 properties added
> >
> > - MySQL config: added UTF-8 settings and converted each database from
> > utf8_general_ci to utf8_bin
> >
> > - Tomcat: already UTF-8
> >
> > - System config: already en_US.UTF-8
> >
> > - OpenOffice import: no changes needed because no issues so far
> >
> > I then rebooted the Ubuntu Server machine.
> >
> > When opening pages with " in the title/link I still get the same error
> 500
> > from tomcat.
> >
> > Any further hints/suggestions?
> >
> > Regs,
> > Dennis
> >
> > 2015-04-20 20:54 GMT+02:00 <[hidden email]
> >:
> >
> >> Hi D R!
> >>
> >> Have you checked if the encoding in the whole enviroment is correctly
> set
> >> up? I've seen something similar here in a CentOS installation this
> morning
> >> while fine tunning encoding as per...
> >>
> >> http://goo.gl/RC2k5k
> >>
> >> I'm not able to remember what error resulted to at least a similar
> >> message, but it was an erroneous configuration in some step. I swear
> that
> >> it was while teaking with hibernate.cfg.xml thought...
> >>
> >> HTH!
> >>
> >> Ricardo
> >>
> >> --
> >> Ricardo Rodríguez
> >> Research Management and Promotion Technician
> >> Technical Secretariat
> >> Health Research Institute of Santiago de Compostela (IDIS)
> >> http://www.idisantiago.es
> >>
> >> ________________________________________
> >> De: users [[hidden email]] en nombre de D R [[hidden email]
> ]
> >> Enviado: lunes, 20 de abril de 2015 16:09
> >> Para: XWiki Users
> >> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
> >>
> >> 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+%22iPad+Apps%22
> >>
> >> 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.
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >> ________________________________
> >>
> >> Nota: A información contida nesta mensaxe e os seus posibles documentos
> >> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> >> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> mensaxe,
> >> por favor elimínea. A distribución ou copia desta mensaxe non está
> >> autorizada.
> >>
> >> Nota: La información contenida en este mensaje y sus posibles documentos
> >> adjuntos es privada y confidencial y está dirigida únicamente a su
> >> destinatario/a. Si usted no es el/la destinatario/a original de este
> >> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
> >> está autorizada.
> >>
> >> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
> ________________________________
>
> Nota: A información contida nesta mensaxe e os seus posibles documentos
> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
> por favor elimínea. A distribución ou copia desta mensaxe non está
> autorizada.
>
> Nota: La información contenida en este mensaje y sus posibles documentos
> adjuntos es privada y confidencial y está dirigida únicamente a su
> destinatario/a. Si usted no es el/la destinatario/a original de este
> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
> está autorizada.
>
> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

Marius Dumitru Florea
This looks to me like a Tomcat issue. because Tomcat is known for
complaining about some characters in URLs, such as /, for security
reasons. I have no problem using " in the document name on Jetty.

Hope this helps,
Marius

On Wed, Apr 22, 2015 at 1:43 PM, D R <[hidden email]> wrote:

> Hi,
>
> it has nothing to do with the space name. I can reproduce the issue accross
> several (sub-)wikis and different spaces. The only thing relevant to
> reproduce the error is the quotation mark (") in the page name.
>
> As soon as I want to open such a document or create one I get the 500 error
> from tomcat mentioned below.
>
> Yes, the Windows server accepts the quotation marks, I can click the
> document links and they are shown correctly, the Ubuntu Server throughs the
> 500 error at me.
>
> Regs,
> Dennis
>
> 2015-04-22 11:44 GMT+02:00 <[hidden email]>:
>
>> Hi D R!
>>
>> Does this URL included in the error message some special meaning for you?
>> Could it be the only space with some reserved characters in the space name?
>>
>>
>> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
>>
>> Perhaps they were allowed in your Windows Server and Ubuntu rejects them?
>>
>> Cheers!
>>
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Technical Secretariat
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>>
>> ________________________________________
>> De: users [[hidden email]] en nombre de D R [[hidden email]]
>> Enviado: miércoles, 22 de abril de 2015 11:33
>> Para: XWiki Users
>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
>>
>> Does anybody have additional hints how I can solve this blocking issue?
>>
>> Thanks in advance.
>>
>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
>>
>> > Thanks, Ricardo.
>> >
>> > I checked the encoding documentation and performed some steps but the
>> > issue still occurs.
>> >
>> > What I did:
>> >
>> > - XWiki encoding
>> >     - web.xml: already UTF-8
>> >     - xwiki.cfg: already UTF-8
>> >
>> > - HTML encoding: added to each wiki (Content-Type tag was completely
>> > missing)
>> >
>> > - Hibernate configuration: UTF-8 properties added
>> >
>> > - MySQL config: added UTF-8 settings and converted each database from
>> > utf8_general_ci to utf8_bin
>> >
>> > - Tomcat: already UTF-8
>> >
>> > - System config: already en_US.UTF-8
>> >
>> > - OpenOffice import: no changes needed because no issues so far
>> >
>> > I then rebooted the Ubuntu Server machine.
>> >
>> > When opening pages with " in the title/link I still get the same error
>> 500
>> > from tomcat.
>> >
>> > Any further hints/suggestions?
>> >
>> > Regs,
>> > Dennis
>> >
>> > 2015-04-20 20:54 GMT+02:00 <[hidden email]
>> >:
>> >
>> >> Hi D R!
>> >>
>> >> Have you checked if the encoding in the whole enviroment is correctly
>> set
>> >> up? I've seen something similar here in a CentOS installation this
>> morning
>> >> while fine tunning encoding as per...
>> >>
>> >> http://goo.gl/RC2k5k
>> >>
>> >> I'm not able to remember what error resulted to at least a similar
>> >> message, but it was an erroneous configuration in some step. I swear
>> that
>> >> it was while teaking with hibernate.cfg.xml thought...
>> >>
>> >> HTH!
>> >>
>> >> Ricardo
>> >>
>> >> --
>> >> Ricardo Rodríguez
>> >> Research Management and Promotion Technician
>> >> Technical Secretariat
>> >> Health Research Institute of Santiago de Compostela (IDIS)
>> >> http://www.idisantiago.es
>> >>
>> >> ________________________________________
>> >> De: users [[hidden email]] en nombre de D R [[hidden email]
>> ]
>> >> Enviado: lunes, 20 de abril de 2015 16:09
>> >> Para: XWiki Users
>> >> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>> >>
>> >> 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+%22iPad+Apps%22
>> >>
>> >> 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.
>> >> _______________________________________________
>> >> users mailing list
>> >> [hidden email]
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >> ________________________________
>> >>
>> >> Nota: A información contida nesta mensaxe e os seus posibles documentos
>> >> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>> >> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>> mensaxe,
>> >> por favor elimínea. A distribución ou copia desta mensaxe non está
>> >> autorizada.
>> >>
>> >> Nota: La información contenida en este mensaje y sus posibles documentos
>> >> adjuntos es privada y confidencial y está dirigida únicamente a su
>> >> destinatario/a. Si usted no es el/la destinatario/a original de este
>> >> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>> >> está autorizada.
>> >>
>> >> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>> >> _______________________________________________
>> >> users mailing list
>> >> [hidden email]
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >
>> >
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>> ________________________________
>>
>> Nota: A información contida nesta mensaxe e os seus posibles documentos
>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
>> por favor elimínea. A distribución ou copia desta mensaxe non está
>> autorizada.
>>
>> Nota: La información contenida en este mensaje y sus posibles documentos
>> adjuntos es privada y confidencial y está dirigida únicamente a su
>> destinatario/a. Si usted no es el/la destinatario/a original de este
>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>> está autorizada.
>>
>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

Clemens Klein-Robbenhaar
In reply to this post by D R

I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
and cannot reproduce this either, at least not directly.

After I create a page with name `Page with "quotes"`,
I cannot trigger the problem in the browser, but of course I can do so manually
by feeding in a wrong URL:

i.e.:

   curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'

just downloads the page (quotes properly encoded)

   curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+"quotes"'

produces error page (actually from XWiki, I wonder why tomcat does not already
sends a 400 ...)

However when I look into the links that XWiki creates, I see they are all
properly URL-encoded (with %22 for the '"'), so no issue here

Is there anything else in the setup? For example an apache as frontand or the like?

Clemens



On 04/22/2015 12:43 PM, D R wrote:

> Hi,
>
> it has nothing to do with the space name. I can reproduce the issue accross
> several (sub-)wikis and different spaces. The only thing relevant to
> reproduce the error is the quotation mark (") in the page name.
>
> As soon as I want to open such a document or create one I get the 500 error
> from tomcat mentioned below.
>
> Yes, the Windows server accepts the quotation marks, I can click the
> document links and they are shown correctly, the Ubuntu Server throughs the
> 500 error at me.
>
> Regs,
> Dennis
>
> 2015-04-22 11:44 GMT+02:00 <[hidden email]>:
>
>> Hi D R!
>>
>> Does this URL included in the error message some special meaning for you?
>> Could it be the only space with some reserved characters in the space name?
>>
>>
>> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
>>
>> Perhaps they were allowed in your Windows Server and Ubuntu rejects them?
>>
>> Cheers!
>>
>> --
>> Ricardo Rodríguez
>> Research Management and Promotion Technician
>> Technical Secretariat
>> Health Research Institute of Santiago de Compostela (IDIS)
>> http://www.idisantiago.es
>>
>> ________________________________________
>> De: users [[hidden email]] en nombre de D R [[hidden email]]
>> Enviado: miércoles, 22 de abril de 2015 11:33
>> Para: XWiki Users
>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
>>
>> Does anybody have additional hints how I can solve this blocking issue?
>>
>> Thanks in advance.
>>
>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
>>
>>> Thanks, Ricardo.
>>>
>>> I checked the encoding documentation and performed some steps but the
>>> issue still occurs.
>>>
>>> What I did:
>>>
>>> - XWiki encoding
>>>     - web.xml: already UTF-8
>>>     - xwiki.cfg: already UTF-8
>>>
>>> - HTML encoding: added to each wiki (Content-Type tag was completely
>>> missing)
>>>
>>> - Hibernate configuration: UTF-8 properties added
>>>
>>> - MySQL config: added UTF-8 settings and converted each database from
>>> utf8_general_ci to utf8_bin
>>>
>>> - Tomcat: already UTF-8
>>>
>>> - System config: already en_US.UTF-8
>>>
>>> - OpenOffice import: no changes needed because no issues so far
>>>
>>> I then rebooted the Ubuntu Server machine.
>>>
>>> When opening pages with " in the title/link I still get the same error
>> 500
>>> from tomcat.
>>>
>>> Any further hints/suggestions?
>>>
>>> Regs,
>>> Dennis
>>>
>>> 2015-04-20 20:54 GMT+02:00 <[hidden email]
>>> :
>>>
>>>> Hi D R!
>>>>
>>>> Have you checked if the encoding in the whole enviroment is correctly
>> set
>>>> up? I've seen something similar here in a CentOS installation this
>> morning
>>>> while fine tunning encoding as per...
>>>>
>>>> http://goo.gl/RC2k5k
>>>>
>>>> I'm not able to remember what error resulted to at least a similar
>>>> message, but it was an erroneous configuration in some step. I swear
>> that
>>>> it was while teaking with hibernate.cfg.xml thought...
>>>>
>>>> HTH!
>>>>
>>>> Ricardo
>>>>
>>>> --
>>>> Ricardo Rodríguez
>>>> Research Management and Promotion Technician
>>>> Technical Secretariat
>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>> http://www.idisantiago.es
>>>>
>>>> ________________________________________
>>>> De: users [[hidden email]] en nombre de D R [[hidden email]
>> ]
>>>> Enviado: lunes, 20 de abril de 2015 16:09
>>>> Para: XWiki Users
>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>
>>>> 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+%22iPad+Apps%22
>>>>
>>>> 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.
>>>> _______________________________________________
>>>> users mailing list
>>>> [hidden email]
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>>> ________________________________
>>>>
>>>> Nota: A información contida nesta mensaxe e os seus posibles documentos
>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>> mensaxe,
>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>> autorizada.
>>>>
>>>> Nota: La información contenida en este mensaje y sus posibles documentos
>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>>>> está autorizada.
>>>>
>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>> _______________________________________________
>>>> users mailing list
>>>> [hidden email]
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>>
>>>
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>> ________________________________
>>
>> Nota: A información contida nesta mensaxe e os seus posibles documentos
>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe,
>> por favor elimínea. A distribución ou copia desta mensaxe non está
>> autorizada.
>>
>> Nota: La información contenida en este mensaje y sus posibles documentos
>> adjuntos es privada y confidencial y está dirigida únicamente a su
>> destinatario/a. Si usted no es el/la destinatario/a original de este
>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>> está autorizada.
>>
>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>



mit freundlichen Grüßen
Clemens Klein-Robbenhaar

--
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
[hidden email]

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
D R
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

D R
Thanks for the feedback.

Yes, there is an Nginx as frontend running, but I also can reproduce the
issue by calling the direct tomcat address.

I don't know what could be wrong because I'm no tomcat expert at all.

2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
[hidden email]>:

>
> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
> and cannot reproduce this either, at least not directly.
>
> After I create a page with name `Page with "quotes"`,
> I cannot trigger the problem in the browser, but of course I can do so
> manually
> by feeding in a wrong URL:
>
> i.e.:
>
>    curl '
> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
>
> just downloads the page (quotes properly encoded)
>
>    curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+"quotes"'
>
> produces error page (actually from XWiki, I wonder why tomcat does not
> already
> sends a 400 ...)
>
> However when I look into the links that XWiki creates, I see they are all
> properly URL-encoded (with %22 for the '"'), so no issue here
>
> Is there anything else in the setup? For example an apache as frontand or
> the like?
>
> Clemens
>
>
>
> On 04/22/2015 12:43 PM, D R wrote:
> > Hi,
> >
> > it has nothing to do with the space name. I can reproduce the issue
> accross
> > several (sub-)wikis and different spaces. The only thing relevant to
> > reproduce the error is the quotation mark (") in the page name.
> >
> > As soon as I want to open such a document or create one I get the 500
> error
> > from tomcat mentioned below.
> >
> > Yes, the Windows server accepts the quotation marks, I can click the
> > document links and they are shown correctly, the Ubuntu Server throughs
> the
> > 500 error at me.
> >
> > Regs,
> > Dennis
> >
> > 2015-04-22 11:44 GMT+02:00 <[hidden email]
> >:
> >
> >> Hi D R!
> >>
> >> Does this URL included in the error message some special meaning for
> you?
> >> Could it be the only space with some reserved characters in the space
> name?
> >>
> >>
> >>
> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
> >>
> >> Perhaps they were allowed in your Windows Server and Ubuntu rejects
> them?
> >>
> >> Cheers!
> >>
> >> --
> >> Ricardo Rodríguez
> >> Research Management and Promotion Technician
> >> Technical Secretariat
> >> Health Research Institute of Santiago de Compostela (IDIS)
> >> http://www.idisantiago.es
> >>
> >> ________________________________________
> >> De: users [[hidden email]] en nombre de D R [[hidden email]
> ]
> >> Enviado: miércoles, 22 de abril de 2015 11:33
> >> Para: XWiki Users
> >> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
> >>
> >> Does anybody have additional hints how I can solve this blocking issue?
> >>
> >> Thanks in advance.
> >>
> >> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
> >>
> >>> Thanks, Ricardo.
> >>>
> >>> I checked the encoding documentation and performed some steps but the
> >>> issue still occurs.
> >>>
> >>> What I did:
> >>>
> >>> - XWiki encoding
> >>>     - web.xml: already UTF-8
> >>>     - xwiki.cfg: already UTF-8
> >>>
> >>> - HTML encoding: added to each wiki (Content-Type tag was completely
> >>> missing)
> >>>
> >>> - Hibernate configuration: UTF-8 properties added
> >>>
> >>> - MySQL config: added UTF-8 settings and converted each database from
> >>> utf8_general_ci to utf8_bin
> >>>
> >>> - Tomcat: already UTF-8
> >>>
> >>> - System config: already en_US.UTF-8
> >>>
> >>> - OpenOffice import: no changes needed because no issues so far
> >>>
> >>> I then rebooted the Ubuntu Server machine.
> >>>
> >>> When opening pages with " in the title/link I still get the same error
> >> 500
> >>> from tomcat.
> >>>
> >>> Any further hints/suggestions?
> >>>
> >>> Regs,
> >>> Dennis
> >>>
> >>> 2015-04-20 20:54 GMT+02:00 <
> [hidden email]
> >>> :
> >>>
> >>>> Hi D R!
> >>>>
> >>>> Have you checked if the encoding in the whole enviroment is correctly
> >> set
> >>>> up? I've seen something similar here in a CentOS installation this
> >> morning
> >>>> while fine tunning encoding as per...
> >>>>
> >>>> http://goo.gl/RC2k5k
> >>>>
> >>>> I'm not able to remember what error resulted to at least a similar
> >>>> message, but it was an erroneous configuration in some step. I swear
> >> that
> >>>> it was while teaking with hibernate.cfg.xml thought...
> >>>>
> >>>> HTH!
> >>>>
> >>>> Ricardo
> >>>>
> >>>> --
> >>>> Ricardo Rodríguez
> >>>> Research Management and Promotion Technician
> >>>> Technical Secretariat
> >>>> Health Research Institute of Santiago de Compostela (IDIS)
> >>>> http://www.idisantiago.es
> >>>>
> >>>> ________________________________________
> >>>> De: users [[hidden email]] en nombre de D R [
> [hidden email]
> >> ]
> >>>> Enviado: lunes, 20 de abril de 2015 16:09
> >>>> Para: XWiki Users
> >>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
> >>>>
> >>>> 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+%22iPad+Apps%22
> >>>>
> >>>> 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.
> >>>> _______________________________________________
> >>>> users mailing list
> >>>> [hidden email]
> >>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>
> >>>> ________________________________
> >>>>
> >>>> Nota: A información contida nesta mensaxe e os seus posibles
> documentos
> >>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> >>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> >> mensaxe,
> >>>> por favor elimínea. A distribución ou copia desta mensaxe non está
> >>>> autorizada.
> >>>>
> >>>> Nota: La información contenida en este mensaje y sus posibles
> documentos
> >>>> adjuntos es privada y confidencial y está dirigida únicamente a su
> >>>> destinatario/a. Si usted no es el/la destinatario/a original de este
> >>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje
> no
> >>>> está autorizada.
> >>>>
> >>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> >>>> _______________________________________________
> >>>> users mailing list
> >>>> [hidden email]
> >>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>
> >>>
> >>>
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >> ________________________________
> >>
> >> Nota: A información contida nesta mensaxe e os seus posibles documentos
> >> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> >> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> mensaxe,
> >> por favor elimínea. A distribución ou copia desta mensaxe non está
> >> autorizada.
> >>
> >> Nota: La información contenida en este mensaje y sus posibles documentos
> >> adjuntos es privada y confidencial y está dirigida únicamente a su
> >> destinatario/a. Si usted no es el/la destinatario/a original de este
> >> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
> >> está autorizada.
> >>
> >> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> mit freundlichen Grüßen
> Clemens Klein-Robbenhaar
>
> --
> Clemens Klein-Robbenhaar
> Software Development
> EsPresto AG
> Breite Str. 30-31
> 10178 Berlin/Germany
> Tel: +49.(0)30.90 226.763
> Fax: +49.(0)30.90 226.760
> [hidden email]
>
> HRB 77554 B - Berlin-Charlottenburg
> Vorstand: Maya Biersack, Peter Biersack
> Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> Zertifiziert nach ISO 9001:2008
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

Clemens Klein-Robbenhaar

I once had quite bad problems when having an apache in between
who internally decoded an URI and then encoded it back, but only "barely" ...
However it seems this is ruled out here, if the problem happens with tomcat, too.


How do you reproduce the issue with tomcat directly?

a) if you directly *call* a page with an '"' in the URL
  then I'd say, the error is ok, the URL should have been encoded.

b) however if you first go e.g. to the wiki start page,
  and then navigate to the page with quotes in the names, then
  XWiki should encode the url properly, and this error should not happen ...


Can you see what tomcat writes in its access log for that page?

Can you check in the generated HTML of a link that the '"'
is actually encoded as '%22" in the href attribute? (Actually
this must be the case as otherwise the quote would just terminate the href,
at least in these cases where double quotes as attribute delimiters rare used.  )



On 04/23/2015 04:30 PM, D R wrote:

> Thanks for the feedback.
>
> Yes, there is an Nginx as frontend running, but I also can reproduce the
> issue by calling the direct tomcat address.
>
> I don't know what could be wrong because I'm no tomcat expert at all.
>
> 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
> [hidden email]>:
>
>>
>> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
>> and cannot reproduce this either, at least not directly.
>>
>> After I create a page with name `Page with "quotes"`,
>> I cannot trigger the problem in the browser, but of course I can do so
>> manually
>> by feeding in a wrong URL:
>>
>> i.e.:
>>
>>    curl '
>> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
>>
>> just downloads the page (quotes properly encoded)
>>
>>    curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+"quotes"'
>>
>> produces error page (actually from XWiki, I wonder why tomcat does not
>> already
>> sends a 400 ...)
>>
>> However when I look into the links that XWiki creates, I see they are all
>> properly URL-encoded (with %22 for the '"'), so no issue here
>>
>> Is there anything else in the setup? For example an apache as frontand or
>> the like?
>>
>> Clemens
>>
>>
>>
>> On 04/22/2015 12:43 PM, D R wrote:
>>> Hi,
>>>
>>> it has nothing to do with the space name. I can reproduce the issue
>> accross
>>> several (sub-)wikis and different spaces. The only thing relevant to
>>> reproduce the error is the quotation mark (") in the page name.
>>>
>>> As soon as I want to open such a document or create one I get the 500
>> error
>>> from tomcat mentioned below.
>>>
>>> Yes, the Windows server accepts the quotation marks, I can click the
>>> document links and they are shown correctly, the Ubuntu Server throughs
>> the
>>> 500 error at me.
>>>
>>> Regs,
>>> Dennis
>>>
>>> 2015-04-22 11:44 GMT+02:00 <[hidden email]
>>> :
>>>
>>>> Hi D R!
>>>>
>>>> Does this URL included in the error message some special meaning for
>> you?
>>>> Could it be the only space with some reserved characters in the space
>> name?
>>>>
>>>>
>>>>
>> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
>>>>
>>>> Perhaps they were allowed in your Windows Server and Ubuntu rejects
>> them?
>>>>
>>>> Cheers!
>>>>
>>>> --
>>>> Ricardo Rodríguez
>>>> Research Management and Promotion Technician
>>>> Technical Secretariat
>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>> http://www.idisantiago.es
>>>>
>>>> ________________________________________
>>>> De: users [[hidden email]] en nombre de D R [[hidden email]
>> ]
>>>> Enviado: miércoles, 22 de abril de 2015 11:33
>>>> Para: XWiki Users
>>>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>
>>>> Does anybody have additional hints how I can solve this blocking issue?
>>>>
>>>> Thanks in advance.
>>>>
>>>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
>>>>
>>>>> Thanks, Ricardo.
>>>>>
>>>>> I checked the encoding documentation and performed some steps but the
>>>>> issue still occurs.
>>>>>
>>>>> What I did:
>>>>>
>>>>> - XWiki encoding
>>>>>     - web.xml: already UTF-8
>>>>>     - xwiki.cfg: already UTF-8
>>>>>
>>>>> - HTML encoding: added to each wiki (Content-Type tag was completely
>>>>> missing)
>>>>>
>>>>> - Hibernate configuration: UTF-8 properties added
>>>>>
>>>>> - MySQL config: added UTF-8 settings and converted each database from
>>>>> utf8_general_ci to utf8_bin
>>>>>
>>>>> - Tomcat: already UTF-8
>>>>>
>>>>> - System config: already en_US.UTF-8
>>>>>
>>>>> - OpenOffice import: no changes needed because no issues so far
>>>>>
>>>>> I then rebooted the Ubuntu Server machine.
>>>>>
>>>>> When opening pages with " in the title/link I still get the same error
>>>> 500
>>>>> from tomcat.
>>>>>
>>>>> Any further hints/suggestions?
>>>>>
>>>>> Regs,
>>>>> Dennis
>>>>>
>>>>> 2015-04-20 20:54 GMT+02:00 <
>> [hidden email]
>>>>> :
>>>>>
>>>>>> Hi D R!
>>>>>>
>>>>>> Have you checked if the encoding in the whole enviroment is correctly
>>>> set
>>>>>> up? I've seen something similar here in a CentOS installation this
>>>> morning
>>>>>> while fine tunning encoding as per...
>>>>>>
>>>>>> http://goo.gl/RC2k5k
>>>>>>
>>>>>> I'm not able to remember what error resulted to at least a similar
>>>>>> message, but it was an erroneous configuration in some step. I swear
>>>> that
>>>>>> it was while teaking with hibernate.cfg.xml thought...
>>>>>>
>>>>>> HTH!
>>>>>>
>>>>>> Ricardo
>>>>>>
>>>>>> --
>>>>>> Ricardo Rodríguez
>>>>>> Research Management and Promotion Technician
>>>>>> Technical Secretariat
>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>>>> http://www.idisantiago.es
>>>>>>
>>>>>> ________________________________________
>>>>>> De: users [[hidden email]] en nombre de D R [
>> [hidden email]
>>>> ]
>>>>>> Enviado: lunes, 20 de abril de 2015 16:09
>>>>>> Para: XWiki Users
>>>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>>>
>>>>>> 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+%22iPad+Apps%22
>>>>>>
>>>>>> 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.
>>>>>> _______________________________________________
>>>>>> users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>
>>>>>> ________________________________
>>>>>>
>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
>> documentos
>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>>>> mensaxe,
>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>>>> autorizada.
>>>>>>
>>>>>> Nota: La información contenida en este mensaje y sus posibles
>> documentos
>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje
>> no
>>>>>> está autorizada.
>>>>>>
>>>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>>>> _______________________________________________
>>>>>> users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> [hidden email]
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>>> ________________________________
>>>>
>>>> Nota: A información contida nesta mensaxe e os seus posibles documentos
>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>> mensaxe,
>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>> autorizada.
>>>>
>>>> Nota: La información contenida en este mensaje y sus posibles documentos
>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje no
>>>> está autorizada.
>>>>
>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>> _______________________________________________
>>>> users mailing list
>>>> [hidden email]
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>
>>> _______________________________________________
>>> users mailing list
>>> [hidden email]
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
>>
>> mit freundlichen Grüßen
>> Clemens Klein-Robbenhaar
>>
>> --
>> Clemens Klein-Robbenhaar
>> Software Development
>> EsPresto AG
>> Breite Str. 30-31
>> 10178 Berlin/Germany
>> Tel: +49.(0)30.90 226.763
>> Fax: +49.(0)30.90 226.760
>> [hidden email]
>>
>> HRB 77554 B - Berlin-Charlottenburg
>> Vorstand: Maya Biersack, Peter Biersack
>> Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
>> Zertifiziert nach ISO 9001:2008
>> _______________________________________________
>> users mailing list
>> [hidden email]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>



mit freundlichen Grüßen
Clemens Klein-Robbenhaar

--
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
[hidden email]

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
D R
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

D R
I have to take back that it can be reproduced with tomcat directly because
meanwhile I can't anymore, now it works, strange. But calling the page via
nginx still produces the error.

Tomcat log shows the following entry for the URL when opened from the
tomcat URL:
[24/Apr/2015:09:18:45 +0200] "GET
/xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 200 41185

Nginx shows the following for the 500 error:
[24/Apr/2015:09:15:56 +0200] "GET
/xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 500 8831
"-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101
Firefox/37.0"

Can somebody advise me how to make Nginx behave?

2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar <
[hidden email]>:

>
> I once had quite bad problems when having an apache in between
> who internally decoded an URI and then encoded it back, but only "barely"
> ...
> However it seems this is ruled out here, if the problem happens with
> tomcat, too.
>
>
> How do you reproduce the issue with tomcat directly?
>
> a) if you directly *call* a page with an '"' in the URL
>   then I'd say, the error is ok, the URL should have been encoded.
>
> b) however if you first go e.g. to the wiki start page,
>   and then navigate to the page with quotes in the names, then
>   XWiki should encode the url properly, and this error should not happen
> ...
>
>
> Can you see what tomcat writes in its access log for that page?
>
> Can you check in the generated HTML of a link that the '"'
> is actually encoded as '%22" in the href attribute? (Actually
> this must be the case as otherwise the quote would just terminate the href,
> at least in these cases where double quotes as attribute delimiters rare
> used.  )
>
>
>
> On 04/23/2015 04:30 PM, D R wrote:
> > Thanks for the feedback.
> >
> > Yes, there is an Nginx as frontend running, but I also can reproduce the
> > issue by calling the direct tomcat address.
> >
> > I don't know what could be wrong because I'm no tomcat expert at all.
> >
> > 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
> > [hidden email]>:
> >
> >>
> >> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
> >> and cannot reproduce this either, at least not directly.
> >>
> >> After I create a page with name `Page with "quotes"`,
> >> I cannot trigger the problem in the browser, but of course I can do so
> >> manually
> >> by feeding in a wrong URL:
> >>
> >> i.e.:
> >>
> >>    curl '
> >> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
> >>
> >> just downloads the page (quotes properly encoded)
> >>
> >>    curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+
> "quotes"'
> >>
> >> produces error page (actually from XWiki, I wonder why tomcat does not
> >> already
> >> sends a 400 ...)
> >>
> >> However when I look into the links that XWiki creates, I see they are
> all
> >> properly URL-encoded (with %22 for the '"'), so no issue here
> >>
> >> Is there anything else in the setup? For example an apache as frontand
> or
> >> the like?
> >>
> >> Clemens
> >>
> >>
> >>
> >> On 04/22/2015 12:43 PM, D R wrote:
> >>> Hi,
> >>>
> >>> it has nothing to do with the space name. I can reproduce the issue
> >> accross
> >>> several (sub-)wikis and different spaces. The only thing relevant to
> >>> reproduce the error is the quotation mark (") in the page name.
> >>>
> >>> As soon as I want to open such a document or create one I get the 500
> >> error
> >>> from tomcat mentioned below.
> >>>
> >>> Yes, the Windows server accepts the quotation marks, I can click the
> >>> document links and they are shown correctly, the Ubuntu Server throughs
> >> the
> >>> 500 error at me.
> >>>
> >>> Regs,
> >>> Dennis
> >>>
> >>> 2015-04-22 11:44 GMT+02:00 <
> [hidden email]
> >>> :
> >>>
> >>>> Hi D R!
> >>>>
> >>>> Does this URL included in the error message some special meaning for
> >> you?
> >>>> Could it be the only space with some reserved characters in the space
> >> name?
> >>>>
> >>>>
> >>>>
> >>
> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
> >>>>
> >>>> Perhaps they were allowed in your Windows Server and Ubuntu rejects
> >> them?
> >>>>
> >>>> Cheers!
> >>>>
> >>>> --
> >>>> Ricardo Rodríguez
> >>>> Research Management and Promotion Technician
> >>>> Technical Secretariat
> >>>> Health Research Institute of Santiago de Compostela (IDIS)
> >>>> http://www.idisantiago.es
> >>>>
> >>>> ________________________________________
> >>>> De: users [[hidden email]] en nombre de D R [
> [hidden email]
> >> ]
> >>>> Enviado: miércoles, 22 de abril de 2015 11:33
> >>>> Para: XWiki Users
> >>>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
> >>>>
> >>>> Does anybody have additional hints how I can solve this blocking
> issue?
> >>>>
> >>>> Thanks in advance.
> >>>>
> >>>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
> >>>>
> >>>>> Thanks, Ricardo.
> >>>>>
> >>>>> I checked the encoding documentation and performed some steps but the
> >>>>> issue still occurs.
> >>>>>
> >>>>> What I did:
> >>>>>
> >>>>> - XWiki encoding
> >>>>>     - web.xml: already UTF-8
> >>>>>     - xwiki.cfg: already UTF-8
> >>>>>
> >>>>> - HTML encoding: added to each wiki (Content-Type tag was completely
> >>>>> missing)
> >>>>>
> >>>>> - Hibernate configuration: UTF-8 properties added
> >>>>>
> >>>>> - MySQL config: added UTF-8 settings and converted each database from
> >>>>> utf8_general_ci to utf8_bin
> >>>>>
> >>>>> - Tomcat: already UTF-8
> >>>>>
> >>>>> - System config: already en_US.UTF-8
> >>>>>
> >>>>> - OpenOffice import: no changes needed because no issues so far
> >>>>>
> >>>>> I then rebooted the Ubuntu Server machine.
> >>>>>
> >>>>> When opening pages with " in the title/link I still get the same
> error
> >>>> 500
> >>>>> from tomcat.
> >>>>>
> >>>>> Any further hints/suggestions?
> >>>>>
> >>>>> Regs,
> >>>>> Dennis
> >>>>>
> >>>>> 2015-04-20 20:54 GMT+02:00 <
> >> [hidden email]
> >>>>> :
> >>>>>
> >>>>>> Hi D R!
> >>>>>>
> >>>>>> Have you checked if the encoding in the whole enviroment is
> correctly
> >>>> set
> >>>>>> up? I've seen something similar here in a CentOS installation this
> >>>> morning
> >>>>>> while fine tunning encoding as per...
> >>>>>>
> >>>>>> http://goo.gl/RC2k5k
> >>>>>>
> >>>>>> I'm not able to remember what error resulted to at least a similar
> >>>>>> message, but it was an erroneous configuration in some step. I swear
> >>>> that
> >>>>>> it was while teaking with hibernate.cfg.xml thought...
> >>>>>>
> >>>>>> HTH!
> >>>>>>
> >>>>>> Ricardo
> >>>>>>
> >>>>>> --
> >>>>>> Ricardo Rodríguez
> >>>>>> Research Management and Promotion Technician
> >>>>>> Technical Secretariat
> >>>>>> Health Research Institute of Santiago de Compostela (IDIS)
> >>>>>> http://www.idisantiago.es
> >>>>>>
> >>>>>> ________________________________________
> >>>>>> De: users [[hidden email]] en nombre de D R [
> >> [hidden email]
> >>>> ]
> >>>>>> Enviado: lunes, 20 de abril de 2015 16:09
> >>>>>> Para: XWiki Users
> >>>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
> >>>>>>
> >>>>>> 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+%22iPad+Apps%22
> >>>>>>
> >>>>>> 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.
> >>>>>> _______________________________________________
> >>>>>> users mailing list
> >>>>>> [hidden email]
> >>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>
> >>>>>> ________________________________
> >>>>>>
> >>>>>> Nota: A información contida nesta mensaxe e os seus posibles
> >> documentos
> >>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> >>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> >>>> mensaxe,
> >>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
> >>>>>> autorizada.
> >>>>>>
> >>>>>> Nota: La información contenida en este mensaje y sus posibles
> >> documentos
> >>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
> >>>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
> >>>>>> mensaje, por favor elimínelo. La distribución o copia de este
> mensaje
> >> no
> >>>>>> está autorizada.
> >>>>>>
> >>>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> >>>>>> _______________________________________________
> >>>>>> users mailing list
> >>>>>> [hidden email]
> >>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>
> >>>>>
> >>>>>
> >>>> _______________________________________________
> >>>> users mailing list
> >>>> [hidden email]
> >>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>
> >>>> ________________________________
> >>>>
> >>>> Nota: A información contida nesta mensaxe e os seus posibles
> documentos
> >>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> >>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> >> mensaxe,
> >>>> por favor elimínea. A distribución ou copia desta mensaxe non está
> >>>> autorizada.
> >>>>
> >>>> Nota: La información contenida en este mensaje y sus posibles
> documentos
> >>>> adjuntos es privada y confidencial y está dirigida únicamente a su
> >>>> destinatario/a. Si usted no es el/la destinatario/a original de este
> >>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje
> no
> >>>> está autorizada.
> >>>>
> >>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
> >>>> _______________________________________________
> >>>> users mailing list
> >>>> [hidden email]
> >>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>
> >>> _______________________________________________
> >>> users mailing list
> >>> [hidden email]
> >>> http://lists.xwiki.org/mailman/listinfo/users
> >>>
> >>
> >>
> >>
> >> mit freundlichen Grüßen
> >> Clemens Klein-Robbenhaar
> >>
> >> --
> >> Clemens Klein-Robbenhaar
> >> Software Development
> >> EsPresto AG
> >> Breite Str. 30-31
> >> 10178 Berlin/Germany
> >> Tel: +49.(0)30.90 226.763
> >> Fax: +49.(0)30.90 226.760
> >> [hidden email]
> >>
> >> HRB 77554 B - Berlin-Charlottenburg
> >> Vorstand: Maya Biersack, Peter Biersack
> >> Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> >> Zertifiziert nach ISO 9001:2008
> >> _______________________________________________
> >> users mailing list
> >> [hidden email]
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> mit freundlichen Grüßen
> Clemens Klein-Robbenhaar
>
> --
> Clemens Klein-Robbenhaar
> Software Development
> EsPresto AG
> Breite Str. 30-31
> 10178 Berlin/Germany
> Tel: +49.(0)30.90 226.763
> Fax: +49.(0)30.90 226.760
> [hidden email]
>
> HRB 77554 B - Berlin-Charlottenburg
> Vorstand: Maya Biersack, Peter Biersack
> Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> Zertifiziert nach ISO 9001:2008
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

Clemens Klein-Robbenhaar

We are getting closer to a solution ;)

I am pretty sure that if you get the error via nginx, and nginx shows in the
access log something like :

 "GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1"

then in turn the tomcat acess will show for the same request:

  "GET /xwiki/wiki/hardware/view/Test/Test+with+"quotation" HTTP/1.1"

and that ... will not end well.

I had a similar problem with apache which decodes the url partially
before sending it to the backend server. The fix was to send the
original url to the backend, as explained in http://dracos.co.uk/code/apache-rewrite-problem/

Unfortunately I have no idea if/how ngninx handles this problem.

Can you post the relevant part of your nginx configuration anyway,
so anyone with better knowledge of nginx might figure out what to do?


Clemens



> I have to take back that it can be reproduced with tomcat directly because
> meanwhile I can't anymore, now it works, strange. But calling the page via
> nginx still produces the error.
>
> Tomcat log shows the following entry for the URL when opened from the
> tomcat URL:
> [24/Apr/2015:09:18:45 +0200] "GET
> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 200 41185
>
> Nginx shows the following for the 500 error:
> [24/Apr/2015:09:15:56 +0200] "GET
> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 500 8831
> "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101
> Firefox/37.0"
>
> Can somebody advise me how to make Nginx behave?
>
> 2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar <
> [hidden email]>:
>
>>
>> I once had quite bad problems when having an apache in between
>> who internally decoded an URI and then encoded it back, but only "barely"
>> ...
>> However it seems this is ruled out here, if the problem happens with
>> tomcat, too.
>>
>>
>> How do you reproduce the issue with tomcat directly?
>>
>> a) if you directly *call* a page with an '"' in the URL
>>   then I'd say, the error is ok, the URL should have been encoded.
>>
>> b) however if you first go e.g. to the wiki start page,
>>   and then navigate to the page with quotes in the names, then
>>   XWiki should encode the url properly, and this error should not happen
>> ...
>>
>>
>> Can you see what tomcat writes in its access log for that page?
>>
>> Can you check in the generated HTML of a link that the '"'
>> is actually encoded as '%22" in the href attribute? (Actually
>> this must be the case as otherwise the quote would just terminate the href,
>> at least in these cases where double quotes as attribute delimiters rare
>> used.  )
>>
>>
>>
>> On 04/23/2015 04:30 PM, D R wrote:
>>> Thanks for the feedback.
>>>
>>> Yes, there is an Nginx as frontend running, but I also can reproduce the
>>> issue by calling the direct tomcat address.
>>>
>>> I don't know what could be wrong because I'm no tomcat expert at all.
>>>
>>> 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
>>> [hidden email]>:
>>>
>>>>
>>>> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
>>>> and cannot reproduce this either, at least not directly.
>>>>
>>>> After I create a page with name `Page with "quotes"`,
>>>> I cannot trigger the problem in the browser, but of course I can do so
>>>> manually
>>>> by feeding in a wrong URL:
>>>>
>>>> i.e.:
>>>>
>>>>    curl '
>>>> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
>>>>
>>>> just downloads the page (quotes properly encoded)
>>>>
>>>>    curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+
>> "quotes"'
>>>>
>>>> produces error page (actually from XWiki, I wonder why tomcat does not
>>>> already
>>>> sends a 400 ...)
>>>>
>>>> However when I look into the links that XWiki creates, I see they are
>> all
>>>> properly URL-encoded (with %22 for the '"'), so no issue here
>>>>
>>>> Is there anything else in the setup? For example an apache as frontand
>> or
>>>> the like?
>>>>
>>>> Clemens
>>>>
>>>>
>>>>
>>>> On 04/22/2015 12:43 PM, D R wrote:
>>>>> Hi,
>>>>>
>>>>> it has nothing to do with the space name. I can reproduce the issue
>>>> accross
>>>>> several (sub-)wikis and different spaces. The only thing relevant to
>>>>> reproduce the error is the quotation mark (") in the page name.
>>>>>
>>>>> As soon as I want to open such a document or create one I get the 500
>>>> error
>>>>> from tomcat mentioned below.
>>>>>
>>>>> Yes, the Windows server accepts the quotation marks, I can click the
>>>>> document links and they are shown correctly, the Ubuntu Server throughs
>>>> the
>>>>> 500 error at me.
>>>>>
>>>>> Regs,
>>>>> Dennis
>>>>>
>>>>> 2015-04-22 11:44 GMT+02:00 <
>> [hidden email]
>>>>> :
>>>>>
>>>>>> Hi D R!
>>>>>>
>>>>>> Does this URL included in the error message some special meaning for
>>>> you?
>>>>>> Could it be the only space with some reserved characters in the space
>>>> name?
>>>>>>
>>>>>>
>>>>>>
>>>>
>> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
>>>>>>
>>>>>> Perhaps they were allowed in your Windows Server and Ubuntu rejects
>>>> them?
>>>>>>
>>>>>> Cheers!
>>>>>>
>>>>>> --
>>>>>> Ricardo Rodríguez
>>>>>> Research Management and Promotion Technician
>>>>>> Technical Secretariat
>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>>>> http://www.idisantiago.es
>>>>>>
>>>>>> ________________________________________
>>>>>> De: users [[hidden email]] en nombre de D R [
>> [hidden email]
>>>> ]
>>>>>> Enviado: miércoles, 22 de abril de 2015 11:33
>>>>>> Para: XWiki Users
>>>>>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>>>
>>>>>> Does anybody have additional hints how I can solve this blocking
>> issue?
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
>>>>>>
>>>>>>> Thanks, Ricardo.
>>>>>>>
>>>>>>> I checked the encoding documentation and performed some steps but the
>>>>>>> issue still occurs.
>>>>>>>
>>>>>>> What I did:
>>>>>>>
>>>>>>> - XWiki encoding
>>>>>>>     - web.xml: already UTF-8
>>>>>>>     - xwiki.cfg: already UTF-8
>>>>>>>
>>>>>>> - HTML encoding: added to each wiki (Content-Type tag was completely
>>>>>>> missing)
>>>>>>>
>>>>>>> - Hibernate configuration: UTF-8 properties added
>>>>>>>
>>>>>>> - MySQL config: added UTF-8 settings and converted each database from
>>>>>>> utf8_general_ci to utf8_bin
>>>>>>>
>>>>>>> - Tomcat: already UTF-8
>>>>>>>
>>>>>>> - System config: already en_US.UTF-8
>>>>>>>
>>>>>>> - OpenOffice import: no changes needed because no issues so far
>>>>>>>
>>>>>>> I then rebooted the Ubuntu Server machine.
>>>>>>>
>>>>>>> When opening pages with " in the title/link I still get the same
>> error
>>>>>> 500
>>>>>>> from tomcat.
>>>>>>>
>>>>>>> Any further hints/suggestions?
>>>>>>>
>>>>>>> Regs,
>>>>>>> Dennis
>>>>>>>
>>>>>>> 2015-04-20 20:54 GMT+02:00 <
>>>> [hidden email]
>>>>>>> :
>>>>>>>
>>>>>>>> Hi D R!
>>>>>>>>
>>>>>>>> Have you checked if the encoding in the whole enviroment is
>> correctly
>>>>>> set
>>>>>>>> up? I've seen something similar here in a CentOS installation this
>>>>>> morning
>>>>>>>> while fine tunning encoding as per...
>>>>>>>>
>>>>>>>> http://goo.gl/RC2k5k
>>>>>>>>
>>>>>>>> I'm not able to remember what error resulted to at least a similar
>>>>>>>> message, but it was an erroneous configuration in some step. I swear
>>>>>> that
>>>>>>>> it was while teaking with hibernate.cfg.xml thought...
>>>>>>>>
>>>>>>>> HTH!
>>>>>>>>
>>>>>>>> Ricardo
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ricardo Rodríguez
>>>>>>>> Research Management and Promotion Technician
>>>>>>>> Technical Secretariat
>>>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>>>>>> http://www.idisantiago.es
>>>>>>>>
>>>>>>>> ________________________________________
>>>>>>>> De: users [[hidden email]] en nombre de D R [
>>>> [hidden email]
>>>>>> ]
>>>>>>>> Enviado: lunes, 20 de abril de 2015 16:09
>>>>>>>> Para: XWiki Users
>>>>>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>>>>>
>>>>>>>> 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+%22iPad+Apps%22
>>>>>>>>
>>>>>>>> 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.
>>>>>>>> _______________________________________________
>>>>>>>> users mailing list
>>>>>>>> [hidden email]
>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>>>
>>>>>>>> ________________________________
>>>>>>>>
>>>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
>>>> documentos
>>>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>>>>>> mensaxe,
>>>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>>>>>> autorizada.
>>>>>>>>
>>>>>>>> Nota: La información contenida en este mensaje y sus posibles
>>>> documentos
>>>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>>>>>> mensaje, por favor elimínelo. La distribución o copia de este
>> mensaje
>>>> no
>>>>>>>> está autorizada.
>>>>>>>>
>>>>>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>>>>>> _______________________________________________
>>>>>>>> users mailing list
>>>>>>>> [hidden email]
>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>
>>>>>> ________________________________
>>>>>>
>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
>> documentos
>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>>>> mensaxe,
>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>>>> autorizada.
>>>>>>
>>>>>> Nota: La información contenida en este mensaje y sus posibles
>> documentos
>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje
>> no
>>>>>> está autorizada.
>>>>>>
>>>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>>>> _______________________________________________
>>>>>> users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>
>>>>> _______________________________________________
>>>>> users mailing list
>>>>> [hidden email]
>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>
>>>>
>>>>

_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

Clemens Klein-Robbenhaar

small update: actually StackExchange has the solution:

 http://serverfault.com/questions/459369/disabling-url-decoding-in-nginx-proxy


On 04/24/2015 10:16 AM, Clemens Klein-Robbenhaar wrote:

>
> We are getting closer to a solution ;)
>
> I am pretty sure that if you get the error via nginx, and nginx shows in the
> access log something like :
>
>  "GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1"
>
> then in turn the tomcat acess will show for the same request:
>
>   "GET /xwiki/wiki/hardware/view/Test/Test+with+"quotation" HTTP/1.1"
>
> and that ... will not end well.
>
> I had a similar problem with apache which decodes the url partially
> before sending it to the backend server. The fix was to send the
> original url to the backend, as explained in http://dracos.co.uk/code/apache-rewrite-problem/
>
> Unfortunately I have no idea if/how ngninx handles this problem.
>
> Can you post the relevant part of your nginx configuration anyway,
> so anyone with better knowledge of nginx might figure out what to do?
>
>
> Clemens
>
>
>
>> I have to take back that it can be reproduced with tomcat directly because
>> meanwhile I can't anymore, now it works, strange. But calling the page via
>> nginx still produces the error.
>>
>> Tomcat log shows the following entry for the URL when opened from the
>> tomcat URL:
>> [24/Apr/2015:09:18:45 +0200] "GET
>> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 200 41185
>>
>> Nginx shows the following for the 500 error:
>> [24/Apr/2015:09:15:56 +0200] "GET
>> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 500 8831
>> "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101
>> Firefox/37.0"
>>
>> Can somebody advise me how to make Nginx behave?
>>
>> 2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar <
>> [hidden email]>:
>>
>>>
>>> I once had quite bad problems when having an apache in between
>>> who internally decoded an URI and then encoded it back, but only "barely"
>>> ...
>>> However it seems this is ruled out here, if the problem happens with
>>> tomcat, too.
>>>
>>>
>>> How do you reproduce the issue with tomcat directly?
>>>
>>> a) if you directly *call* a page with an '"' in the URL
>>>   then I'd say, the error is ok, the URL should have been encoded.
>>>
>>> b) however if you first go e.g. to the wiki start page,
>>>   and then navigate to the page with quotes in the names, then
>>>   XWiki should encode the url properly, and this error should not happen
>>> ...
>>>
>>>
>>> Can you see what tomcat writes in its access log for that page?
>>>
>>> Can you check in the generated HTML of a link that the '"'
>>> is actually encoded as '%22" in the href attribute? (Actually
>>> this must be the case as otherwise the quote would just terminate the href,
>>> at least in these cases where double quotes as attribute delimiters rare
>>> used.  )
>>>
>>>
>>>
>>> On 04/23/2015 04:30 PM, D R wrote:
>>>> Thanks for the feedback.
>>>>
>>>> Yes, there is an Nginx as frontend running, but I also can reproduce the
>>>> issue by calling the direct tomcat address.
>>>>
>>>> I don't know what could be wrong because I'm no tomcat expert at all.
>>>>
>>>> 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
>>>> [hidden email]>:
>>>>
>>>>>
>>>>> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
>>>>> and cannot reproduce this either, at least not directly.
>>>>>
>>>>> After I create a page with name `Page with "quotes"`,
>>>>> I cannot trigger the problem in the browser, but of course I can do so
>>>>> manually
>>>>> by feeding in a wrong URL:
>>>>>
>>>>> i.e.:
>>>>>
>>>>>    curl '
>>>>> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
>>>>>
>>>>> just downloads the page (quotes properly encoded)
>>>>>
>>>>>    curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+
>>> "quotes"'
>>>>>
>>>>> produces error page (actually from XWiki, I wonder why tomcat does not
>>>>> already
>>>>> sends a 400 ...)
>>>>>
>>>>> However when I look into the links that XWiki creates, I see they are
>>> all
>>>>> properly URL-encoded (with %22 for the '"'), so no issue here
>>>>>
>>>>> Is there anything else in the setup? For example an apache as frontand
>>> or
>>>>> the like?
>>>>>
>>>>> Clemens
>>>>>
>>>>>
>>>>>
>>>>> On 04/22/2015 12:43 PM, D R wrote:
>>>>>> Hi,
>>>>>>
>>>>>> it has nothing to do with the space name. I can reproduce the issue
>>>>> accross
>>>>>> several (sub-)wikis and different spaces. The only thing relevant to
>>>>>> reproduce the error is the quotation mark (") in the page name.
>>>>>>
>>>>>> As soon as I want to open such a document or create one I get the 500
>>>>> error
>>>>>> from tomcat mentioned below.
>>>>>>
>>>>>> Yes, the Windows server accepts the quotation marks, I can click the
>>>>>> document links and they are shown correctly, the Ubuntu Server throughs
>>>>> the
>>>>>> 500 error at me.
>>>>>>
>>>>>> Regs,
>>>>>> Dennis
>>>>>>
>>>>>> 2015-04-22 11:44 GMT+02:00 <
>>> [hidden email]
>>>>>> :
>>>>>>
>>>>>>> Hi D R!
>>>>>>>
>>>>>>> Does this URL included in the error message some special meaning for
>>>>> you?
>>>>>>> Could it be the only space with some reserved characters in the space
>>>>> name?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
>>>>>>>
>>>>>>> Perhaps they were allowed in your Windows Server and Ubuntu rejects
>>>>> them?
>>>>>>>
>>>>>>> Cheers!
>>>>>>>
>>>>>>> --
>>>>>>> Ricardo Rodríguez
>>>>>>> Research Management and Promotion Technician
>>>>>>> Technical Secretariat
>>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>>>>> http://www.idisantiago.es
>>>>>>>
>>>>>>> ________________________________________
>>>>>>> De: users [[hidden email]] en nombre de D R [
>>> [hidden email]
>>>>> ]
>>>>>>> Enviado: miércoles, 22 de abril de 2015 11:33
>>>>>>> Para: XWiki Users
>>>>>>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>>>>
>>>>>>> Does anybody have additional hints how I can solve this blocking
>>> issue?
>>>>>>>
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
>>>>>>>
>>>>>>>> Thanks, Ricardo.
>>>>>>>>
>>>>>>>> I checked the encoding documentation and performed some steps but the
>>>>>>>> issue still occurs.
>>>>>>>>
>>>>>>>> What I did:
>>>>>>>>
>>>>>>>> - XWiki encoding
>>>>>>>>     - web.xml: already UTF-8
>>>>>>>>     - xwiki.cfg: already UTF-8
>>>>>>>>
>>>>>>>> - HTML encoding: added to each wiki (Content-Type tag was completely
>>>>>>>> missing)
>>>>>>>>
>>>>>>>> - Hibernate configuration: UTF-8 properties added
>>>>>>>>
>>>>>>>> - MySQL config: added UTF-8 settings and converted each database from
>>>>>>>> utf8_general_ci to utf8_bin
>>>>>>>>
>>>>>>>> - Tomcat: already UTF-8
>>>>>>>>
>>>>>>>> - System config: already en_US.UTF-8
>>>>>>>>
>>>>>>>> - OpenOffice import: no changes needed because no issues so far
>>>>>>>>
>>>>>>>> I then rebooted the Ubuntu Server machine.
>>>>>>>>
>>>>>>>> When opening pages with " in the title/link I still get the same
>>> error
>>>>>>> 500
>>>>>>>> from tomcat.
>>>>>>>>
>>>>>>>> Any further hints/suggestions?
>>>>>>>>
>>>>>>>> Regs,
>>>>>>>> Dennis
>>>>>>>>
>>>>>>>> 2015-04-20 20:54 GMT+02:00 <
>>>>> [hidden email]
>>>>>>>> :
>>>>>>>>
>>>>>>>>> Hi D R!
>>>>>>>>>
>>>>>>>>> Have you checked if the encoding in the whole enviroment is
>>> correctly
>>>>>>> set
>>>>>>>>> up? I've seen something similar here in a CentOS installation this
>>>>>>> morning
>>>>>>>>> while fine tunning encoding as per...
>>>>>>>>>
>>>>>>>>> http://goo.gl/RC2k5k
>>>>>>>>>
>>>>>>>>> I'm not able to remember what error resulted to at least a similar
>>>>>>>>> message, but it was an erroneous configuration in some step. I swear
>>>>>>> that
>>>>>>>>> it was while teaking with hibernate.cfg.xml thought...
>>>>>>>>>
>>>>>>>>> HTH!
>>>>>>>>>
>>>>>>>>> Ricardo
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Ricardo Rodríguez
>>>>>>>>> Research Management and Promotion Technician
>>>>>>>>> Technical Secretariat
>>>>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
>>>>>>>>> http://www.idisantiago.es
>>>>>>>>>
>>>>>>>>> ________________________________________
>>>>>>>>> De: users [[hidden email]] en nombre de D R [
>>>>> [hidden email]
>>>>>>> ]
>>>>>>>>> Enviado: lunes, 20 de abril de 2015 16:09
>>>>>>>>> Para: XWiki Users
>>>>>>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
>>>>>>>>>
>>>>>>>>> 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+%22iPad+Apps%22
>>>>>>>>>
>>>>>>>>> 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.
>>>>>>>>> _______________________________________________
>>>>>>>>> users mailing list
>>>>>>>>> [hidden email]
>>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>>>>
>>>>>>>>> ________________________________
>>>>>>>>>
>>>>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
>>>>> documentos
>>>>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>>>>>>> mensaxe,
>>>>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>>>>>>> autorizada.
>>>>>>>>>
>>>>>>>>> Nota: La información contenida en este mensaje y sus posibles
>>>>> documentos
>>>>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>>>>>>> mensaje, por favor elimínelo. La distribución o copia de este
>>> mensaje
>>>>> no
>>>>>>>>> está autorizada.
>>>>>>>>>
>>>>>>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>>>>>>> _______________________________________________
>>>>>>>>> users mailing list
>>>>>>>>> [hidden email]
>>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> users mailing list
>>>>>>> [hidden email]
>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>>
>>>>>>> ________________________________
>>>>>>>
>>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
>>> documentos
>>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
>>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
>>>>> mensaxe,
>>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
>>>>>>> autorizada.
>>>>>>>
>>>>>>> Nota: La información contenida en este mensaje y sus posibles
>>> documentos
>>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
>>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de este
>>>>>>> mensaje, por favor elimínelo. La distribución o copia de este mensaje
>>> no
>>>>>>> está autorizada.
>>>>>>>
>>>>>>> See more languages: http://www.sergas.es/aviso_confidencialidad.htm
>>>>>>> _______________________________________________
>>>>>>> users mailing list
>>>>>>> [hidden email]
>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>>
>>>>>> _______________________________________________
>>>>>> users mailing list
>>>>>> [hidden email]
>>>>>> http://lists.xwiki.org/mailman/listinfo/users
>>>>>>
>>>>>
>>>>>
>
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>



mit freundlichen Grüßen
Clemens Klein-Robbenhaar

--
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
[hidden email]

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
D R
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

D R
That did the trick, thanks.

Originally I took the config from
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/NginX and edited it to
my needs.

No I changed nginx config to:

location / {
proxy_passhttp://localhost:8080;
proxy_set_header  X-Real-IP $remote_addr;
proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header  Host $http_host;
proxy_set_header  X-Forwarded-Proto $scheme;
expires 0m;
}

And it works.

Many thanks!

2015-04-24 10:29 GMT+02:00 Clemens Klein-Robbenhaar <
[hidden email]>:

>
> small update: actually StackExchange has the solution:
>
>
> http://serverfault.com/questions/459369/disabling-url-decoding-in-nginx-proxy
>
>
> On 04/24/2015 10:16 AM, Clemens Klein-Robbenhaar wrote:
> >
> > We are getting closer to a solution ;)
> >
> > I am pretty sure that if you get the error via nginx, and nginx shows in
> the
> > access log something like :
> >
> >  "GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1"
> >
> > then in turn the tomcat acess will show for the same request:
> >
> >   "GET /xwiki/wiki/hardware/view/Test/Test+with+"quotation" HTTP/1.1"
> >
> > and that ... will not end well.
> >
> > I had a similar problem with apache which decodes the url partially
> > before sending it to the backend server. The fix was to send the
> > original url to the backend, as explained in
> http://dracos.co.uk/code/apache-rewrite-problem/
> >
> > Unfortunately I have no idea if/how ngninx handles this problem.
> >
> > Can you post the relevant part of your nginx configuration anyway,
> > so anyone with better knowledge of nginx might figure out what to do?
> >
> >
> > Clemens
> >
> >
> >
> >> I have to take back that it can be reproduced with tomcat directly
> because
> >> meanwhile I can't anymore, now it works, strange. But calling the page
> via
> >> nginx still produces the error.
> >>
> >> Tomcat log shows the following entry for the URL when opened from the
> >> tomcat URL:
> >> [24/Apr/2015:09:18:45 +0200] "GET
> >> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 200
> 41185
> >>
> >> Nginx shows the following for the 500 error:
> >> [24/Apr/2015:09:15:56 +0200] "GET
> >> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 500
> 8831
> >> "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101
> >> Firefox/37.0"
> >>
> >> Can somebody advise me how to make Nginx behave?
> >>
> >> 2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar <
> >> [hidden email]>:
> >>
> >>>
> >>> I once had quite bad problems when having an apache in between
> >>> who internally decoded an URI and then encoded it back, but only
> "barely"
> >>> ...
> >>> However it seems this is ruled out here, if the problem happens with
> >>> tomcat, too.
> >>>
> >>>
> >>> How do you reproduce the issue with tomcat directly?
> >>>
> >>> a) if you directly *call* a page with an '"' in the URL
> >>>   then I'd say, the error is ok, the URL should have been encoded.
> >>>
> >>> b) however if you first go e.g. to the wiki start page,
> >>>   and then navigate to the page with quotes in the names, then
> >>>   XWiki should encode the url properly, and this error should not
> happen
> >>> ...
> >>>
> >>>
> >>> Can you see what tomcat writes in its access log for that page?
> >>>
> >>> Can you check in the generated HTML of a link that the '"'
> >>> is actually encoded as '%22" in the href attribute? (Actually
> >>> this must be the case as otherwise the quote would just terminate the
> href,
> >>> at least in these cases where double quotes as attribute delimiters
> rare
> >>> used.  )
> >>>
> >>>
> >>>
> >>> On 04/23/2015 04:30 PM, D R wrote:
> >>>> Thanks for the feedback.
> >>>>
> >>>> Yes, there is an Nginx as frontend running, but I also can reproduce
> the
> >>>> issue by calling the direct tomcat address.
> >>>>
> >>>> I don't know what could be wrong because I'm no tomcat expert at all.
> >>>>
> >>>> 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
> >>>> [hidden email]>:
> >>>>
> >>>>>
> >>>>> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
> >>>>> and cannot reproduce this either, at least not directly.
> >>>>>
> >>>>> After I create a page with name `Page with "quotes"`,
> >>>>> I cannot trigger the problem in the browser, but of course I can do
> so
> >>>>> manually
> >>>>> by feeding in a wrong URL:
> >>>>>
> >>>>> i.e.:
> >>>>>
> >>>>>    curl '
> >>>>> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
> >>>>>
> >>>>> just downloads the page (quotes properly encoded)
> >>>>>
> >>>>>    curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+
> >>> "quotes"'
> >>>>>
> >>>>> produces error page (actually from XWiki, I wonder why tomcat does
> not
> >>>>> already
> >>>>> sends a 400 ...)
> >>>>>
> >>>>> However when I look into the links that XWiki creates, I see they are
> >>> all
> >>>>> properly URL-encoded (with %22 for the '"'), so no issue here
> >>>>>
> >>>>> Is there anything else in the setup? For example an apache as
> frontand
> >>> or
> >>>>> the like?
> >>>>>
> >>>>> Clemens
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 04/22/2015 12:43 PM, D R wrote:
> >>>>>> Hi,
> >>>>>>
> >>>>>> it has nothing to do with the space name. I can reproduce the issue
> >>>>> accross
> >>>>>> several (sub-)wikis and different spaces. The only thing relevant to
> >>>>>> reproduce the error is the quotation mark (") in the page name.
> >>>>>>
> >>>>>> As soon as I want to open such a document or create one I get the
> 500
> >>>>> error
> >>>>>> from tomcat mentioned below.
> >>>>>>
> >>>>>> Yes, the Windows server accepts the quotation marks, I can click the
> >>>>>> document links and they are shown correctly, the Ubuntu Server
> throughs
> >>>>> the
> >>>>>> 500 error at me.
> >>>>>>
> >>>>>> Regs,
> >>>>>> Dennis
> >>>>>>
> >>>>>> 2015-04-22 11:44 GMT+02:00 <
> >>> [hidden email]
> >>>>>> :
> >>>>>>
> >>>>>>> Hi D R!
> >>>>>>>
> >>>>>>> Does this URL included in the error message some special meaning
> for
> >>>>> you?
> >>>>>>> Could it be the only space with some reserved characters in the
> space
> >>>>> name?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>
> http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
> >>>>>>>
> >>>>>>> Perhaps they were allowed in your Windows Server and Ubuntu rejects
> >>>>> them?
> >>>>>>>
> >>>>>>> Cheers!
> >>>>>>>
> >>>>>>> --
> >>>>>>> Ricardo Rodríguez
> >>>>>>> Research Management and Promotion Technician
> >>>>>>> Technical Secretariat
> >>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
> >>>>>>> http://www.idisantiago.es
> >>>>>>>
> >>>>>>> ________________________________________
> >>>>>>> De: users [[hidden email]] en nombre de D R [
> >>> [hidden email]
> >>>>> ]
> >>>>>>> Enviado: miércoles, 22 de abril de 2015 11:33
> >>>>>>> Para: XWiki Users
> >>>>>>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in
> title
> >>>>>>>
> >>>>>>> Does anybody have additional hints how I can solve this blocking
> >>> issue?
> >>>>>>>
> >>>>>>> Thanks in advance.
> >>>>>>>
> >>>>>>> 2015-04-21 9:56 GMT+02:00 D R <[hidden email]>:
> >>>>>>>
> >>>>>>>> Thanks, Ricardo.
> >>>>>>>>
> >>>>>>>> I checked the encoding documentation and performed some steps but
> the
> >>>>>>>> issue still occurs.
> >>>>>>>>
> >>>>>>>> What I did:
> >>>>>>>>
> >>>>>>>> - XWiki encoding
> >>>>>>>>     - web.xml: already UTF-8
> >>>>>>>>     - xwiki.cfg: already UTF-8
> >>>>>>>>
> >>>>>>>> - HTML encoding: added to each wiki (Content-Type tag was
> completely
> >>>>>>>> missing)
> >>>>>>>>
> >>>>>>>> - Hibernate configuration: UTF-8 properties added
> >>>>>>>>
> >>>>>>>> - MySQL config: added UTF-8 settings and converted each database
> from
> >>>>>>>> utf8_general_ci to utf8_bin
> >>>>>>>>
> >>>>>>>> - Tomcat: already UTF-8
> >>>>>>>>
> >>>>>>>> - System config: already en_US.UTF-8
> >>>>>>>>
> >>>>>>>> - OpenOffice import: no changes needed because no issues so far
> >>>>>>>>
> >>>>>>>> I then rebooted the Ubuntu Server machine.
> >>>>>>>>
> >>>>>>>> When opening pages with " in the title/link I still get the same
> >>> error
> >>>>>>> 500
> >>>>>>>> from tomcat.
> >>>>>>>>
> >>>>>>>> Any further hints/suggestions?
> >>>>>>>>
> >>>>>>>> Regs,
> >>>>>>>> Dennis
> >>>>>>>>
> >>>>>>>> 2015-04-20 20:54 GMT+02:00 <
> >>>>> [hidden email]
> >>>>>>>> :
> >>>>>>>>
> >>>>>>>>> Hi D R!
> >>>>>>>>>
> >>>>>>>>> Have you checked if the encoding in the whole enviroment is
> >>> correctly
> >>>>>>> set
> >>>>>>>>> up? I've seen something similar here in a CentOS installation
> this
> >>>>>>> morning
> >>>>>>>>> while fine tunning encoding as per...
> >>>>>>>>>
> >>>>>>>>> http://goo.gl/RC2k5k
> >>>>>>>>>
> >>>>>>>>> I'm not able to remember what error resulted to at least a
> similar
> >>>>>>>>> message, but it was an erroneous configuration in some step. I
> swear
> >>>>>>> that
> >>>>>>>>> it was while teaking with hibernate.cfg.xml thought...
> >>>>>>>>>
> >>>>>>>>> HTH!
> >>>>>>>>>
> >>>>>>>>> Ricardo
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Ricardo Rodríguez
> >>>>>>>>> Research Management and Promotion Technician
> >>>>>>>>> Technical Secretariat
> >>>>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
> >>>>>>>>> http://www.idisantiago.es
> >>>>>>>>>
> >>>>>>>>> ________________________________________
> >>>>>>>>> De: users [[hidden email]] en nombre de D R [
> >>>>> [hidden email]
> >>>>>>> ]
> >>>>>>>>> Enviado: lunes, 20 de abril de 2015 16:09
> >>>>>>>>> Para: XWiki Users
> >>>>>>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
> >>>>>>>>>
> >>>>>>>>> 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+%22iPad+Apps%22
> >>>>>>>>>
> >>>>>>>>> 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.
> >>>>>>>>> _______________________________________________
> >>>>>>>>> users mailing list
> >>>>>>>>> [hidden email]
> >>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>>>>
> >>>>>>>>> ________________________________
> >>>>>>>>>
> >>>>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
> >>>>> documentos
> >>>>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó
> seu
> >>>>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal
> desta
> >>>>>>> mensaxe,
> >>>>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non
> está
> >>>>>>>>> autorizada.
> >>>>>>>>>
> >>>>>>>>> Nota: La información contenida en este mensaje y sus posibles
> >>>>> documentos
> >>>>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a
> su
> >>>>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de
> este
> >>>>>>>>> mensaje, por favor elimínelo. La distribución o copia de este
> >>> mensaje
> >>>>> no
> >>>>>>>>> está autorizada.
> >>>>>>>>>
> >>>>>>>>> See more languages:
> http://www.sergas.es/aviso_confidencialidad.htm
> >>>>>>>>> _______________________________________________
> >>>>>>>>> users mailing list
> >>>>>>>>> [hidden email]
> >>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> users mailing list
> >>>>>>> [hidden email]
> >>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>>
> >>>>>>> ________________________________
> >>>>>>>
> >>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
> >>> documentos
> >>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> >>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> >>>>> mensaxe,
> >>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
> >>>>>>> autorizada.
> >>>>>>>
> >>>>>>> Nota: La información contenida en este mensaje y sus posibles
> >>> documentos
> >>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
> >>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de
> este
> >>>>>>> mensaje, por favor elimínelo. La distribución o copia de este
> mensaje
> >>> no
> >>>>>>> está autorizada.
> >>>>>>>
> >>>>>>> See more languages:
> http://www.sergas.es/aviso_confidencialidad.htm
> >>>>>>> _______________________________________________
> >>>>>>> users mailing list
> >>>>>>> [hidden email]
> >>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>>
> >>>>>> _______________________________________________
> >>>>>> users mailing list
> >>>>>> [hidden email]
> >>>>>> http://lists.xwiki.org/mailman/listinfo/users
> >>>>>>
> >>>>>
> >>>>>
> >
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> mit freundlichen Grüßen
> Clemens Klein-Robbenhaar
>
> --
> Clemens Klein-Robbenhaar
> Software Development
> EsPresto AG
> Breite Str. 30-31
> 10178 Berlin/Germany
> Tel: +49.(0)30.90 226.763
> Fax: +49.(0)30.90 226.760
> [hidden email]
>
> HRB 77554 B - Berlin-Charlottenburg
> Vorstand: Maya Biersack, Peter Biersack
> Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> Zertifiziert nach ISO 9001:2008
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Tomcat error 500 for pages with " in title

vmassol
Administrator
Hi guys,


On 24 Apr 2015 at 13:01:25, D R ([hidden email](mailto:[hidden email])) wrote:

> That did the trick, thanks.
>  
> Originally I took the config from
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/NginX and edited it to
> my needs.

If http://platform.xwiki.org/xwiki/bin/view/AdminGuide/NginX is not correct or needs to be updated, please make the required modifications on that page so that it helps the next person :)

Thanks a lot
-Vincent

> No I changed nginx config to:
>  
> location / {
> proxy_passhttp://localhost:8080;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header Host $http_host;
> proxy_set_header X-Forwarded-Proto $scheme;
> expires 0m;
> }
>  
> And it works.
>  
> Many thanks!
>  
> 2015-04-24 10:29 GMT+02:00 Clemens Klein-Robbenhaar <
> [hidden email]>:
>  
> >
> > small update: actually StackExchange has the solution:
> >
> >
> > http://serverfault.com/questions/459369/disabling-url-decoding-in-nginx-proxy
> >
> >
> > On 04/24/2015 10:16 AM, Clemens Klein-Robbenhaar wrote:
> > >
> > > We are getting closer to a solution ;)
> > >
> > > I am pretty sure that if you get the error via nginx, and nginx shows in
> > the
> > > access log something like :
> > >
> > > "GET /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1"
> > >
> > > then in turn the tomcat acess will show for the same request:
> > >
> > > "GET /xwiki/wiki/hardware/view/Test/Test+with+"quotation" HTTP/1.1"
> > >
> > > and that ... will not end well.
> > >
> > > I had a similar problem with apache which decodes the url partially
> > > before sending it to the backend server. The fix was to send the
> > > original url to the backend, as explained in
> > http://dracos.co.uk/code/apache-rewrite-problem/
> > >
> > > Unfortunately I have no idea if/how ngninx handles this problem.
> > >
> > > Can you post the relevant part of your nginx configuration anyway,
> > > so anyone with better knowledge of nginx might figure out what to do?
> > >
> > >
> > > Clemens
> > >
> > >
> > >
> > >> I have to take back that it can be reproduced with tomcat directly
> > because
> > >> meanwhile I can't anymore, now it works, strange. But calling the page
> > via
> > >> nginx still produces the error.
> > >>
> > >> Tomcat log shows the following entry for the URL when opened from the
> > >> tomcat URL:
> > >> [24/Apr/2015:09:18:45 +0200] "GET
> > >> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 200
> > 41185
> > >>
> > >> Nginx shows the following for the 500 error:
> > >> [24/Apr/2015:09:15:56 +0200] "GET
> > >> /xwiki/wiki/hardware/view/Test/Test+with+%22quotation%22 HTTP/1.1" 500
> > 8831
> > >> "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101
> > >> Firefox/37.0"
> > >>
> > >> Can somebody advise me how to make Nginx behave?
> > >>
> > >> 2015-04-23 16:42 GMT+02:00 Clemens Klein-Robbenhaar <
> > >> [hidden email]>:
> > >>
> > >>>
> > >>> I once had quite bad problems when having an apache in between
> > >>> who internally decoded an URI and then encoded it back, but only
> > "barely"
> > >>> ...
> > >>> However it seems this is ruled out here, if the problem happens with
> > >>> tomcat, too.
> > >>>
> > >>>
> > >>> How do you reproduce the issue with tomcat directly?
> > >>>
> > >>> a) if you directly *call* a page with an '"' in the URL
> > >>> then I'd say, the error is ok, the URL should have been encoded.
> > >>>
> > >>> b) however if you first go e.g. to the wiki start page,
> > >>> and then navigate to the page with quotes in the names, then
> > >>> XWiki should encode the url properly, and this error should not
> > happen
> > >>> ...
> > >>>
> > >>>
> > >>> Can you see what tomcat writes in its access log for that page?
> > >>>
> > >>> Can you check in the generated HTML of a link that the '"'
> > >>> is actually encoded as '%22" in the href attribute? (Actually
> > >>> this must be the case as otherwise the quote would just terminate the
> > href,
> > >>> at least in these cases where double quotes as attribute delimiters
> > rare
> > >>> used. )
> > >>>
> > >>>
> > >>>
> > >>> On 04/23/2015 04:30 PM, D R wrote:
> > >>>> Thanks for the feedback.
> > >>>>
> > >>>> Yes, there is an Nginx as frontend running, but I also can reproduce
> > the
> > >>>> issue by calling the direct tomcat address.
> > >>>>
> > >>>> I don't know what could be wrong because I'm no tomcat expert at all.
> > >>>>
> > >>>> 2015-04-23 13:10 GMT+02:00 Clemens Klein-Robbenhaar <
> > >>>> [hidden email]>:
> > >>>>
> > >>>>>
> > >>>>> I installed tomcat8 as apache-tomcat-8.0.21, and java as jdk1.8.0_45
> > >>>>> and cannot reproduce this either, at least not directly.
> > >>>>>
> > >>>>> After I create a page with name `Page with "quotes"`,
> > >>>>> I cannot trigger the problem in the browser, but of course I can do
> > so
> > >>>>> manually
> > >>>>> by feeding in a wrong URL:
> > >>>>>
> > >>>>> i.e.:
> > >>>>>
> > >>>>> curl '
> > >>>>> http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+%22quotes%22'
> > >>>>>
> > >>>>> just downloads the page (quotes properly encoded)
> > >>>>>
> > >>>>> curl 'http://localhost:8080/xwiki/bin/view/Sandbox/Page+with+
> > >>> "quotes"'
> > >>>>>
> > >>>>> produces error page (actually from XWiki, I wonder why tomcat does
> > not
> > >>>>> already
> > >>>>> sends a 400 ...)
> > >>>>>
> > >>>>> However when I look into the links that XWiki creates, I see they are
> > >>> all
> > >>>>> properly URL-encoded (with %22 for the '"'), so no issue here
> > >>>>>
> > >>>>> Is there anything else in the setup? For example an apache as
> > frontand
> > >>> or
> > >>>>> the like?
> > >>>>>
> > >>>>> Clemens
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> On 04/22/2015 12:43 PM, D R wrote:
> > >>>>>> Hi,
> > >>>>>>
> > >>>>>> it has nothing to do with the space name. I can reproduce the issue
> > >>>>> accross
> > >>>>>> several (sub-)wikis and different spaces. The only thing relevant to
> > >>>>>> reproduce the error is the quotation mark (") in the page name.
> > >>>>>>
> > >>>>>> As soon as I want to open such a document or create one I get the
> > 500
> > >>>>> error
> > >>>>>> from tomcat mentioned below.
> > >>>>>>
> > >>>>>> Yes, the Windows server accepts the quotation marks, I can click the
> > >>>>>> document links and they are shown correctly, the Ubuntu Server
> > throughs
> > >>>>> the
> > >>>>>> 500 error at me.
> > >>>>>>
> > >>>>>> Regs,
> > >>>>>> Dennis
> > >>>>>>
> > >>>>>> 2015-04-22 11:44 GMT+02:00 <
> > >>> [hidden email]
> > >>>>>> :
> > >>>>>>
> > >>>>>>> Hi D R!
> > >>>>>>>
> > >>>>>>> Does this URL included in the error message some special meaning
> > for
> > >>>>> you?
> > >>>>>>> Could it be the only space with some reserved characters in the
> > space
> > >>>>> name?
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>
> > >>>
> > http://10.80.75.216/xwiki/wiki/kunden/view/Some+&+Space/Kunden+Appstore+iPad+Apps
> > >>>>>>>
> > >>>>>>> Perhaps they were allowed in your Windows Server and Ubuntu rejects
> > >>>>> them?
> > >>>>>>>
> > >>>>>>> Cheers!
> > >>>>>>>
> > >>>>>>> --
> > >>>>>>> Ricardo Rodríguez
> > >>>>>>> Research Management and Promotion Technician
> > >>>>>>> Technical Secretariat
> > >>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
> > >>>>>>> http://www.idisantiago.es
> > >>>>>>>
> > >>>>>>> ________________________________________
> > >>>>>>> De: users [[hidden email]] en nombre de D R [
> > >>> [hidden email]
> > >>>>> ]
> > >>>>>>> Enviado: miércoles, 22 de abril de 2015 11:33
> > >>>>>>> Para: XWiki Users
> > >>>>>>> Asunto: Re: [xwiki-users] Tomcat error 500 for pages with " in
> > title
> > >>>>>>>
> > >>>>>>> Does anybody have additional hints how I can solve this blocking
> > >>> issue?
> > >>>>>>>
> > >>>>>>> Thanks in advance.
> > >>>>>>>
> > >>>>>>> 2015-04-21 9:56 GMT+02:00 D R :
> > >>>>>>>
> > >>>>>>>> Thanks, Ricardo.
> > >>>>>>>>
> > >>>>>>>> I checked the encoding documentation and performed some steps but
> > the
> > >>>>>>>> issue still occurs.
> > >>>>>>>>
> > >>>>>>>> What I did:
> > >>>>>>>>
> > >>>>>>>> - XWiki encoding
> > >>>>>>>> - web.xml: already UTF-8
> > >>>>>>>> - xwiki.cfg: already UTF-8
> > >>>>>>>>
> > >>>>>>>> - HTML encoding: added to each wiki (Content-Type tag was
> > completely
> > >>>>>>>> missing)
> > >>>>>>>>
> > >>>>>>>> - Hibernate configuration: UTF-8 properties added
> > >>>>>>>>
> > >>>>>>>> - MySQL config: added UTF-8 settings and converted each database
> > from
> > >>>>>>>> utf8_general_ci to utf8_bin
> > >>>>>>>>
> > >>>>>>>> - Tomcat: already UTF-8
> > >>>>>>>>
> > >>>>>>>> - System config: already en_US.UTF-8
> > >>>>>>>>
> > >>>>>>>> - OpenOffice import: no changes needed because no issues so far
> > >>>>>>>>
> > >>>>>>>> I then rebooted the Ubuntu Server machine.
> > >>>>>>>>
> > >>>>>>>> When opening pages with " in the title/link I still get the same
> > >>> error
> > >>>>>>> 500
> > >>>>>>>> from tomcat.
> > >>>>>>>>
> > >>>>>>>> Any further hints/suggestions?
> > >>>>>>>>
> > >>>>>>>> Regs,
> > >>>>>>>> Dennis
> > >>>>>>>>
> > >>>>>>>> 2015-04-20 20:54 GMT+02:00 <
> > >>>>> [hidden email]
> > >>>>>>>> :
> > >>>>>>>>
> > >>>>>>>>> Hi D R!
> > >>>>>>>>>
> > >>>>>>>>> Have you checked if the encoding in the whole enviroment is
> > >>> correctly
> > >>>>>>> set
> > >>>>>>>>> up? I've seen something similar here in a CentOS installation
> > this
> > >>>>>>> morning
> > >>>>>>>>> while fine tunning encoding as per...
> > >>>>>>>>>
> > >>>>>>>>> http://goo.gl/RC2k5k
> > >>>>>>>>>
> > >>>>>>>>> I'm not able to remember what error resulted to at least a
> > similar
> > >>>>>>>>> message, but it was an erroneous configuration in some step. I
> > swear
> > >>>>>>> that
> > >>>>>>>>> it was while teaking with hibernate.cfg.xml thought...
> > >>>>>>>>>
> > >>>>>>>>> HTH!
> > >>>>>>>>>
> > >>>>>>>>> Ricardo
> > >>>>>>>>>
> > >>>>>>>>> --
> > >>>>>>>>> Ricardo Rodríguez
> > >>>>>>>>> Research Management and Promotion Technician
> > >>>>>>>>> Technical Secretariat
> > >>>>>>>>> Health Research Institute of Santiago de Compostela (IDIS)
> > >>>>>>>>> http://www.idisantiago.es
> > >>>>>>>>>
> > >>>>>>>>> ________________________________________
> > >>>>>>>>> De: users [[hidden email]] en nombre de D R [
> > >>>>> [hidden email]
> > >>>>>>> ]
> > >>>>>>>>> Enviado: lunes, 20 de abril de 2015 16:09
> > >>>>>>>>> Para: XWiki Users
> > >>>>>>>>> Asunto: [xwiki-users] Tomcat error 500 for pages with " in title
> > >>>>>>>>>
> > >>>>>>>>> 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+%22iPad+Apps%22
> > >>>>>>>>>
> > >>>>>>>>> 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.(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.(URI.java:588)
> > >>>>>>>>> java.net.URL.toURI(URL.java:939)
> > >>>>>>>>> org.xwiki.url.ExtendedURL.(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.
> > >>>>>>>>> _______________________________________________
> > >>>>>>>>> users mailing list
> > >>>>>>>>> [hidden email]
> > >>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> > >>>>>>>>>
> > >>>>>>>>> ________________________________
> > >>>>>>>>>
> > >>>>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
> > >>>>> documentos
> > >>>>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó
> > seu
> > >>>>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal
> > desta
> > >>>>>>> mensaxe,
> > >>>>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non
> > está
> > >>>>>>>>> autorizada.
> > >>>>>>>>>
> > >>>>>>>>> Nota: La información contenida en este mensaje y sus posibles
> > >>>>> documentos
> > >>>>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a
> > su
> > >>>>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de
> > este
> > >>>>>>>>> mensaje, por favor elimínelo. La distribución o copia de este
> > >>> mensaje
> > >>>>> no
> > >>>>>>>>> está autorizada.
> > >>>>>>>>>
> > >>>>>>>>> See more languages:
> > http://www.sergas.es/aviso_confidencialidad.htm
> > >>>>>>>>> _______________________________________________
> > >>>>>>>>> users mailing list
> > >>>>>>>>> [hidden email]
> > >>>>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> > >>>>>>>>>
> > >>>>>>>>
> > >>>>>>>>
> > >>>>>>> _______________________________________________
> > >>>>>>> users mailing list
> > >>>>>>> [hidden email]
> > >>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> > >>>>>>>
> > >>>>>>> ________________________________
> > >>>>>>>
> > >>>>>>> Nota: A información contida nesta mensaxe e os seus posibles
> > >>> documentos
> > >>>>>>> adxuntos é privada e confidencial e está dirixida únicamente ó seu
> > >>>>>>> destinatario/a. Se vostede non é o/a destinatario/a orixinal desta
> > >>>>> mensaxe,
> > >>>>>>> por favor elimínea. A distribución ou copia desta mensaxe non está
> > >>>>>>> autorizada.
> > >>>>>>>
> > >>>>>>> Nota: La información contenida en este mensaje y sus posibles
> > >>> documentos
> > >>>>>>> adjuntos es privada y confidencial y está dirigida únicamente a su
> > >>>>>>> destinatario/a. Si usted no es el/la destinatario/a original de
> > este
> > >>>>>>> mensaje, por favor elimínelo. La distribución o copia de este
> > mensaje
> > >>> no
> > >>>>>>> está autorizada.
> > >>>>>>>
> > >>>>>>> See more languages:
> > http://www.sergas.es/aviso_confidencialidad.htm
> > >>>>>>> _______________________________________________
> > >>>>>>> users mailing list
> > >>>>>>> [hidden email]
> > >>>>>>> http://lists.xwiki.org/mailman/listinfo/users
> > >>>>>>>
> > >>>>>> _______________________________________________
> > >>>>>> users mailing list
> > >>>>>> [hidden email]
> > >>>>>> http://lists.xwiki.org/mailman/listinfo/users
> > >>>>>>
> > >>>>>
> > >>>>>
> > >
> > > _______________________________________________
> > > users mailing list
> > > [hidden email]
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> >
> >
> >
> > mit freundlichen Grüßen
> > Clemens Klein-Robbenhaar
> >
> > --
> > Clemens Klein-Robbenhaar
> > Software Development
> > EsPresto AG
> > Breite Str. 30-31
> > 10178 Berlin/Germany
> > Tel: +49.(0)30.90 226.763
> > Fax: +49.(0)30.90 226.760
> > [hidden email]
> >
> > HRB 77554 B - Berlin-Charlottenburg
> > Vorstand: Maya Biersack, Peter Biersack
> > Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
> > Zertifiziert nach ISO 9001:2008
> > _______________________________________________
> > users mailing list
> > [hidden email]
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> _______________________________________________
> users mailing list
> [hidden email]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/users