bigben0204 opened a new issue, #24858:
URL: https://github.com/apache/doris/issues/24858

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.0.1
   
   ### What's Wrong?
   
   In queryProfileText api, if IS_ALL_NODE_PARA is true, profile might be 
queried from other fe. 
   While **checkAuthByUserAndQueryId** function stopped non-root user to query 
from other fe, and an error "query with id xxx is not found" is returned.
   
   ### What You Expected?
   
   Querying profile from any fe for non-root user will return correct result.
   
   ### How to Reproduce?
   
   1. Execute a query with non-root user.
   2. Use queryProfileText api to query profile on the other fe.
   
   ### Anything Else?
   
   To solve the problem, when IS_ALL_NODE_PARA is true, 
**checkAuthByUserAndQueryId** function shoud not be executed. When 
IS_ALL_NODE_PARA is false, **checkAuthByUserAndQueryId** function shoud be 
executed.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to