LigthweightHttpWagon resets system proxy properties

View: New views
2 Messages — Rating Filter:   Alert me  

LigthweightHttpWagon resets system proxy properties

by henrik.sorensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi There,

Using Maven 2.1, I found that some fishy is going on in LightweightHttpWagon.java.

I carefully traced the setting and resetting of the http.proxy system properties from within the method openConnection. To my surprise the system properties were set to empty, so a resulting request for data failed.

Has somebody else expirienced similar effects ?

thanks for your help
Henrik Sorensen


---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-users-unsubscribe@...
For additional commands, e-mail: wagon-users-help@...


Re: LigthweightHttpWagon resets system proxy properties

by brettporter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

They should be set on connection and unset on disconnection to try and  
minimise problems when reused.

At what point is it being used without being set?

On 15/05/2009, at 11:25 PM, <henrik.sorensen@...> <henrik.sorensen@...
 > wrote:

> Hi There,
>
> Using Maven 2.1, I found that some fishy is going on in  
> LightweightHttpWagon.java.
>
> I carefully traced the setting and resetting of the http.proxy  
> system properties from within the method openConnection. To my  
> surprise the system properties were set to empty, so a resulting  
> request for data failed.
>
> Has somebody else expirienced similar effects ?
>
> thanks for your help
> Henrik Sorensen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wagon-users-unsubscribe@...
> For additional commands, e-mail: wagon-users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-users-unsubscribe@...
For additional commands, e-mail: wagon-users-help@...