View Full Version : Http authentication forward for internal HttpClient

08-22-2007, 01:08 PM

I've just recently discovered a problem with the pentaho webapp, if you deploy it behind a proxy (I've used apache mod_jk / tomcats AJP connector) so that you don't have to open up port 8080 to the external network.

This is my setup:
- I've modified the web.xml base-url parameter to "http://www.myserver.com/pentaho"

- I have set up basic authentication because this is a closed site
- mod_jk acts as proxy for the pentaho-webapp

At first sight it seems as if it is working but a lot of things can't load, for example:

Could not load chart data from samples/steel-wheels/homeDashboard/topnmdxquery.xactionI've dug into the logs and found this very interesting bit:

Caused by: org.apache.commons.vfs.FileSystemException: HEAD method failed for "http://www.myserver.com/pentaho/..."I can resolve the URL in the exception message myself, but of course I need to authenticate via apache. So I thought about it a bit - and found that the problem must of course be that the HttpClient (or apache vfs, I don't know the specifics) need to forward my authentication to whatever internal requests you make in the webapp... Is this a possible improvement?