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

           Summary: Connector#setProperty(String, String) does not set
                    explicit property values
           Product: Tomcat 6
           Version: 6.0.29
          Platform: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Connectors
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When calling the setProperty(String, String) method in Connector.java (line 316
in 6.0.29), the explicit property values are not set.

For instance, if I call connector.setProperty("proxyName", "my.host.com") then
check connector.getProxyName() it does not return "my.host.com".  I've also
tested "proxyPort" / getProxyPort -- same issue.

Looking at the code, setProperty sets replacements hashmap and the value in the
protocolhandler.  Individual explicit property setter methods, e.g.
setProxyName(String) set both the individual field value (this.proxyName) AND
invoke setProperty.

However, looking at the getters for the individual properties, shows they only
check the individual fields and not the replacements hashmap or the protocol
handler value.  Therefore the above series (call to setProperty("proxyName"...)
and then getProxyName()) fails.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to