cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow - backslash in nodeRef properties url.

djarty
Star Contributor
Star Contributor

Hello!

Fresh Community Edition (or trial access).

Have a doc - workflow started with this doc.

If we look doc properties (from my files or site documents lib) we can see started workflows related with this doc.

If we need to see this workflow right now - click on workflow link.

And see blank page or error mess.

Look like because the link have backslashes in url nodeRef properties:

.../workflow-details?workflowId=activiti$777&nodeRef=workspace:\/\/SpacesStore\/75f1

If remove \ by hand - we can see right workflow.

How to fix this problem globally?   (trial site affected too)

12 REPLIES 12

djarty
Star Contributor
Star Contributor

Richard Esplin написал(а):

I'm very curious what the difference is between your environments and my environments.

Please announce environments you use. (OS,browser). Tnx.

Also think now I'm running forward but: 

according to http://www.ietf.org/rfc/rfc2396.txt  backslash characters are not valid characters in URLs 

Maybe your browser make autoconvertation \ to / or \/ to / but as we can see its not right way.

resplin
Elite Collaborator
Elite Collaborator

Environment 1 (mine):

* Server: CentOS 7.4 configured with UTF-8 encoding and en as the locale

* Oracle JVM

* PostgreSQL database

* Client: Fedora 27 configured with UTF-8 and pt as the locale

* Tried in both Firefox Quantum and current Chrome

Environment 2 (an internal environment hosted by IT)

* Server: Some current form of RHEL

* I don't know the JVM or database

* Client MacOS High Sierra

* I think he used Safari and Chrome, but I don't remember for sure

jhard2783
Champ in-the-making
Champ in-the-making

To resolve it modify line 52 of file "document-workflows.get.html,ftl" from

<a href="${siteURL("workflow-details?workflowId=" + workflow.id?js_string + "&nodeRef=" + (args.nodeRef!"")?js_string)}"><#if workflow.message?? && workflow.message?length &gt; 0>${workflow.message?html}<#else>${msg("workflow.no_message")?html}</#if></a>

to

<a href="${siteURL("workflow-details?workflowId=" + workflow.id?js_string + "&nodeRef=" + (args.nodeRef!""))}"><#if workflow.message?? && workflow.message?length &gt; 0>${workflow.message?html}<#else>${msg("workflow.no_message")?html}</#if></a>