Issue Details (XML | Word | Printable)

Key: CONF-10359
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Laurent Mélon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence

http.proxyPort System property is ignored

Created: 03/Jan/08 06:57 AM   Updated: 03/Jan/08 09:18 PM
Component/s: Integration with other products, Macros - RSS Macro, Plugins
Affects Version/s: 2.7
Fix Version/s: 2.7.1

Time Tracking:
Original Estimate: 1 hour
Original Estimate - 1 hour
Remaining Estimate: 1 hour
Remaining Estimate - 1 hour
Time Spent: Not Specified
Remaining Estimate - 1 hour

Environment: Suse Linux - Confluence Standalone distribution

Participants: Laurent Mélon
Since last comment: 39 weeks, 5 days ago
Internal Complexity: 1
Resolution Date: 03/Jan/08 09:18 PM
Internal Value: 3
Labels:


 Description  « Hide
The system property "http.proxyPort" (passed on the command line as "-Dhttp.proxyPort") is ignored. Whatever its value, confluence only try and connect to port 80 of the specified proxy. In consequence, RSS feed as well as plugin management don't work.

After a short investigation I found a bug in the "com.atlassian.confluence.util.http.httpclient.HttpClientHttpRetrievalService" class:

int port = 80;
            try
            {
            	Integer.parseInt(System.getProperty("http.proxyPort", "80"));
            }
            catch (NumberFormatException e)
            {
                log.warn("System property 'http.proxyPort' is not a number. Defaulting to 80.");
            }

            client.getHostConfiguration().setProxy(host, port);

The return value of parseInt should be stored in the "port" local variable.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.