Problem
Unable to open document's workflow from document details screen.
Description
When a workflow is started for a document, if a user then goes into the document-details csreen for that document and attempts to click the workflow(s) that the document is a part of, the resulting page is blank.
The page is blank because of either badly escaped forward-slashes or just too many slashes.
Resulting URL after clicking on workflow in the document-details screen is this:
http://localhost:8080/share/page/site/site1/workflow-details?workflowId=activiti$101&nodeRef=workspace:\/\/SpacesStore\/c99a702b-7c05-4ea8-8012-aafbabead699
- when it should be:
http://localhost:8080/share/page/site/site1/workflow-details?workflowId=activiti$101&nodeRef=workspace://SpacesStore/c99a702b-7c05-4ea8-8012-aafbabead699
We see the following logging:
24-Jul-2018 15:12:45.002 INFO [http-nio-8080-exec-4] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:476) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:687) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
Steps to reproduce
- Create a document in a site
- Start a Review and Approve (single approver) on that document
- Go into the document-details of that document
- On the right-hand, underneath 'Workflows' click the name of the workflow that the document is a part of.
Expected behaviour
For the page with the workflow details to appear
Actual behaviour
Blank page with un-escaped or additional slashes in the URL