[Geoserver-devel] [JIRA] (GEOS-8944) GWC fails to cache tiles if external GeoFence is used for authentication

Gnafu created an issue

GeoServer / BugGEOS-8944

GWC fails to cache tiles if external GeoFence is used for authentication

Issue Type:

BugBug

Affects Versions:

2.13.2

Assignee:

Unassigned

Components:

GWC

Created:

24/Sep/18 10:28 AM

Environment:

GeoServer 2.13.2 with external GeoFence

Priority:

MediumMedium

Reporter:

Gnafu

GWC creates a mock request for the WMS to generate tiles to be cached, but it uses “127.0.0.1” as RemoteHost:
https://github.com/geoserver/geoserver/blob/master/src/gwc/src/main/java/org/geoserver/gwc/FakeHttpServletRequest.java#L303

This will make the WMS check for a rule about “127.0.0.1”, and not the actual IP of the request, changing the resulting image, or (if 127.0.0.1 is not allowed at all) failing to provide it.

The remote hostname and ip should be made available to the WMS that needs to render the tile.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100092-sha1:e9db01c)

Atlassian logo