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

BasicXARecovery class calculates the name of the XA recovery properties file incorrectly if a number of connections is included

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: 5.9.6.Final
    • Fix Version/s: 5.9.7.Final
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Include a number of connections in the com.arjuna.ats.jta.recovery.XAResourceRecovery1 property value e.g.

      -Dcom.arjuna.ats.jta.recovery.XAResourceRecovery1=com.arjuna.ats.internal.jdbc.recovery.BasicXARecovery;abs://%CATALINA_HOME%/conf/xa-recovery-properties.xml;1

      Show
      Include a number of connections in the com.arjuna.ats.jta.recovery.XAResourceRecovery1 property value e.g. -Dcom.arjuna.ats.jta.recovery.XAResourceRecovery1=com.arjuna.ats.internal.jdbc.recovery.BasicXARecovery;abs://%CATALINA_HOME%/conf/xa-recovery-properties.xml;1

      Description

      The procedure initialise of BasicXARecovery incorrectly calculates the name of the XA recovery properties file if a number of connections is included

      The current code is
      fileName = parameter.substring(0, breakPosition - 1);

      The correct code should be
      fileName = parameter.substring(0, breakPosition);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ochaloup Ondrej Chaloupka
                Reporter:
                simon.dallaway Simon Dallaway
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: