This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218755

Summary: openNativeFileManager should not use path with extension name
Product: ide Reporter: Vladimir Riha <vriha>
Component: ExtbrowserAssignee: Denis Anisimov <ads>
Status: VERIFIED FIXED    
Severity: normal CC: mfukala, mmirilovic, pjiricka, vriha
Priority: P1    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Windows 7

Description Vladimir Riha 2012-09-21 11:09:24 UTC
Created attachment 124700 [details]
Windows 7

If Chrome extension is not installed, then the "Install Chrome Extension" is opened with a clickable link "locate".

This link for me opens Chromium (no idea why) on Ubuntu and screenshot shows what happens on Windows 7. It is probably specific to each particular configuration, so the dialog should also tell path to locate the extension manually if needed.


Product Version: NetBeans IDE 7.3 Beta (Build 201209201306)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-09-21 11:14:18 UTC
Please ignore description, it is incomplete. After more investigation, the problem is that openNativeFileManager() in 

extbrowser/src/org/netbeans/modules/extbrowser/plugins/chrome/ChromeInfoPanel.java

uses URL with extension name. So on linux the result command is

xdg-open /home/vriha/Downloads/netbeans/ide/modules/lib/netbeans-ros-chrome-plugin.crx

which is incorrect it should be


xdg-open /home/vriha/Downloads/netbeans/ide/modules/lib/


The same on Windows. Please fix this
Comment 2 Denis Anisimov 2012-09-21 12:36:59 UTC
web-main#a43db7141df4
Comment 3 Vladimir Riha 2012-09-21 14:53:07 UTC
I can confirm that the fix works on Windows 7, on my Ubuntu it opens Sublime Text2 editor, but it could be my own problem. Once I get home (about 9pm) I'll try it on mine personal Ubuntu configuration. Would be great if someone else could try it as well.
Comment 4 Vladimir Riha 2012-09-21 15:02:57 UTC
It works for Marek on MacOS as well so I guess I can verify it and the problem is only with my local linux.


Thanks


Product Version: NetBeans IDE Dev (Build web-main-8624-on-20120921)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Tomas Mysik 2012-09-21 15:18:09 UTC
Just verified it on Linux (with KDE) - file manager opened with directory:

/.../netbeans/ide/modules/lib/

Product Version: NetBeans IDE Dev (Build 20120920-dc659e93b736)
Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01
System: Linux version 3.2.0-30-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 6 Tomas Mysik 2012-09-21 15:18:32 UTC
This issue was on all platforms.
Comment 7 Marian Mirilovic 2012-09-21 15:25:13 UTC
Denis, 
could you please backport the fix into releases/release73_beta branch ? Thanks in advance.
Comment 8 Tomas Mysik 2012-09-21 15:38:14 UTC
(In reply to comment #7)
> Denis, 
> could you please backport the fix into releases/release73_beta branch ? Thanks
> in advance.

I just did it.

http://hg.netbeans.org/releases/rev/b6aa7cadb197
Comment 9 Quality Engineering 2012-09-22 02:16:43 UTC
Integrated into 'main-golden', will be available in build *201209220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a43db7141df4
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#218755 - openNativeFileManager should not use path with extension name
Comment 10 Marian Mirilovic 2012-09-22 09:44:46 UTC
http://hg.netbeans.org/releases/rev/b6aa7cadb197
Comment 11 Vladimir Riha 2012-09-24 11:27:24 UTC
verified in Beta

Product Version: NetBeans IDE 7.3 Beta (Build 201209232010)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)