Skip to content

Revert changes in QueryLifecycle#authorize(HttpServletRequest)#14451

Closed
findingrish wants to merge 1 commit intoapache:masterfrom
findingrish:fix-native-query-auth-error
Closed

Revert changes in QueryLifecycle#authorize(HttpServletRequest)#14451
findingrish wants to merge 1 commit intoapache:masterfrom
findingrish:fix-native-query-auth-error

Conversation

@findingrish
Copy link
Contributor

The earlier refactor #14376, resulted in Druid-Authorization-Checked attribute not being set on the request.
This is causing error log line in PreResponseAuthorizationCheckFilter for native queries,

2023-06-20T05:12:52,084 ERROR [qtp881300604-186] org.apache.druid.server.security.PreResponseAuthorizationCheckFilter - Request did not have an authorization check performed, original response status [204].: {class=org.apache.druid.server.security.PreResponseAuthorizationCheckFilter, uri=/druid/v2, method=POST, remoteAddr=127.0.0.1, queryId=02d66135-feeb-45e6-82ea-3fb59176689e}

@@ -221,7 +221,25 @@ public void initialize(final Query<?> baseQuery)
*/
public Access authorize(HttpServletRequest req)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove the other method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, just reverting the original pr then, #14452.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants