easy-wi / developer

Gameserver, Voiceserver Webinterface
https://easy-wi.com
GNU General Public License v3.0
228 stars 82 forks source link

[API] Modifing Gameservers sets Gameserver Port to 0 #302

Closed myReaper closed 10 years ago

myReaper commented 10 years ago

Modifing the Gameserver will bug the Gameserver to have its Port set to 0, additional Ports and RAM leave unchanged.

Again, tested on 4.20 as we cannot create gameservers on current GIT and it works this way in 3.30.

Our API request

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
<action>mod</action>
<identify_user_by>user_externalid</identify_user_by>
<identify_server_by>server_local_id</identify_server_by>
<user_externalid>d923</user_externalid>
<user_localid/>
<username/>
<shorten/>
<server_external_id/>
<server_local_id>48</server_local_id>
<slots>12</slots>
<private>N</private>
<brandname>N</brandname>
<active>Y</active>
</server>

API response

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE gserver>
<gserver>
<action>success</action>
<private>N</private>
<active>Y</active>
<identify_server_by>server_local_id</identify_server_by>
<slots>12</slots>
<server_external_id/>
<server_local_id>48</server_local_id>
<identify_user_by>user_externalid</identify_user_by>
<user_localid/>
<user_externalid>d923</user_externalid>
<username/>
<taskset/>
<cores/>
<eacallowed/>
<brandname>N</brandname>
<tvenable/>
<pallowed/>
<port/>
<port2/>
<port3/>
<port4/>
<port5/>
<minram/>
<maxram/>
<master_server_id>2</master_server_id>
<master_server_external_id>21510</master_server_external_id>
<initialpassword/>
<installGames>A</installGames>
<autoRestart/>
<errors/>
</gserver> 

1 2

myReaper commented 10 years ago

This problem still exists in the same way it was before in Version 4.30, please reopen this Ticket.

ulrichblock commented 10 years ago

I did a full test, it worked. Check your testcases, check your files.