Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
Unlike a failed COM_CHANGE_USER which causes ER_ACCESS_DENIED_ERROR , a failed SET SESSION AUTHORIZATION command causes ER_ACCESS_DENIED_CHANGE_USER_ERROR . Maybe that's the reason why it isn't included into the Access_denied_errors status counter, and I don't see any other counters which would be used for it.
create user foo@localhost;
flush global status;
--connect (con1,localhost,foo,,)
show global status like 'access_denied_errors' ;
--echo # Running change_user bar
--error ER_ACCESS_DENIED_ERROR
--change_user bar
show global status like 'access_denied_errors' ;
--error ER_ACCESS_DENIED_CHANGE_USER_ERROR
SET SESSION AUTHORIZATION bar@localhost;
show global status like 'access_denied_errors' ;
--disconnect con1
--connection default
drop user foo@localhost;
d4c600f804af677ac3177497b3770dbd67c448f7
Access_denied_errors 0
# Running change_user bar
ERROR 28000: Access denied for user 'bar' @ 'localhost' (using password : NO )
show global status like 'access_denied_errors' ;
Variable_name Value
Access_denied_errors 1
SET SESSION AUTHORIZATION bar@localhost;
ERROR 28000: Access denied trying to change to user 'bar' @ 'localhost'
show global status like 'access_denied_errors' ;
Variable_name Value
Access_denied_errors 1
Also, errors upon COM_CHANGE_USER are logged in the error log as warnings
[Warning] Access denied for user 'bar'@'localhost' (using password: NO)
but errors upon SET SESSION AUTHORIZATION are not. I'm not sure whether they are necessarily needed in the error log, but they should probably be reflected in the status.
is caused by
MDEV-20299
SET SESSION AUTHORIZATION
In Testing
{"report":{"fcp":1821.9000000953674,"ttfb":466,"pageVisibility":"visible","entityId":133514,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"07995962-a606-4c53-8428-19f1385ce8e9","navigationType":0,"readyForUser":1906.5,"redirectCount":0,"resourceLoadedEnd":2445.9000000953674,"resourceLoadedStart":471.1000003814697,"resourceTiming":[{"duration":635,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":471.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":471.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1106.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":635,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":471.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":471.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1106.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":684.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":471.6000003814697,"connectEnd":471.6000003814697,"connectStart":471.6000003814697,"domainLookupEnd":471.6000003814697,"domainLookupStart":471.6000003814697,"fetchStart":471.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":471.6000003814697,"responseEnd":1155.8000001907349,"responseStart":1155.8000001907349,"secureConnectionStart":471.6000003814697},{"duration":743.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":471.80000019073486,"connectEnd":471.80000019073486,"connectStart":471.80000019073486,"domainLookupEnd":471.80000019073486,"domainLookupStart":471.80000019073486,"fetchStart":471.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":471.80000019073486,"responseEnd":1214.9000000953674,"responseStart":1214.9000000953674,"secureConnectionStart":471.80000019073486},{"duration":747.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":472.1000003814697,"connectEnd":472.1000003814697,"connectStart":472.1000003814697,"domainLookupEnd":472.1000003814697,"domainLookupStart":472.1000003814697,"fetchStart":472.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":472.1000003814697,"responseEnd":1219.4000000953674,"responseStart":1219.4000000953674,"secureConnectionStart":472.1000003814697},{"duration":747.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":472.2000002861023,"connectEnd":472.2000002861023,"connectStart":472.2000002861023,"domainLookupEnd":472.2000002861023,"domainLookupStart":472.2000002861023,"fetchStart":472.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":472.2000002861023,"responseEnd":1220,"responseStart":1220,"secureConnectionStart":472.2000002861023},{"duration":747.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":472.40000009536743,"connectEnd":472.40000009536743,"connectStart":472.40000009536743,"domainLookupEnd":472.40000009536743,"domainLookupStart":472.40000009536743,"fetchStart":472.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":472.40000009536743,"responseEnd":1220.3000001907349,"responseStart":1220.3000001907349,"secureConnectionStart":472.40000009536743},{"duration":919.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":472.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":472.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1391.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":748.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":472.7000002861023,"connectEnd":472.7000002861023,"connectStart":472.7000002861023,"domainLookupEnd":472.7000002861023,"domainLookupStart":472.7000002861023,"fetchStart":472.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":472.7000002861023,"responseEnd":1220.9000000953674,"responseStart":1220.9000000953674,"secureConnectionStart":472.7000002861023},{"duration":919.3000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":472.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":472.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1392.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":748.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":473.1000003814697,"connectEnd":473.1000003814697,"connectStart":473.1000003814697,"domainLookupEnd":473.1000003814697,"domainLookupStart":473.1000003814697,"fetchStart":473.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":473.1000003814697,"responseEnd":1221.5,"responseStart":1221.5,"secureConnectionStart":473.1000003814697},{"duration":1672.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":478.80000019073486,"connectEnd":478.80000019073486,"connectStart":478.80000019073486,"domainLookupEnd":478.80000019073486,"domainLookupStart":478.80000019073486,"fetchStart":478.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":478.80000019073486,"responseEnd":2151.1000003814697,"responseStart":2151.1000003814697,"secureConnectionStart":478.80000019073486},{"duration":1967,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":478.90000009536743,"connectEnd":478.90000009536743,"connectStart":478.90000009536743,"domainLookupEnd":478.90000009536743,"domainLookupStart":478.90000009536743,"fetchStart":478.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":478.90000009536743,"responseEnd":2445.9000000953674,"responseStart":2445.9000000953674,"secureConnectionStart":478.90000009536743},{"duration":733.4000000953674,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1432,"connectEnd":1432,"connectStart":1432,"domainLookupEnd":1432,"domainLookupStart":1432,"fetchStart":1432,"redirectEnd":0,"redirectStart":0,"requestStart":1432,"responseEnd":2165.4000000953674,"responseStart":2165.4000000953674,"secureConnectionStart":1432},{"duration":659.2999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1809.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1809.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2468.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":303,"responseStart":466,"responseEnd":476,"domLoading":469,"domInteractive":2472,"domContentLoadedEventStart":2473,"domContentLoadedEventEnd":2524,"domComplete":4700,"loadEventStart":4700,"loadEventEnd":4702,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2449},{"name":"bigPipe.sidebar-id.end","time":2449.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2450.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":2452.300000190735},{"name":"activityTabFullyLoaded","time":2535}],"measures":[],"correlationId":"1ed3550dc7ea34","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}