cancel
Showing results for 
Search instead for 
Did you mean: 

Download file with square brackets in the name through CMIS does not work

joachim
Champ on-the-rise
Champ on-the-rise

Hello,

Example filename: "Picture of a bird 4{2}123 (ID 1).png".

We can upload the file with dotCMIS okay, but can not download it later.

A 400 bad request is gotten from server with following response:

Message: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

Exception: 

java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
	org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:475)
	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.base/java.lang.Thread.run(Thread.java:834)

Is this a configuration issue or a bug in ECM? 

We have Community 6.1.2 running on the server, but no label found for 6.1.x.

1 REPLY 1

EddieMay
World-Class Innovator
World-Class Innovator

Hi,

ACS 6.1 uses Tomcat 8.5+. You may need to add these characters to Tomcat config => https://tomcat.apache.org/tomcat-8.5-doc/config/http.html - relaxedPathChars &/or relaxedQueryChars settings.

See this Stack discussion of the topic and your options.

HTH,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!