[jbossts-issues] [JBoss JIRA] (JBTM-2284) XID.toString broken: indexing mistake in array

RH Bugzilla Integration (JIRA) issues at jboss.org
Fri Nov 21 11:12:39 EST 2014


     [ https://issues.jboss.org/browse/JBTM-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

RH Bugzilla Integration updated JBTM-2284:
------------------------------------------
        Bugzilla Update: Perform
    Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1166754


> XID.toString broken: indexing mistake in array
> ----------------------------------------------
>
>                 Key: JBTM-2284
>                 URL: https://issues.jboss.org/browse/JBTM-2284
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>    Affects Versions: 4.17.15
>         Environment: EAP 6.2.4 with JBoss JTS module in version 4.17.15
>            Reporter: Christian von Kutzleben
>            Assignee: Tom Jenkinson
>             Fix For: 4.17.24
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jbossts-issues mailing list