Workflow - backslash in nodeRef properties url.

cancel
Showing results for 
Search instead for 
Did you mean: 
djarty
Active Member II

Re: Workflow - backslash in nodeRef properties url.

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
Intermediate

Re: Workflow - backslash in nodeRef properties url.

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
Member II

Re: Workflow - backslash in nodeRef properties url.

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>