Hi Gabriel and Andrea,
Thank you for your explanations. As I understand this now all the translation
for both html and OWS XML responses are done by the URL Mangler working with the
Proxy Base URL setting.
I also note that Andrea made changes on 7 Feb 2012
to OpenLayersMapOutputFormat.java to fix issue GEOS-4930 ("Map preview
always points
to localhost") so that the ProxyBaseURL was taken into account for
Open Layers map preview
html output.
So I will study OpenLayersMapOutputFormat.java and URL Mangler code
to satisfy myself.
I will be good to not use the ReverseProxyFilter, it gave me a lot of headache
and hours checking/testing bugs last time around when I installed 2.1.1 !
Regards,
Andrew
On 3/1/12, Gabriel Roldan <[email protected]> wrote:
> On Tue, Feb 28, 2012 at 9:33 PM, Andrew Walsh <[email protected]> wrote:
>
>> Hi Andrea,
>>
>> I was interested to see which java programs were changed/added
>> to now handle the URL translation in absence of using
>> ReverseProxyFilter.java.
>> Could you describe the new approach and where could I look at the
>> changed modules?
>>
>
> To answer your question, there are two things that need(ed) translation:
> html content (including generated links inside javascript and css imports),
> and OWS XML responses (like in for schema locations).
> The former was always taken care of by the reverse proxy filter, the later
> was _never_ taken care of by the reverse proxy filter, since running the
> whole xml response through the filter might be overkill (think of a large
> GetFeature response), and hence those xml elements were always directly
> written in code using the proxy base url. The URL mangler was added later
> for greater flexibility but the design didn't change since GeoServer 1.x.
>
> Cheers,
> Gabriel
>
>
>> I did try:
>>
>>
>> http://svn.codehaus.org/geoserver/branches/2.1.x/src/main/src/main/java/org/geoserver/filters
>>
>> but that code looks the same as version 2.1.1
>>
>> Thanks,
>>
>> Andrew
>>
>> On 2/29/12, Gabriel Roldan <[email protected]> wrote:
>> > +1 provided assessment of it's un-usability is complete.
>> > Cheers,
>> > Gabriel
>> >
>> > On Mon, Feb 27, 2012 at 1:32 PM, Justin Deoliveira
>> > <[email protected]>wrote:
>> >
>> >> +1 on removal if not needed.
>> >>
>> >>
>> >> On Mon, Feb 27, 2012 at 12:19 AM, Andrea Aime <
>> >> [email protected]> wrote:
>> >>
>> >>> On Mon, Feb 27, 2012 at 5:12 AM, Ben Caradoc-Davies
>> >>> <[email protected]> wrote:
>> >>> > On 26/02/12 17:49, Andrea Aime wrote:
>> >>> >>
>> >>> >> Hi,
>> >>> >> GeoServer web.xml contains a filter whose purpose in life is to
>> change
>> >>> the
>> >>> >> html returned by GeoServer to respect the "proxy base url".
>> >>> >> However tests show it conflicts with the gzipping filter and
>> besides,
>> >>> as
>> >>> >> far
>> >>> >> as I know the current GUI generates only relative URLs, meaning the
>> >>> >> filter is not really needed (see
>> >>> >> http://jira.codehaus.org/browse/GEOS-4756)
>> >>> >> Shall we just remove it? It seems its presence today serves no
>> actual
>> >>> >> purpose.
>> >>> >> Cheers
>> >>> >> Andrea
>> >>> >
>> >>> >
>> >>> > Andrea, does this only affect the user interface or other HTML or
>> XML?
>> >>> The
>> >>> > reverse proxy base URL is used in app-schema deployments to rewrite
>> >>> absolute
>> >>> > URLs (see below).
>> >>>
>> >>> The proxy base url is applied internally by URLMangler, the only
>> residual
>> >>> need
>> >>> for the reverse proxy filter was rewriting the HTML as far as I know
>> >>>
>> >>> Cheers
>> >>> Andrea
>> >>>
>> >>> --
>> >>> -------------------------------------------------------
>> >>> Ing. Andrea Aime
>> >>> GeoSolutions S.A.S.
>> >>> Tech lead
>> >>>
>> >>> Via Poggio alle Viti 1187
>> >>> 55054 Massarosa (LU)
>> >>> Italy
>> >>>
>> >>> phone: +39 0584 962313
>> >>> fax: +39 0584 962313
>> >>> mob: +39 339 8844549
>> >>>
>> >>> http://www.geo-solutions.it
>> >>> http://geo-solutions.blogspot.com/
>> >>> http://www.youtube.com/user/GeoSolutionsIT
>> >>> http://www.linkedin.com/in/andreaaime
>> >>> http://twitter.com/geowolf
>> >>>
>> >>> -------------------------------------------------------
>> >>>
>> >>>
>> >>>
>> ------------------------------------------------------------------------------
>> >>> Try before you buy = See our experts in action!
>> >>> The most comprehensive online learning library for Microsoft
>> >>> developers
>> >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>> MVC3,
>> >>> Metro Style Apps, more. Free future releases when you subscribe now!
>> >>> http://p.sf.net/sfu/learndevnow-dev2
>> >>> _______________________________________________
>> >>> Geoserver-devel mailing list
>> >>> [email protected]
>> >>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Justin Deoliveira
>> >> OpenGeo - http://opengeo.org
>> >> Enterprise support for open source geospatial.
>> >>
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Try before you buy = See our experts in action!
>> >> The most comprehensive online learning library for Microsoft developers
>> >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
>> >> MVC3,
>> >> Metro Style Apps, more. Free future releases when you subscribe now!
>> >> http://p.sf.net/sfu/learndevnow-dev2
>> >> _______________________________________________
>> >> Geoserver-devel mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>> >>
>> >>
>> >
>> >
>> > --
>> > Gabriel Roldan
>> > OpenGeo - http://opengeo.org
>> > Expert service straight from the developers.
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>
>
>
> --
> Gabriel Roldan
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel