Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2795

XAManagedConnectionFactory Invalid String manipulation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-3.2.8.SP1
    • JBossAS-3.2.8 Final
    • JCA service
    • None

      The class XAManagedConnectionFactory uses the replace method of the Strings utility class to replace all single backslashes with double backslashes, the replace method is initially appending the double backslash to the string before the replacement takes place - the end result is all passwords end up with the additional appended backslashes causing authentication with the DB to fail.

      In Strings.java line 768

      JBossStringBuilder buffer = new JBossStringBuilder(string + replacement);

      needs to be replaced with

      JBossStringBuilder buffer = new JBossStringBuilder(string);

            darran.lofthouse@redhat.com Darran Lofthouse
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: