Special characters like à: how to resolve it?

Former SVN Browser
sara71
Posts: 1
Joined: Mon Jun 11, 2007 3:09 pm

Special characters like à: how to resolve it?

Postby sara71 » Mon Jun 11, 2007 3:21 pm

Hi,
I'm using Svnwebclient for an italian project and I have some problems with documents whose names contain special characters like "à" or "è" etc.
When I click on the link, it returns an error:

Message:
Exception in JSP: /include/info/fileContentInfo.jsp:25 22: <tr class="value" nowrap="true"> 23: <td class="value" style="padding-left:20px;" nowrap="true"> 24: <b>Revisione:</b>&nbsp; 25: <%=bean.getFileContent().getDecoratedRevision()%> 26: <% 27: if (bean.getFileContent().isHeadRevision()) { 28: %> Stacktrace:

org.apache.jasper.JasperException: Exception in JSP: /include/info/fileContentInfo.jsp:25

22: <tr class="value" nowrap="true">
23: <td class="value" style="padding-left:20px;" nowrap="true">
24: <b>Revisione:</b>&nbsp;
25: <%=bean.getFileContent().getDecoratedRevision()%>
26: <%
27: if (bean.getFileContent().isHeadRevision()) {
28: %>


Stacktrace:
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:467)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
at org.apache.jsp.include.infoPanel_jsp._jspService(infoPanel_jsp.java:66)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
at org.apache.jsp.fileContent_jsp._jspService(fileContent_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.polarion.svnwebclient.authorization.impl.BindSessionsFilter.doFilter(BindSessionsFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.polarion.svnwebclient.web.CharsetFilter.doFilter(CharsetFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)


I'm using InternetExplorer 6.0, ApacheTomcat 5.5.23 on Windows Server 2003, SubVersion 2005-01-21 on the same machine.
With the module dav and simple document browsing it works correctly..

There is something to configure or it's a bug?
Thanks a lot
Sara

developix
Posts: 10
Joined: Thu Jun 21, 2007 6:03 am

Re: Special characters like à: how to resolve it?

Postby developix » Wed Jan 28, 2009 12:24 pm

Polarion Version 2.5:
org.polarion.svnwebclient.data.javasvn.DataProvider needs a fix
In Line 397:
public DataRepositoryElement getInfo(String url, long revision) throws IncorrectParameterException, DataProviderException
returns no DataRepositoryElement.

Polarion Version 3.1:
No error is thown but client reports:
Requested resource was not found. SVN response: HTTP Path Not Found
Url: trunk/testäöoloasdfa.txt, revision: 3

schlocke
Posts: 2
Joined: Wed Oct 14, 2009 11:14 am

Re: Special characters like à: how to resolve it?

Postby schlocke » Wed Oct 14, 2009 11:44 am

Hi,
I have the same problem with german umlauts! We are using Novel Suse Linux Enterprise Server 10 with Apache 2.2.3 and Subversion 1.6.4, SVN Web client 3.1.0

Filename is shown correct, but when I click on it, it displays "invalid Resource".

For example when I click on a file-link like:
Umlaute-Test äöüßÄÖÜ.odt

This is the link:
h**p://tux:8090/svnwebclient/fileContent.jsp?url=Allgemein%2FUmlaute-Test%20%C3%A4%C3%B6%C3%BC%C3%9F%C3%84%C3%96%C3%9C.odt

This error is shown:
Invalid Resource
Requested resource was not found. SVN response: HTTP Path Not Found
Url: Allgemein/Umlaute-Test äöüßÄÖÜ.odt, revision: 124

But when I access this file by svndav with this link:
h**p://tux/swsdocs/Allgemein/Umlaute-Test%20%c3%a4%c3%b6%c3%bc%c3%9f%c3%84%c3%96%c3%9c.odt
The file is accessible

Whats wrong?

schlocke
Posts: 2
Joined: Wed Oct 14, 2009 11:14 am

Re: Special characters like à: how to resolve it?

Postby schlocke » Wed Oct 14, 2009 1:28 pm

Hi,
after some evaluation about this problem I found the solution. It's not a SVN Web Client problem, it's a TomCat problem.
here is the answer:
http://answers.google.com/answers/threadview?id=580467

Just edit your server.xml and add to your Connector tag:
URIEncoding="UTF-8"

like this:
<Connector port="8080"
URIEncoding="UTF-8"
... />


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 2 guests