jnturton opened a new pull request #2495:
URL: https://github.com/apache/drill/pull/2495


   # [DRILL-8168](https://issues.apache.org/jira/browse/DRILL-8168): Do not 
duplicate attempts to impersonate a user in the REST API
   
   ## Description
   When authentication is enabled, the Drill UserSession is persistent and it 
is only appropriate to modify it for impersonation once.  This adds a check for 
whether the UserSession needs modifying and avoids any uneeded attempt to do 
so, thereby fixing the broken scenario
   
   Request 1: UserSession user alice modified to impersonated user bob
   Request 2: UserSession user bob fails to be modified to bob because bob is 
not authorised to impersonate bob.
   
   ## Documentation
   N/A
   
   ## Testing
   New test for this scenario?


-- 
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: dev-unsubscr...@drill.apache.org

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


Reply via email to