Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21766

Forbid XID with empty 'gtrid'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.5.2
    • Component/s: XA
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              svoj Sergey Vojtovich
              Reporter:
              Elkin Andrei Elkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: