Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1153

Body text property replacement fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.0.2.DR1
    • JWS 5.0.0 SP1 CR1
    • tomcat
    • 4
    • ?

      Digester.updateBodyText() has a piece of Tomcat code that is incompatible with the loop that was introduced for property replacement. Note: this problem only affects body text (always in web.xml), and not property replacement in server.xml attributes.

      Change needed is, at the end of Digester.updateBodyText() replace this block:

              if (out.equals(in)) {
                  // No substitutions required. Don't waste memory creating
                  // a new buffer
                  return bodyText;
              } else {
                  return new StringBuilder(out);
              }
      

      with this return:

              return new StringBuilder(out);
      

      Testing, in web.xml, something like:

      web.xml
          <init-param>
              <param-name>foo</param-name>
              <param-value>${somesystemproperty}</param-value>
          </init-param>
      

            rhn-support-csutherl Coty Sutherland
            rmaucher Remy Maucherat
            Marek Czernek Marek Czernek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: