https://issues.apache.org/bugzilla/show_bug.cgi?id=51249

             Bug #: 51249
           Summary: LogManager doesn't properly handle ${} when replacing
                    property values
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Manager application
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: lavoie.rich...@gmail.com
    Classification: Unclassified


when the LogManager does it's replace of ${property} it doesn't handle properly
the fact that a } could exist before ${.

The indexOf for the char } should be relative to the start position of ${

Example of string : %{custom.property.matching} ${system.property.tomcat}

This would throw an exception about the index } being before ${

This is valid for all the 7.* versions as well as all the 6.* versions
(validated from 6.0.27 and above).

There is not even a way to "escape" the ${} chars if we'd like to output them.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to