Community
Participate
Working Groups
Build ID: Eclipse 3.3 Steps To Reproduce: Env: Suse Linux ED10 Eclipse: 3.3 SSL website (https://bugs.eclipse.org/bugs) can't visit if Mozilla profile directory doesn't exist(~/.mozilla/eclipse) Steps to reproduce 1. Goto Mozilla profile root directory, rm "eclipse"(or rename) directory if it has. This is to make a clean environment 2. Open Eclipse, show "Internal web browser" from menu Windows ->Show View->Others, "General" catalog. 3. Visit "https://bugs.eclipse.org/bugs". 4. Get two error dialogs, and then SSL is disabled. In another way, if you visit a normal HTTP WebSite(http://www.eclipse.org) at first, then navigate to SSL website, it is ok. The reason is when Mozilla visits SSL site, it persists credentail information at two files(cert8.db & key3.db), but if the Eclipse specified profile directory doesn't exist, it will fail. If we visit HTTP first, Mozilla will try to create "Eclipse" directory, and put "/cache" "history.dat" files on that. So when user visits SSL website firstly on a clean environment, this problem happens. More information: A proposed fix would be update AppFileLocProvider.java file on org.eclipse.swt.browser package, when Mozilla.java calls setProfilePath() method, it should check if it exists, and create it if it doesn't. This can fix the problem, and doesn't impact other functions. void setProfilePath (String path) { profilePath = path; if(profilePath!=null){ File profileF=new File(profilePath); if(profileF.exists()==false){ try{ profileF.mkdir(); }catch(Exception e){ //log some error here. } } } }
Please consider to fix in 3.4, thanks!
Thanks for investigating this! fixed > 1116
*** Bug 217038 has been marked as a duplicate of this bug. ***
*** Bug 226545 has been marked as a duplicate of this bug. ***
Grant: was this change just in org.eclipse.swt.browser.AppFileLocProvider.java? It looks like I may have to back-port this to our 3.3.2 packages in Fedora 9 (https://bugzilla.redhat.com/show_bug.cgi?id=446064).
Yes, that was the only change for this problem.
Can you please post the patch for 3.3.1 ?
Created attachment 107133 [details] patch for 3.3.1