Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 240365

Summary: sci-geosciences/josm-1.5_p736: josm wrapper script (/usr/bin/josm) does not handle proxy settings correctly
Product: Gentoo Linux Reporter: Markus Wüthrich <kusi.w>
Component: New packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED FIXED    
Severity: minor CC: sci-geosciences
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markus Wüthrich 2008-10-07 10:53:28 UTC
If the proxy environment variable (http_proxy) is set without the "http://" prefix, then the wrapper script (/usr/bin/josm) set wrong parameters for the java command.

Working example:

if http_proxy=http://yourproxy:80
then proxy_port=80 and proxy_host=yourproxy

Does not work:

if http_proxy=yourproxy:80
then proxy_port=80 and proxy_host=yourproxy:80

Fix for the wrapper script:

Replace: proxy_host=`echo $http_proxy|sed -e 's!.*://\(.*\):.*!\1!g'`
with: proxy_host=`echo $http_proxy|sed -e 's!\(.*://\)\?\(.*\):.*!\2!g'`


Reproducible: Always

Steps to Reproduce:
1.export http_proxy=yourproxy:80
2.josm
3.

Actual Results:  
The josm command hangs endlessly.

Expected Results:  
The application should start.
Comment 1 Hanno Böck gentoo-dev 2008-10-07 23:14:21 UTC
thanks, applied