-
Bug
-
-
Major
-
Resolution:
Unresolved
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
-
-
-
I run this script:
DROP USER IF EXISTS user1@localhost;
|
DROP PROCEDURE IF EXISTS p1;
|
CREATE PROCEDURE p1() BEGIN END;
|
CREATE USER user1@localhost;
|
GRANT ALL PRIVILEGES ON procedure .p1 TO user1@localhost;
|
SHOW GRANTS FOR user1@localhost;
|
DROP USER user1@localhost;
|
It prints the following output in SHOW GRANTS:
+------------------------------------------------------------------------------+
|
| Grants for user1@localhost |
|
+------------------------------------------------------------------------------+
|
| GRANT USAGE ON *.* TO 'user1'@'localhost' |
|
| GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `test`.`p1` TO 'user1'@'localhost' |
|
+------------------------------------------------------------------------------+
|
Looks fine so far. The procedure name ".p1" was translated to test.p1 (i.e. took the current database name).
Now I add run a similar script, but remove the space character in the GRANT command, between procedure and .p1:
DROP USER IF EXISTS user1@localhost;
|
DROP PROCEDURE IF EXISTS p1;
|
CREATE PROCEDURE p1() BEGIN END;
|
CREATE USER user1@localhost;
|
GRANT ALL PRIVILEGES ON procedure.p1 TO user1@localhost;
|
SHOW GRANTS FOR user1@localhost;
|
DROP USER user1@localhost;
|
+-----------------------------------------------------------------+
|
| Grants for user1@localhost |
|
+-----------------------------------------------------------------+
|
| GRANT USAGE ON *.* TO 'user1'@'localhost' |
|
| GRANT ALL PRIVILEGES ON `procedure`.`p1` TO 'user1'@'localhost' |
|
+-----------------------------------------------------------------+
|
Looks wrong. It was translated to:
GRANT ALL PRIVILEGES ON TABLE `procedure`.`p1` TO 'user1'@'localhost'
|
It should not happen. The keyword PROCEDURE is reserved in MariaDB. It should never be associated with the identifier `procedure`.
So
should be interpreted as
ON PROCEDURE current_database.p1
|
.
- is blocked by
-
MDEV-17677
Keywords are parsed as identifiers when followed by a dot
-
-
Open
{"report":{"fcp":1148.2999999523163,"ttfb":284.60000014305115,"pageVisibility":"visible","entityId":70727,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1b864cf1-f5c0-497c-afa5-f070b53fb76c","navigationType":0,"readyForUser":1222.2999999523163,"redirectCount":0,"resourceLoadedEnd":923.7000000476837,"resourceLoadedStart":297.60000014305115,"resourceTiming":[{"duration":343.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":297.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":641,"responseStart":0,"secureConnectionStart":0},{"duration":343.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":297.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":641.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":413.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":298,"connectEnd":298,"connectStart":298,"domainLookupEnd":298,"domainLookupStart":298,"fetchStart":298,"redirectEnd":0,"redirectStart":0,"requestStart":644.2000000476837,"responseEnd":711.5,"responseStart":659,"secureConnectionStart":298},{"duration":442.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":298.5,"connectEnd":298.5,"connectStart":298.5,"domainLookupEnd":298.5,"domainLookupStart":298.5,"fetchStart":298.5,"redirectEnd":0,"redirectStart":0,"requestStart":644.6000001430511,"responseEnd":741,"responseStart":658,"secureConnectionStart":298.5},{"duration":358.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":298.60000014305115,"connectEnd":298.60000014305115,"connectStart":298.60000014305115,"domainLookupEnd":298.60000014305115,"domainLookupStart":298.60000014305115,"fetchStart":298.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":645.5,"responseEnd":657.1000001430511,"responseStart":656.2999999523163,"secureConnectionStart":298.60000014305115},{"duration":366.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":298.7000000476837,"connectEnd":298.7000000476837,"connectStart":298.7000000476837,"domainLookupEnd":298.7000000476837,"domainLookupStart":298.7000000476837,"fetchStart":298.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":646.6000001430511,"responseEnd":664.9000000953674,"responseStart":663,"secureConnectionStart":298.7000000476837},{"duration":374.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":298.7000000476837,"connectEnd":298.7000000476837,"connectStart":298.7000000476837,"domainLookupEnd":298.7000000476837,"domainLookupStart":298.7000000476837,"fetchStart":298.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":648,"responseEnd":673.4000000953674,"responseStart":672.7999999523163,"secureConnectionStart":298.7000000476837},{"duration":348.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":298.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":647,"responseStart":0,"secureConnectionStart":0},{"duration":377.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":299,"connectEnd":299,"connectStart":299,"domainLookupEnd":299,"domainLookupStart":299,"fetchStart":299,"redirectEnd":0,"redirectStart":0,"requestStart":650,"responseEnd":676.6000001430511,"responseStart":676,"secureConnectionStart":299},{"duration":349.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":299.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":299.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":648.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":383.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":299.2000000476837,"connectEnd":299.2000000476837,"connectStart":299.2000000476837,"domainLookupEnd":299.2000000476837,"domainLookupStart":299.2000000476837,"fetchStart":299.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":651.2000000476837,"responseEnd":683.1000001430511,"responseStart":679.5,"secureConnectionStart":299.2000000476837},{"duration":585.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":316.40000009536743,"connectEnd":316.40000009536743,"connectStart":316.40000009536743,"domainLookupEnd":316.40000009536743,"domainLookupStart":316.40000009536743,"fetchStart":316.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":796.2000000476837,"responseEnd":902.2999999523163,"responseStart":898.5,"secureConnectionStart":316.40000009536743},{"duration":607.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":316.40000009536743,"connectEnd":316.40000009536743,"connectStart":316.40000009536743,"domainLookupEnd":316.40000009536743,"domainLookupStart":316.40000009536743,"fetchStart":316.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":912.1000001430511,"responseEnd":923.7000000476837,"responseStart":923.1000001430511,"secureConnectionStart":316.40000009536743},{"duration":205.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":904.2000000476837,"connectEnd":904.2000000476837,"connectStart":904.2000000476837,"domainLookupEnd":904.2000000476837,"domainLookupStart":904.2000000476837,"fetchStart":904.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1081.2999999523163,"responseEnd":1109.5,"responseStart":1108.2999999523163,"secureConnectionStart":904.2000000476837},{"duration":107.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1126.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1126.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1233.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":125.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1148.2000000476837,"connectEnd":1148.2000000476837,"connectStart":1148.2000000476837,"domainLookupEnd":1148.2000000476837,"domainLookupStart":1148.2000000476837,"fetchStart":1148.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1241.7999999523163,"responseEnd":1273.7000000476837,"responseStart":1272.4000000953674,"secureConnectionStart":1148.2000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":154,"responseStart":284,"responseEnd":316,"domLoading":288,"domInteractive":1284,"domContentLoadedEventStart":1284,"domContentLoadedEventEnd":1319,"domComplete":2580,"loadEventStart":2580,"loadEventEnd":2582,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1263},{"name":"bigPipe.sidebar-id.end","time":1263.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1263.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1266.5},{"name":"activityTabFullyLoaded","time":1328.5}],"measures":[],"correlationId":"aa78668fbc0694","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}