-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix WMS layer access control check #58073
Conversation
7f342f6
to
6236202
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
Work in progess |
6236202
to
45a15da
Compare
We found that our fix made unnecessary call to the function |
Description
Fix access control when requesting layer's group with mixed allowed and forbidden layers from WMS requests.
Actual behavior: raise a security exception
Proposed behavior: consider only allowed layers in group.
The behavior for layers submitted to access control is now the following:
Implementation details:
Adding a layer to the rendering list is done by calling the
addLayerToRender
method with a booleanqueryLayer
context variable if the layer is added explicitely or not. If the layer is added explicetely, then a security exception is raised otherwie the layer is discarded from the rendering list.