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

Body text property replacement fails [jws3]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.1.7.DR1
    • 3.1.6.ER1
    • tomcat7, tomcat8
    • None
    • 4
    • +

    Description

      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>
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-csutherl Coty Sutherland
              mmadzin@redhat.com Matus Madzin
              Matus Madzin Matus Madzin
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: