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 142475 - Grails Plugin dialog doesn't work behind a proxy
Summary: Grails Plugin dialog doesn't work behind a proxy
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-31 20:53 UTC by klauern
Modified: 2009-02-19 20:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
this patch loads netbeans proxy prefences before to execute a grails command (5.25 KB, text/plain)
2008-08-04 10:40 UTC, calavera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description klauern 2008-07-31 20:53:37 UTC
I couldn't find this issue when I searched, so I will post it.  I am behind a corporate proxy, and when I try to use the
Grails Plugin dialog, I get a simple error:

Plugins list cache does not exist or is broken, recreating ...

Plug-ins available in the Grails repository are listed below:
-------------------------------------------------------------

Unable to list plug-ins, please check you have a valid internet connection

To find more info about plugin type 'grails plugin-info [NAME]'
To install type 'grails install-plugin [NAME] [VERSION]'
For further info visit http://grails.org/Plugins


I can't imagine my internet connectivity being broken (since I'm submitting this bug right now with the computer, but I
do believe it is a proxy issue, since I've had problems with this in the past with the Ruby plugin.  I have NetBeans set
up with the proxy, so getting plugins from NetBeans itself works, as well as using Ruby's Gem utility from NetBeans as well.
Comment 1 calavera 2008-08-04 10:40:18 UTC
Created attachment 66458 [details]
this patch loads netbeans proxy prefences before to execute a grails command
Comment 2 Petr Hejl 2008-12-02 17:23:33 UTC
Unfortunately this patch won't solve the problem afaik.

There is a "grails set-proxy" command that will let you configure the proxy (so this is workaround for the reporter).
However this configures the proxy for the whole user's grails environment (not just single project) and I'm afraid it's
too expensive and inconsistent to invoke it before every project.

To configure proxy we can use JAVA_OPTS env variable, but if the user configured the proxy via set-proxy the latter will
be preferred anyway.

I'll investigate it bit more but right now I would suggest to detect grails proxy settings and in case there is any such
configuration to notify user and let him choose whether he want to delete this configuration (and use the ide settings)
or leave the grails settings (overriding those defined in the ide). Such dialog should have option "remember my
decision" option.

There are also similar options like to offer reconfiguration of grails proxy settings to those configured in the IDE.
Comment 3 Petr Hejl 2008-12-02 17:27:16 UTC
So the problem is that we have two proxy settings (grails, ide) and we can't freely choose. In case grails proxy is
configured it will be always used no matter what we set in JAVA_OPTS.
Comment 4 Petr Hejl 2008-12-02 19:46:29 UTC
I realized that maybe we don't have to introduce bullet proof solution. We can just past IDE proxy settings as
JAVA_OPTS. For user that does not know set-proxy this will work as expected. If the user previously used set-proxy he
made it consciously and configure the proper values, so it will work as well.

If the collision issue became relevant (imo it is corner case now) we can introduce suggested dialog.
Comment 5 Petr Hejl 2008-12-02 20:44:04 UTC
Fixed in main 209720b4c0fc.
Comment 6 Quality Engineering 2008-12-05 06:24:59 UTC
Integrated into 'main-golden', will be available in build *200812050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/209720b4c0fc
User: phejl@netbeans.org
Log: #142475 Grails Plugin dialog doesn't work behind a proxy