When we're trying to encrypt a table with a non-existing key id using 'file_key_management' plugin the error message shown is misleading.
Repro
------
Key file>
cat var/tmp/fifo-key.txt
|
1;11111111111111111111111111111111
|
2;00000000000000000000000000000000
|
3;22222222222222222222222222222222
|
MariaDB [test]> INSTALL SONAME 'file_key_management';
|
Query OK, 0 rows affected, 1 warning (0.001 sec)
|
|
MariaDB [test]> CREATE TABLE t1(c1 BIGINT NOT NULL, b CHAR(200)) ENGINE=INNODB ENCRYPTED=YES ENCRYPTION_KEY_ID=1;
|
Query OK, 0 rows affected (0.002 sec)
|
|
MariaDB [test]> ALTER TABLE t1 ENCRYPTION_KEY_ID=4;
|
ERROR 1478 (HY000): Table storage engine 'InnoDB' does not support the create option 'ENCRYPTION_KEY_ID'
|
|
MariaDB [test]> CREATE TABLE t2(c1 BIGINT NOT NULL, b CHAR(200)) ENGINE=INNODB ENCRYPTED=YES ENCRYPTION_KEY_ID=4;
|
ERROR 1005 (HY000): Can't create table `test`.`t2` (errno: 140 "Wrong create options")
|
MariaDB [test]>
|
Expected behavior
-------------------
The error message should say> the key id is not existing or is invalid.
- relates to
-
MDEV-9158
file_key_management should support reading from a named pipe
-
-
Closed
{"report":{"fcp":1349,"ttfb":504.69999999925494,"pageVisibility":"visible","entityId":132427,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"dece3176-b6e0-41dd-8c6d-f6e1845b6242","navigationType":0,"readyForUser":1439.5,"redirectCount":0,"resourceLoadedEnd":1877.699999999255,"resourceLoadedStart":509.3999999985099,"resourceTiming":[{"duration":332.80000000074506,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":509.3999999985099,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":509.3999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":842.1999999992549,"responseStart":0,"secureConnectionStart":0},{"duration":332.90000000037253,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":509.59999999962747,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":509.59999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":842.5,"responseStart":0,"secureConnectionStart":0},{"duration":341.59999999962747,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":509.7999999988824,"connectEnd":509.7999999988824,"connectStart":509.7999999988824,"domainLookupEnd":509.7999999988824,"domainLookupStart":509.7999999988824,"fetchStart":509.7999999988824,"redirectEnd":0,"redirectStart":0,"requestStart":509.7999999988824,"responseEnd":851.3999999985099,"responseStart":851.3999999985099,"secureConnectionStart":509.7999999988824},{"duration":387.80000000074506,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":509.8999999985099,"connectEnd":509.8999999985099,"connectStart":509.8999999985099,"domainLookupEnd":509.8999999985099,"domainLookupStart":509.8999999985099,"fetchStart":509.8999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":509.8999999985099,"responseEnd":897.6999999992549,"responseStart":897.6999999992549,"secureConnectionStart":509.8999999985099},{"duration":391.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":510.09999999962747,"connectEnd":510.09999999962747,"connectStart":510.09999999962747,"domainLookupEnd":510.09999999962747,"domainLookupStart":510.09999999962747,"fetchStart":510.09999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":510.09999999962747,"responseEnd":901.5999999996275,"responseStart":901.5999999996275,"secureConnectionStart":510.09999999962747},{"duration":391.80000000074506,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":510.2999999988824,"connectEnd":510.2999999988824,"connectStart":510.2999999988824,"domainLookupEnd":510.2999999988824,"domainLookupStart":510.2999999988824,"fetchStart":510.2999999988824,"redirectEnd":0,"redirectStart":0,"requestStart":510.2999999988824,"responseEnd":902.0999999996275,"responseStart":902.0999999996275,"secureConnectionStart":510.2999999988824},{"duration":392,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":510.3999999985099,"connectEnd":510.3999999985099,"connectStart":510.3999999985099,"domainLookupEnd":510.3999999985099,"domainLookupStart":510.3999999985099,"fetchStart":510.3999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":510.3999999985099,"responseEnd":902.3999999985099,"responseStart":902.3999999985099,"secureConnectionStart":510.3999999985099},{"duration":563.8000000007451,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":510.69999999925494,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":510.69999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1074.5,"responseStart":0,"secureConnectionStart":0},{"duration":392,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":510.8999999985099,"connectEnd":510.8999999985099,"connectStart":510.8999999985099,"domainLookupEnd":510.8999999985099,"domainLookupStart":510.8999999985099,"fetchStart":510.8999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":510.8999999985099,"responseEnd":902.8999999985099,"responseStart":902.8999999985099,"secureConnectionStart":510.8999999985099},{"duration":563.5999999996275,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":511.09999999962747,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":511.09999999962747,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1074.699999999255,"responseStart":0,"secureConnectionStart":0},{"duration":392.19999999925494,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":511.19999999925494,"connectEnd":511.19999999925494,"connectStart":511.19999999925494,"domainLookupEnd":511.19999999925494,"domainLookupStart":511.19999999925494,"fetchStart":511.19999999925494,"redirectEnd":0,"redirectStart":0,"requestStart":511.19999999925494,"responseEnd":903.3999999985099,"responseStart":903.3999999985099,"secureConnectionStart":511.19999999925494},{"duration":1360.4000000003725,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":516.8999999985099,"connectEnd":516.8999999985099,"connectStart":516.8999999985099,"domainLookupEnd":516.8999999985099,"domainLookupStart":516.8999999985099,"fetchStart":516.8999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":516.8999999985099,"responseEnd":1877.2999999988824,"responseStart":1877.2999999988824,"secureConnectionStart":516.8999999985099},{"duration":1360.300000000745,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":517.3999999985099,"connectEnd":517.3999999985099,"connectStart":517.3999999985099,"domainLookupEnd":517.3999999985099,"domainLookupStart":517.3999999985099,"fetchStart":517.3999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":517.3999999985099,"responseEnd":1877.699999999255,"responseStart":1877.699999999255,"secureConnectionStart":517.3999999985099},{"duration":714.3000000007451,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1144.2999999988824,"connectEnd":1144.2999999988824,"connectStart":1144.2999999988824,"domainLookupEnd":1144.2999999988824,"domainLookupStart":1144.2999999988824,"fetchStart":1144.2999999988824,"redirectEnd":0,"redirectStart":0,"requestStart":1144.2999999988824,"responseEnd":1858.5999999996275,"responseStart":1858.5999999996275,"secureConnectionStart":1144.2999999988824},{"duration":606.0999999996275,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1342,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1342,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1948.0999999996275,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":309,"responseStart":505,"responseEnd":515,"domLoading":508,"domInteractive":1902,"domContentLoadedEventStart":1903,"domContentLoadedEventEnd":1945,"domComplete":3761,"loadEventStart":3761,"loadEventEnd":3763,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1883.8999999985099},{"name":"bigPipe.sidebar-id.end","time":1884.699999999255},{"name":"bigPipe.activity-panel-pipe-id.start","time":1884.8999999985099},{"name":"bigPipe.activity-panel-pipe-id.end","time":1889},{"name":"activityTabFullyLoaded","time":1952}],"measures":[],"correlationId":"78b75e535d638d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":21,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}