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

XID.toString broken: indexing mistake in array

    XMLWordPrintable

Details

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

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: