-
Notifications
You must be signed in to change notification settings - Fork 147
Description
My company forces to deploy all the webapps on a second level URL, in this case, Pentaho should be deployed at https://mycompanysite/aplicaciones/pentaho
I renamed the war file to aplicaciones#pentaho and changed all the necessary configuration parameters and got it working with one exception.
Some of the URLs, when working with an ETL, get the last folder chopped

Notice that the pentaho part of the URL is missing.
I started to look at the javascript and it turns out that in the file pentaho-solutions/system/pentaho-cdf/js/cdf-bootstrap-script-includes.js
at line 5266 you can see
if(webAppPath==undefined){webAppPath="/"+pathArray[1];}
I changed it to
if(webAppPath==undefined){webAppPath="/"+pathArray[1]+"/"+pathArray[2];}
And everything is working fine.
I know that this is a corner case and the suggestion is just a "hack" to make it work, but the rest of the URLs are generated correctly; that means that the correct logic to guess the correct webAppPath should exist somewhere else in the code.
Cheers
PS: The Pentaho I installed is pentaho-server-ce-9.3.0.0-428.zip