Bug with StarNet.jar and spaces in arguments

    Joined
    Jun 18, 2013
    Messages
    69
    Reaction score
    13
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    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
     
    Joined
    Jul 4, 2013
    Messages
    124
    Reaction score
    20
    • Community Content - Bronze 1
    • Legacy Citizen 7
    dont use it its retarded, it says to me [SERVER, [ADMIN COMMAND] [ERROR] Player not found: \"CLIENT-ID(-1337) \", 0] all the time when I use some more complicated commands in it...

    you know Shema, we have to pay bills for our servers at least some support will be appreciated...
     
    Joined
    Jun 18, 2013
    Messages
    69
    Reaction score
    13
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    Oh, please





    Please don\'t taint my objective, neutral and respectful bug report with such comments. If you have something to add which might constructively contribute to the discussion, then leave the self rightous indignation and offensive comments behind.

    The last thing I want is the problem I\'ve identified to be discarded due to unprofessional comments such as yours clouding the issue.

    Yours sincerely,

    Mike Sheen
     
    Joined
    Jun 20, 2013
    Messages
    293
    Reaction score
    48
    • Purchased!
    I reported something like this some time ago, it wasn\'t looked into. Most of the posts he are ignored. You should post of the reddit sectiong, there it will get attention.
     
    Joined
    Dec 30, 2012
    Messages
    790
    Reaction score
    1
    • Legacy Citizen 4
    Posts or threads here are not ignored, they sometimes have the bad luck of not getting noticed... but the normal case is when it\'s noticed but placed on a \"to-do\" list that keeps changing with each new thing that he has to do.



    Have fun,

    -Mike
     
    Joined
    Jan 1, 2013
    Messages
    772
    Reaction score
    452
    Correct me if I\'m wrong here not running a server myself... but I don\'t believe star net.jar is actually an official part of star made, its 3rd party, and thus beyond schemas control to bug fix
     
    Joined
    Jun 18, 2013
    Messages
    69
    Reaction score
    13
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    It is an official part of StarMade - not 3rd party - see here http://star-made.org/content/starmade-009378-fixes-shield-balance-new-admin-tools
     

    MrFURB

    Madman of the Girders
    Joined
    Jan 31, 2013
    Messages
    1,116
    Reaction score
    413
    Thanks for bringing this to our attention. Added this to the master buglist!