Skip to content

Wrong base URL when deployed on a two level path. #1160

@jdevora

Description

@jdevora

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
image
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions