matthiasblaesing / netbeans-mantis-integration

Integrate the Mantis bugtracker system into netbeans
22 stars 6 forks source link

Proxy authentication problem #13

Closed jmtalarn closed 10 years ago

jmtalarn commented 10 years ago

Hi,

it fails when I try the check adding the repository Failed request - check username/password

I'm behind a proxy properly configured in the internet options used in Netbeans IDE.

This are the IDE log traces:

INFO [eu.doppelhelix.netbeans.mantisintegration.repository.MantisRepositoryController]: AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (407)Proxy Authentication Required faultActor: faultNode: faultDetail: {}:return code: 407 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd&quot;&gt; <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: Cache Access Denied</title> <style type="text/css"><!-- /* Stylesheet for Squid Error pages Adapted from design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License / /_ Page basics */

matthiasblaesing commented 10 years ago

Thank you for the report! I think I got the problem cornered (not yet solved though!). Netbeans exposes the current proxy settings as system properties, but it looks as if the username and password are not exposed that way.

To work around this, you can try if setting the system properties for http.proxyUser and http.proxyPassword following (at least from my investigation, this should work!):

http://wiki.netbeans.org/FaqStartupParameters

netbeans -J-Dhttp.proxyUser=<username> -J-Dhttp.proxyPassword=<password>

I'll have to find a way to supply axis (the underlying http library) with the correct information.

matthiasblaesing commented 10 years ago

Ok - I set up a test system and tracked the necessary changes down.

This is a test version for netbeans 7.4

https://github.com/matthiasblaesing/netbeans-mantis-integration/wiki/MantisIntegration-0.8.1-SNAPSHOT.nbm

Please install it and check if it works. Please make sure that you restart after installing the updated module.

jmtalarn commented 10 years ago

Hi matthiasblaesing!

Thank you, this is awesome! It works like a charm.

I tried the command line solution but it doesn't work.

Thank you!

matthiasblaesing commented 10 years ago

Thanks for testing - I decided to cut a quick release from this. This is most probably the last version for 7.4. The changes for 8.0 (which carries finally a public api) are already in master and are waiting for the netbeans 8 release. The fix for this problem is merged there already.

Thanks again!