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

XID.toString broken: indexing mistake in array

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.17.24
    • 4.17.15
    • None
    • None

      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

            thjenkin@redhat.com Tom Jenkinson
            cvk_jira Christian von Kutzleben (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: