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

Bug 132614

Summary: azureus-bin-2.4.0.1 cannot handle empty string in command line
Product: Gentoo Linux Reporter: B. Keroack <mutualaid>
Component: Current packagesAssignee: Petteri Räty (RETIRED) <betelgeuse>
Status: RESOLVED FIXED    
Severity: normal CC: buddabrod, cardoe, cyril.jaquier, ladanyi, world.root
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 113389    
Bug Blocks:    

Description B. Keroack 2006-05-07 14:05:53 UTC
In the current /usr/bin/azureus startup script (2.4.0.1), the final command line is as follows:

java -cp $(java-config -p systray4j,azureus-bin 2>/dev/null) -Djava.library.path="${AZDIR}" org.gudy.azureus2.ui.swt.Main "$1"

When this script is called with no arguments, the $1 resolves to an empty string ("") which causes Azureus to throw an error after startup complaining that it can't open torrent file "".

The startup script should be changed to omit arguments if empty.
Comment 1 Andrew Yates 2006-05-08 16:29:15 UTC
this is a dupe of bug 126822, which has a fix
Comment 2 B. Keroack 2006-05-08 17:26:05 UTC
That bug is about something different, but they do address this problem in the comments.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2006-06-12 22:06:41 UTC
yes. This is super annoying... Especially with the bug where pop ups don't go away... Let's get this in!!
Comment 4 Dennis Brendel 2006-07-20 12:22:45 UTC
Found a solution on http://suksit.blogspot.com/2006/04/fixing-azureus-error-messages.html

Just replace that last line with 
if [ "$1" == "" ]; then
java -cp $(java-config -p systray4j,azureus-bin 2>/dev/null) -Djava.library.path="${AZDIR}" org.gudy.azureus2.ui.swt.Main
else
java -cp $(java-config -p systray4j,azureus-bin 2>/dev/null) -Djava.library.path="${AZDIR}" org.gudy.azureus2.ui.swt.Main "$1"
fi
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2006-08-05 10:04:02 UTC
This is fixed in dev-java/azureus-2.4.0.2-r1 

betelgeuse@pena /usr/portage/dev-java/swt $ azureus
using /home/betelgeuse/.azureus/gentoo.config
${UI_OPTIONS} is no longer supported. ${UI} should be used instead instead
Unsetting ${UI_OPTIONS}
changeLocale: *Default Language* != English (United States). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
DEBUG::Sat Aug 05 19:15:05 EEST 2006::org.gudy.azureus2.core3.download.impl.DownloadManagerImpl::readTorrent::677:
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-08-05 10:06:01 UTC
Plah. I meant net-p2p/azureus of course. Leaving this open until the deprecation is done.
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2007-02-10 21:31:24 UTC
(In reply to comment #6)
> Plah. I meant net-p2p/azureus of course. Leaving this open until the
> deprecation is done.
> 

Deprecation done.