Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.0.32, 10.1.31, 10.2.13, 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
-
None
Description
Customer trying to do the following:
INSERT INTO `t1` VALUES (1,'',NULL,38391,'2017-06-24 07:35:28');
|
update t1 set directory = AES_ENCRYPT(CONVERT('test stringrererejrjerjehrjekhrjkehrjkehrkjehrjkerhkjehrjekrhkjehrkjerhjkehrkjehrkjehrjkehrjkehrjkehrjkerjkehrjkehrjkehrjke rekjhrejrejhrjehgrehjgrhjerjhegrjherejhgrjhegrjehgrjhegrejhrgjehgrjhegrjhegrjhergjhegrjhegrhjegrjerhthkjjkdhjkgdfjkgjkdgdjkfjkhgjkfdhjgjkfdghkjdfghkjfdghfjkdghkdjfghdkjfghfjkdghfkjdghkjfdghfkjdghfkdjghfkjdghfdjkghjkdfhgdfjkghfjkdghfjkdghfjdkghfjkdghkfjdghfkjdghfkjdghkjdfghfjdkghjkfdghkjdfhgjkdfhgjkfdhgkjfdghkfjdhgkjfdgdjkejktjherjthkjrethkjrethjkerthjkerhtjkerhtkjerhtjkerhtjkerhtjkrehtkjerhtkjrehtjkrehtkjrehtkjerhtkjerhtjkrehtkjrehtjkrehtkjrethjkrethkjrehtkjethjkerhtjkrehtjkretkjerhtkjrehtjkerhtjkrehtjrehtkjrekjtrfgdsfgdhjsghjgfdhjsfhjdfgdhjshjdshjfghjdsfgjhsfgjhsdfgjhdsfgjdhsfgsjhfgjhsdfgsdjhfgjdhsfdjshfgdsjhfgjsdhfdjshfgdjhsfgdjshfgjdhsfgjhsdfgjhsdgfjhsdgfjhdsgfjhsgfjhsdgfjhdsgfhjsdehkjthrkjethjkre' USING latin1), '95F5A1F52A554'), last_update= NOW();
|
Table definition:
Create Table: CREATE TABLE `t1` (
|
`id` int(11) NOT NULL,
|
`session_id` varchar(255) DEFAULT NULL,
|
`directory` mediumtext,
|
`checksum` int(10) DEFAULT NULL,
|
`last_update` datetime DEFAULT NULL,
|
PRIMARY KEY (`id`),
|
KEY `lastupdate` (`last_update`)
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
The above update saves corrupted data.
- On 10.0 it saves NULL
- On 10.1 and 10.2 it saves an encrypted version of the empty string
- This only happens when UPDATING; running SELECT AES_ENCRYPT.(CONVERT(...)) works fine!
- It appears to work fine up to some length of the string to be converted (issue does not happen if the string fed to CONVERT() is less than 700 chars or so)
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Customer trying to do the following:
{code} update t1 set directory = AES_ENCRYPT(CONVERT('test stringrererejrjerjehrjekhrjkehrjkehrkjehrjkerhkjehrjekrhkjehrkjerhjkehrkjehrkjehrjkehrjkehrjkehrjkerjkehrjkehrjkehrjke rekjhrejrejhrjehgrehjgrhjerjhegrjherejhgrjhegrjehgrjhegrejhrgjehgrjhegrjhegrjhergjhegrjhegrhjegrjerhthkjjkdhjkgdfjkgjkdgdjkfjkhgjkfdhjgjkfdghkjdfghkjfdghfjkdghkdjfghdkjfghfjkdghfkjdghkjfdghfkjdghfkdjghfkjdghfdjkghjkdfhgdfjkghfjkdghfjkdghfjdkghfjkdghkfjdghfkjdghfkjdghkjdfghfjdkghjkfdghkjdfhgjkdfhgjkfdhgkjfdghkfjdhgkjfdgdjkejktjherjthkjrethkjrethjkerthjkerhtjkerhtkjerhtjkerhtjkerhtjkrehtkjerhtkjrehtjkrehtkjrehtkjerhtkjerhtjkrehtkjrehtjkrehtkjrethjkrethkjrehtkjethjkerhtjkrehtjkretkjerhtkjrehtjkerhtjkrehtjrehtkjrekjtrfgdsfgdhjsghjgfdhjsfhjdfgdhjshjdshjfghjdsfgjhsfgjhsdfgjhdsfgjdhsfgsjhfgjhsdfgsdjhfgjdhsfdjshfgdsjhfgjsdhfdjshfgdjhsfgdjshfgjdhsfgjhsdfgjhsdgfjhsdgfjhdsgfjhsgfjhsdgfjhdsgfhjsdehkjthrkjethjkre' USING latin1), '95F5A1F52A554'), last_update= NOW(); {code} Table definition: {code} Create Table: CREATE TABLE `t1` ( `id` int(11) NOT NULL, `session_id` varchar(255) DEFAULT NULL, `directory` mediumtext, `checksum` int(10) DEFAULT NULL, `last_update` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `lastupdate` (`last_update`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 {code} The above update saves corrupted data. - On 10.0 it saves NULL - On 10.1 and 10.2 it saves an encrypted version of the empty string - This only happens when UPDATING; running SELECT AES_ENCRYPT.(CONVERT(...)) works fine! - It appears to work fine up to some length of the string to be converted (issue does not happen if the string fed to CONVERT() is less than 700 chars or so) |
Customer trying to do the following:
{code} INSERT INTO `t1` VALUES (1,'',NULL,38391,'2017-06-24 07:35:28'); update t1 set directory = AES_ENCRYPT(CONVERT('test stringrererejrjerjehrjekhrjkehrjkehrkjehrjkerhkjehrjekrhkjehrkjerhjkehrkjehrkjehrjkehrjkehrjkehrjkerjkehrjkehrjkehrjke rekjhrejrejhrjehgrehjgrhjerjhegrjherejhgrjhegrjehgrjhegrejhrgjehgrjhegrjhegrjhergjhegrjhegrhjegrjerhthkjjkdhjkgdfjkgjkdgdjkfjkhgjkfdhjgjkfdghkjdfghkjfdghfjkdghkdjfghdkjfghfjkdghfkjdghkjfdghfkjdghfkdjghfkjdghfdjkghjkdfhgdfjkghfjkdghfjkdghfjdkghfjkdghkfjdghfkjdghfkjdghkjdfghfjdkghjkfdghkjdfhgjkdfhgjkfdhgkjfdghkfjdhgkjfdgdjkejktjherjthkjrethkjrethjkerthjkerhtjkerhtkjerhtjkerhtjkerhtjkrehtkjerhtkjrehtjkrehtkjrehtkjerhtkjerhtjkrehtkjrehtjkrehtkjrethjkrethkjrehtkjethjkerhtjkrehtjkretkjerhtkjrehtjkerhtjkrehtjrehtkjrekjtrfgdsfgdhjsghjgfdhjsfhjdfgdhjshjdshjfghjdsfgjhsfgjhsdfgjhdsfgjdhsfgsjhfgjhsdfgsdjhfgjdhsfdjshfgdsjhfgjsdhfdjshfgdjhsfgdjshfgjdhsfgjhsdfgjhsdgfjhsdgfjhdsgfjhsgfjhsdgfjhdsgfhjsdehkjthrkjethjkre' USING latin1), '95F5A1F52A554'), last_update= NOW(); {code} Table definition: {code} Create Table: CREATE TABLE `t1` ( `id` int(11) NOT NULL, `session_id` varchar(255) DEFAULT NULL, `directory` mediumtext, `checksum` int(10) DEFAULT NULL, `last_update` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `lastupdate` (`last_update`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 {code} The above update saves corrupted data. - On 10.0 it saves NULL - On 10.1 and 10.2 it saves an encrypted version of the empty string - This only happens when UPDATING; running SELECT AES_ENCRYPT.(CONVERT(...)) works fine! - It appears to work fine up to some length of the string to be converted (issue does not happen if the string fed to CONVERT() is less than 700 chars or so) |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.0.32 [ 22504 ] | |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.0 [ 16000 ] | |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.0.33 [ 22552 ] | |
Assignee | Alexander Barkov [ bar ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
issue.field.resolutiondate | 2018-03-26 06:34:41.0 | 2018-03-26 06:34:41.04 |
Fix Version/s | 10.0.35 [ 22912 ] | |
Fix Version/s | 10.1.32 [ 22908 ] | |
Fix Version/s | 10.2.14 [ 22911 ] | |
Fix Version/s | 10.3.6 [ 23003 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Fix Version/s | 10.1.33 [ 22909 ] | |
Fix Version/s | 10.2.15 [ 23006 ] | |
Fix Version/s | 10.1.32 [ 22908 ] | |
Fix Version/s | 10.2.14 [ 22911 ] |
Workflow | MariaDB v3 [ 86128 ] | MariaDB v4 [ 153994 ] |
Zendesk Related Tickets | 181911 |
BTW – it USED to work in prior versions of the main versions:
10.0.12 OK
10.0.33 NOT OK
10.1.16 OK
10.1.31 NOT OK
10.3.0 OK