Hello Egger, We working on this bug: https://osgeo-org.atlassian.net/browse/GEOS-9489
Hopefully it will be fixed in 2.15.5 and 2.16.3 versions. If the style is assigned to a layer, you might want to try out the GetLegendGraphic request. https://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/index.html See if that works for you. Hope that helps regards, Imran On Fri, Feb 14, 2020 at 5:58 PM Egger Michaela < michaela.eg...@austrocontrol.at> wrote: > Dear list users, > > > > when using an online resource for a styles legend, GeoServer suggests to > place the used images at the styles directory of the GeoServer installation > (e.g. https://server1/geoserver/styles/AD.png). > > > > We have several internal reasons not to do so, but use images from a > second server instead (e.g. https://server2/img/legend/AD.png) > > > > > > When doing so, GeoServer does create a wrong LegendUrl in the > GetCapabilities document by combining the standard URL and the defined one > (e.g. https://server1/geoserver/styles/https://server2/img/legend/AD.png) > > > > > > Does anyone know if there is a way to avoid this? > > If this is a bug I could write a bug report. > > > > Thank you, > > Michaela > Wichtiger Hinweis: Diese E-Mail Nachricht kann Betriebs- oder > Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. > Wenn Sie nicht der Adressat sind und diese Nachricht irrtümlich erhalten > haben, ist Ihnen eine Verwendung des Inhalts, eine Vervielfältigung oder > Weitergabe dieser Nachricht ausdrücklich untersagt. Bitte benachrichtigen > Sie uns und vernichten Sie die empfangene Nachricht. Vielen Dank. Please > Note: This e-mail message may contain trade secrets or privileged, > undisclosed or otherwise confidential information. If you are not the > intended recipient and have received this message in error or by mistake > any unauthorized use, reproduction or distribution of this message is > strictly prohibited. Please notify us immediately and destroy the original > transmittal. Thank you for your cooperation. Austro Control Österreichische > Gesellschaft für Zivilluftfahrt mit beschränkter Haftung Sitz/Registered > address: Wien/ Vienna; Registriert unter/registered under: FN 71000m > Competent court/Firmenbuchgericht: HG Wien/commercial court Vienna; > Rechtsform/legal form: GmbH Postanschrift/postal address: Wagramer Straße > 19 - 1220 Wien/Vienna DVR: 0447277 > _______________________________________________ > Geoserver-users mailing list > > Please make sure you read the following two resources before posting to > this list: > - Earning your support instead of buying it, but Ian Turton: > http://www.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: > http://geoserver.org/comm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: > https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- I.R
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users