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: dev@tomcat.apache.org
        ReportedBy: apa...@lonbinder.com


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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to