cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with HTTPS protocol and change of Application Context

prakashm88
Champ in-the-making
Champ in-the-making
We have a very peculiar issue with the Explorer UI. Its probably with an unhandled scenario and we are using Activiti 5.18 version. 
Our architecture uses a GSLB (Global Server Load Balancing). With a common URL, GSLB takes care of routing the request to multiple Server instance.
GSLB Url is enabled with SSL but the instances under it is not enabled with SSL.

When I open the URL https://bpmapp.biz.itechgenie.com/web/ui#process/c1:1:8 which lists the "Deployed Process Definitions" does not show the Process Diagram in the right side panel.
After some debugging I found that a JSON response returned from server contains a "http" URL, and HTTP is not allowed in the GSLB url.

<CODE>
{"id": "PID512","height": "435px","width": "635px","caption": "","type": "browser","src": "http:\/\/bpmapp.biz.itechgenie.com\/web\/diagram-viewer\/index.html?processDefinitionId=c1:1:8","mimetype": "text\/html"}
<CODE>

I guess, as the request redirected by the GSLB to the app server is in HTTP protocol code is returning the resonse as HTTP for the Process Definition URL.

Is there a way to make the protocol to HTTPS from without changing the code. If this could be done with only the code change, Could you help the file names where the changes would be necessary.

There were other issues with hard-coded context in the Application to "activiti-explorer" in the diagram-viewer and explorer-app. As they were just Script changes we managed to resolve them easily.  But the above stated issues seems to need a change in VAADIN/JAVA side.

Any help is appreciated, thanks !
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Where exactly do you see this happening?

I did a quick search in the code, and it takes the current url: https://github.com/Activiti/Activiti/blob/master/modules/activiti-explorer/src/main/java/org/activit...