[MDEV-21766] Forbid XID with empty 'gtrid' Created: 2020-02-18  Updated: 2023-08-17  Resolved: 2020-02-28

Status: Closed
Project: MariaDB Server
Component/s: XA
Affects Version/s: None
Fix Version/s: 10.5.2

Type: Bug Priority: Major
Reporter: Andrei Elkin Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-742 LP:803649 - Xa recovery failed on cli... Closed
relates to MDEV-31928 Assertion `xid->gtrid_length + xid->b... Closed

 Description   

XID that has empty 'gtrid' or 'bqual' is not permitted by the XA spec

struct xid_t {
long formatID;
 /∗ format identifier ∗/
long gtrid_length; /∗ value 1-64 ∗/
long bqual_length; /∗ value 1-64 ∗/
char data[XIDDATASIZE];
};
typedef struct xid_t XID;

but is accepted. E.g

--error 0
XA START '',''

Notice that in the following both

XA START 'something'; /* or */
XA START 'something','';

bqual remains empty which is OK.


Generated at Thu Feb 08 09:09:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.