[Geoserver-devel] [JIRA] (GEOS-11051) ENV params not used correctly by AuthKey extension, thus overwritten

Peter Smythe created an issue

GeoServer / BugGEOS-11051

ENV params not used correctly by AuthKey extension, thus overwritten

Issue Type:

BugBug

Affects Versions:

2.22.2

Assignee:

Unassigned

Attachments:

image-20230704-115043.png, image-20230704-115356.png, image-20230704-115727.png

Components:

authkey

Created:

04/Jul/23 2:00 PM

Priority:

MediumMedium

Reporter:

Peter Smythe

https://docs.geoserver.org/latest/en/user/datadirectory/configtemplate.html can be used in other places, correctly e.g. Global Settings:

saved in global.xml thus:

    <proxyBaseUrl>https://${geoserver_hostname}.afrigis.co.za/geoserver</proxyBaseUrl>

However, the Authkey extension https://docs.geoserver.org/latest/en/user/extensions/authkey/index.html does not work perfectly. The admin is able to enter the parameterised URL correctly:

saved in data/security/filter/AuthKey Filter/config.xml correctly:

      <string>webServiceUrl</string>
      <string>https://_____________?geoserver=${geoserver_hostname}&authkey={key}</string>

However, when the GUI loads it again, the substituted parameter is visible (this is the bug):

and when saved, the config.xml file is exactly this substituted string, not the parameterised version:

      <string>webServiceUrl</string>
      <string>https://_____________?geoserver=dev-ogc&authkey={key}</string>

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#100228-sha1:4a42edc)

Atlassian logo