[CONJ-711] Xid format id is unsigned integer, currently sending as signed value Created: 2019-06-07 Updated: 2020-08-25 Resolved: 2019-06-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | XA |
| Affects Version/s: | 2.4.0 |
| Fix Version/s: | 2.4.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Quoted from KB:
In XA spec:
JDBC XID format ID is an Integer. (Java Integer is signed 32bit numeric). native Xid format is :
websphere for example create formatID according to this format (https://github.com/OpenLiberty/open-liberty/blob/464735a8588770d8ce055a4505f53c9a029b12ab/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XidImpl.java#L155) So Xid formatId value has better to be sent in hexa. Integer conversion to byte won't then have any signed / unsigned consideration. |