Uploaded image for project: 'GeoServer'
  1. GEOS-7653

Tiled layers preview does not use Proxy Base Url

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.7.5, 2.7.6, 2.8.0, 2.8.2, 2.8.3, 2.8.4, 2.9.0
    • Fix Version/s: 2.14.0
    • Component/s: GWC
    • Labels:
    • Environment:

      Ubuntu 16.04, Tomcat 8, OpenJDK 1.8, Nginx reverse proxy

      Description

      Geoserver tiled layers preview incorrectly points to http://127.0.0.1:8080/geoserver/gwc/... even though "Proxy Base URL" is set correctly. The expected behaviour would be that the previews point to addresses prefixed by "Proxy Base Url" instead.
      If the wrong prefix is replaced by hand on the browser address bar, the preview works. The problem seems to be only with the links displayed on the tiled layers preview.

      The regular non-tiled layer previews work as expected.

      This is the code to create the WMS demo page links in v2.9 (which works):

      https://github.com/geoserver/geoserver/blob/5b557be8868a443ccf9e0df1dc1971fa22e6f233/src/web/demo/src/main/java/org/geoserver/web/demo/DemoRequestsPage.java#L168

      This is the code to generate the GWC (tiled) demo page links for v2.9 (which does not quite work):

      https://github.com/geoserver/geoserver/blob/5b557be8868a443ccf9e0df1dc1971fa22e6f233/src/web/gwc/src/main/java/org/geoserver/gwc/web/layer/CachedLayersPage.java#L280

      It seems that the problem is in the GWC demo page generation which does not pull the getGeoServer().getGlobal().getSettings().getProxyBaseUrl() property.

      The "actions" links have the same problem:
      https://github.com/geoserver/geoserver/blob/5b557be8868a443ccf9e0df1dc1971fa22e6f233/src/web/gwc/src/main/java/org/geoserver/gwc/web/layer/CachedLayersPage.java#L173

        Attachments

          Activity

            People

            • Assignee:
              ianturton Ian Turton
              Reporter:
              daniel_a_miranda Daniel Araujo Miranda
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified