| This bug is related to this External graphic functionality, https://docs.geoserver.org/latest/en/user/styling/webadmin/index.html#style-editor-data-tab When configuring a pre-cooked external graphic legend image file available through a URL, URI to local file system (outside GS data directory), the capability document wrongly prefixes the path with Geoserver`s base URL. <LegendURL width="20" height="20"> <Format>image/png</Format> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="">"http://localhost:8081/geoserver/wmshttp://external.site/legend.png"/> </LegendURL> Moreover when a legend image is configured from the data_dir/styles folder, it is directly referenced in the capability document. In production environments these kind of direct URLs to resource are blocked on Webservers. Ideally the capability document should advertise a general GetLegendGraphic, similar to SLD, so that the nature of legend stays seamless to client and internal to Geoserver. |