Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 227252 - [Help] Enhancement: Remote Assistance: Add HTTPS support
Summary: [Help] Enhancement: Remote Assistance: Add HTTPS support
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.6 M6   Edit
Assignee: Jim Perry CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-15 22:22 EDT by Rich Watts CLA
Modified: 2010-11-02 18:32 EDT (History)
2 users (show)

See Also:
rwatts: review?


Attachments
Patch for HTTPS support (61.49 KB, text/plain)
2010-02-02 00:48 EST, Jim Perry CLA
no flags Details
Patch including doc patch (62.34 KB, patch)
2010-02-04 11:12 EST, Jim Perry CLA
no flags Details | Diff
Patch for HTTPS support including doc patch, 2010 copyrights, support for no protocol specified (72.53 KB, patch)
2010-02-04 16:35 EST, Jim Perry CLA
cgold: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Watts CLA 2008-04-15 22:22:13 EDT
Build ID: Eclipse 3.4 M6

Steps To Reproduce:
try to access a remote information center that is configured with secure HTTP. 


More information:
When building the remote assistance url, we have hard coded the HTTP protocol. If the site is secure (and there are several reasons to secure a remote IC).

Additional information:
I'm not sure we can get this done for V3.4. We would also need to surface the property (secure http) to the preferences ui.
Comment 1 Rich Watts CLA 2008-04-15 22:27:49 EDT
Changing from a defect to an enhancement.
Comment 2 Chris Goldthorpe CLA 2008-04-15 22:52:37 EDT
I don't think we have time to do this for Eclipse 3.4.
Comment 3 Jim Perry CLA 2010-02-02 00:48:02 EST
Created attachment 157868 [details]
Patch for HTTPS support

There may be some doc impact but the code patch is here.

Tested HTTPS scenarios and verified JUnits still pass

Patch includes patch for:

org.eclipse.help.base
org.eclipse.help.ui
org.eclipse.ua.tests
Comment 4 Chris Goldthorpe CLA 2010-02-02 17:14:46 EST
Can you create the doc patch also? The page that needs to change is /org.eclipse.platform.doc.isv/guide/ua_help_setup_preferences.htm.
Comment 5 Jim Perry CLA 2010-02-04 11:12:45 EST
Created attachment 158192 [details]
Patch including doc patch

This patch includes all of the fixed in the previous patch as well as the doc fix.
Comment 6 Chris Goldthorpe CLA 2010-02-04 12:42:22 EST
I'm almost ready to commit the files, can you first make sure all of the source files have a 2010 copyright. In the documentation page you should indicate that if no protocol is specified http will be used. Also in the doc page you need to change "The 5 remote help preferences below" to "The 6 remote help preferences below" . Once I have those changes I can commit everything.
Comment 7 Jim Perry CLA 2010-02-04 16:35:40 EST
Created attachment 158235 [details]
Patch for HTTPS support including doc patch, 2010 copyrights, support for no protocol specified

This patch contains all of the fixes in the previous patches, and also fixes for:

- 2010 Copyright in all changed files

- Doc fixes for no protocol specificed and 6 remote preferences

- Support for using http if no protocol specified
Comment 8 Chris Goldthorpe CLA 2010-02-05 13:04:37 EST
Patch committed to HEAD, Fixed
Comment 9 Thomas Watson CLA 2010-11-02 10:00:50 EDT
Can someone explain why you need to set the system property:

System.setProperty( "java.protocol.handler.pkgs" , "javax.net.ssl" );

At a minimum I think you need to check for an existing "java.protocol.handler.pkgs" property and append "|javax.net.ssl" if it already exists.
Comment 10 Thomas Watson CLA 2010-11-02 10:29:27 EDT
Setting java.protocol.handler.pkgs=javax.net.ssl implies that we expect the class javax.net.ssl.https.Handler to exist for handling https protocols.  What version of java does this exist?
Comment 11 Jim Perry CLA 2010-11-02 16:41:40 EDT
Removing the line:
 
System.setProperty( "java.protocol.handler.pkgs" , "javax.net.ssl" );

Causes remote help to still work (on Windows).  So at minimum, the line may not be required.  I will investigate Linux and Solaris to verify that the handler package is supported there as well.
Comment 12 Chris Goldthorpe CLA 2010-11-02 18:32:38 EDT
I've opened Bug 329280 to track the java.protocol.handler.pkgs issue. We can move the discussion there.