Hi,
I'd like to report an issue I've found with the StarNet.jar utility.
It seems the command line arguments passed to this don't handle spaces in the arguments. I use StarNet.jar to automatically whitelist users and when they have spaces in the user name StarNet.jar always reports "RETURN: [SERVER, Admin command failed: Error packing parameters, 0]".
Using strace, I've determined that my shell is indeed passing the username correctly to java, and it is treating the username as a single argument.
eg :
strace java -jar StarNet.jar 127.0.0.1:4242 password /whitelist_name 'The Poo Master'
This yields :
execve("/usr/share/java/jre1.7.0_21/bin/java", ["/usr/share/java/jre1.7.0_21/bin/"..., "-jar", "StarNet.jar", "127.0.0.1:4242", "password", "/whitelist_name", "The Poo Master"], [/* 16 vars */]) = 0
As you can see, it's parsed the command and determined 'The Poo Master' is indeed one argument. It would seem to me that the fault is within StarNet.jar.
It'd be great if StarNet.jar could handle spaces in the arguments for things like the username.
Thanks,
Mike
I'd like to report an issue I've found with the StarNet.jar utility.
It seems the command line arguments passed to this don't handle spaces in the arguments. I use StarNet.jar to automatically whitelist users and when they have spaces in the user name StarNet.jar always reports "RETURN: [SERVER, Admin command failed: Error packing parameters, 0]".
Using strace, I've determined that my shell is indeed passing the username correctly to java, and it is treating the username as a single argument.
eg :
strace java -jar StarNet.jar 127.0.0.1:4242 password /whitelist_name 'The Poo Master'
This yields :
execve("/usr/share/java/jre1.7.0_21/bin/java", ["/usr/share/java/jre1.7.0_21/bin/"..., "-jar", "StarNet.jar", "127.0.0.1:4242", "password", "/whitelist_name", "The Poo Master"], [/* 16 vars */]) = 0
As you can see, it's parsed the command and determined 'The Poo Master' is indeed one argument. It would seem to me that the fault is within StarNet.jar.
It'd be great if StarNet.jar could handle spaces in the arguments for things like the username.
Thanks,
Mike