Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328643

Summary: Constructor for org.eclipse.help.base.remote.RemoteIC has incorrect variable assignment
Product: [Eclipse Project] Platform Reporter: Jim Perry <perryja>
Component: User AssistanceAssignee: Jim Perry <perryja>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ChrisAustin
Version: 4.1   
Target Milestone: 3.7 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch with the unneeded variable assignment
none
Patch with fix for this.protocol ChrisAustin: iplog+

Description Jim Perry CLA 2010-10-25 14:03:44 EDT
Build Identifier: N20101023-2000

In the class org.eclipse.help.base.remote.RemoteIC, there is an incorrect assignment of this.port to the string HTTP_PROTOCOL.  This must have been put there when we upgraded to support HTTPS protocol.

public RemoteIC(boolean enabled, String name, String host, String path, String port){
		
    	this.enabled = enabled;
	this.name    = name;
	this.host    = host;
	this.path    = path;
	this.port    = port;
	this.port    = PROTOCOL_HTTP;
}


The final line should be removed.

Reproducible: Always

Steps to Reproduce:
1. Open the class org.eclipse.help.base.remote.RemoteIC
2. Inspect the first constructor for the un-needed this.port variable assingment.
3.
Comment 1 Jim Perry CLA 2010-10-25 14:05:12 EDT
Created attachment 181672 [details]
Patch with the unneeded variable assignment
Comment 2 Jim Perry CLA 2010-10-25 14:15:27 EDT
Created attachment 181675 [details]
Patch with fix for this.protocol

Instead of removing the line, it should look like this

 this.protocol    = PROTOCOL_HTTP;


Instead of:

 this.port    = PROTOCOL_HTTP;
Comment 3 Chris Austin CLA 2010-10-26 15:52:34 EDT
Patch committed to HEAD.