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

XID.toString broken: indexing mistake in array

    XMLWordPrintable

    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

      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

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

              Dates

              Created:
              Updated:
              Resolved: