Closed senoadiw closed 7 years ago
Thanks @senoadiw for the report. Well, I haven't tested with the current version of geonode. It seems, they added new code that geoserver-specific. But it doesn't cover QGIS Server, unfortunatelly.
@ismailsunni we should write a regex to strip off the access token before passing the request downstream to QGIS server?
Hmm, after looked at the code again, the access token should be ignored since it's a GET parameter and the legend should have been shown.
@timlinux yes, that can work
This issue was moved to kartoza/geonode#189
This issue was moved to kartoza/geonode#190
Description
On recent GeoNode versions, for logged in users the access_token query string is appended to the resource.get_legend.url in https://github.com/GeoNode/geonode/blob/47f2a42ff60be0c0c427b78df5e73a411ac2b2e1/geonode/layers/templates/layers/layer_detail.html#L430
For anonymous users the legend appears fine. Here is what it looks like as admin user:
Thanks