Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240365 - sci-geosciences/josm-1.5_p736: josm wrapper script (/usr/bin/josm) does not handle proxy settings correctly
Summary: sci-geosciences/josm-1.5_p736: josm wrapper script (/usr/bin/josm) does not h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-07 10:53 UTC by Markus Wüthrich
Modified: 2008-10-07 23:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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