Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2284

XID.toString broken: indexing mistake in array

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.17.15
    • Fix Version/s: 4.17.24
    • Component/s: None
    • Labels:
      None
    • Environment:

      EAP 6.2.4 with JBoss JTS module in version 4.17.15

      Description

      com.arjuna.ats.internal.jta.xa.XID

      public String toString ()
      {
      //...
      stringBuilder.append(", ");
      for (int i = 0; i < bqual_length; i++)

      { stringBuilder.append(gtrid_length+data[i]); }


      //...
      }

      correct: stringBuilder.append(data[i+gtrid_length]);

      The result is, that the Xid instances logged in log files are corrupted and multiple different Xid share the same String representation, which makes the logging information unusable

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tomjenkinson Thomas Jenkinson
                Reporter:
                cvk Christian von Kutzleben
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: