[Geoserver-users] GEOS-4930 --OpenLayers Map Preview always points to localhost

Hello list,

updating our geoserver instance from 2.1.3 to 2.3 I found that the preview
stopped working. Looking at the reasons I found the issue GEOS-4930, a bug
fix. However, I don't think it is actually a problem that has been fixed,
but rather created. The bug that was fixed was that Openlayers (in the
preview) went back to the localhost and not to the proxy, if a proxy is
defined. It occurred in 2.1.2 and fixed in 2.1.4. In all other instances in
2.12 and 2.13 it went back to the proxy.

Our Geoserver sits behind a proxy (a catalogue). The consequence of the fix
is that the display on the preview does not work, because after the initial
request the Openlayers requests goes to the proxy and not to the server. The
proxy obviously doesn't have a clue about the Openlayers controls etc. So,
it stalls after opening a window and drawing a frame.

The preview in Geoserver is a preview for the administrator, i.e. me, nobody
else is supposed to use it. I do not use for production purposes but to
check new layers or sld's or switches between databases, new stores etc. So,
I need to remove the "proxy base url", check and put it in again.

Is that the desired behaviour and if it is: Is it sensible?

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOS-4930-OpenLayers-Map-Preview-always-points-to-localhost-tp5052239.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Thu, May 9, 2013 at 8:26 AM, cmaul <Christian.Maul@anonymised.com> wrote:

The preview in Geoserver is a preview for the administrator, i.e. me,
nobody
else is supposed to use it. I do not use for production purposes but to
check new layers or sld's or switches between databases, new stores etc.
So,
I need to remove the "proxy base url", check and put it in again.

Unfortunately the preview was never meant to work like this.
Try to log out, and you can see that it's still available.
The preview, along with all the demos, it's meant to be accessible for
everybody,
as such, it has to be visible outside of the proxy

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------