Raphaël Luta escribió:
> 
> "W. Craig Trader" wrote:
> >
> > Hi!  I just loaded the latest Jetspeed (straight from CVS) and it looks
> > great.  I set it up on my internal web/application server, and it runs
> > fine with one minor problem ... that makes the current incarnation utterly
> > useless.
> >
> > For security, I use a web proxy (Apache) sitting in my DMZ to proxy actual
> > page requests to internal web/app servers.  Unfortunately, Jetspeed is
> > generating web pages that specifically reference the complete internal
> > server name/port ... so the resulting pages break the proxy.  For an
> > example, if you browse to http://test.barkingmad.org/jetspeed/ the page
> > you get back will be filled with the following types of tags:
> >
> > <base href="http://hawking.inside.unicornsrest.org:9004/jetspeed/">
> >
> > <img
> > 
>src="http://hawking.inside.unicornsrest.org:9004/jetspeed/images/jetspeed-logo.gif">
> >
> > Instead of what I would have expected:
> >
> > <base href="/jetspeed/">
> >
> > <img src="/jetspeed/images/jetspeed-logo.gif">
> >
> > So my questions are:
> >
> > Is this a bug or a feature?
> > Is there a configuration parameter to override this behavior?
> > Where in the code should I look to patch this?
> >
> > Thanks for all of your work on Jetspeed, and for your time in answering my
> > questions.
> >
> 
> This is the default behavior of Turbine DynamicURI class which generates the
> URLs you see.
> 
> The base HREF was a stop gap solution for 1.3a1 release and should not be actually
> useful anymore. It will be removed before next alpha.
> 

Nevertheless, I know that phone.com WAP gateway needs the base. It is
broken WRT resolving relative URLs. I suggest that the BASE (a good one,
around the lines that you propose), is left as a configurable item, as I
think most WAP services use Phone.com gateway.

As an exmple, the URL

http://fw.intranet.hisitech.com/c2/

should show Cocoon2 homepage. It works in html and in WAP through the
gateway translator. If you access it through (Movistar's) WAP Gateway,
URLs in this page will show as broken cocoon resources, as the uri asked
by the gateway is /cs/welcome/home.wml (for instance) instead of
/c2/hello.wml It works with the emulators I have tested.

In my setup, using NAT and mod_jk, current Jetspeed is working right. I
think that if your reverse proxy is Apache, you could configure it to
connect to Jetspeed using APJ12/APJ13 connectors (that can be remote if
you want), and your problems will disappear.

Nevertheless, there are broken things in the BASE calculation/handling
now.


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to