Page 1 of 1

SFS methods implicitly invoked?

Posted: 28 Oct 2011, 07:15
by li_ramen07
Hi Everyone,

Are the following SFS2x methods implicitly invoked?
  • changeRoomPassword
    changeRoomCapacity
    changeRoomName
Our logs show warnings/errors pointing to these methods but we've checked our project files and we can see that these were not called.

Were these triggered by some other methods? [Could not find more details on this however.]

Below are the warnings we're referring to:

#checked the docs and the only remaining possible reason why this was fired was that the new name might be already in use [but before creating a new room, we checked first if it exists - through getRoomByName()]

Code: Select all

com.smartfoxserver.v2.exceptions.SFSRoomException: Room name change not permitted. Room: [ Room: The Lobby, Id: 1, Group: default, isGame: false ], User: ( User Name: XXXXXXXXXX, Id: 221, Priv: 0, Sess: XXXXXXXXX ) 
com.smartfoxserver.v2.api.SFSApi.changeRoomName(SFSApi.java:1411)
#no call to changeRoomCapacity() was made

Code: Select all

com.smartfoxserver.v2.exceptions.SFSRoomException: Attempt to change capacity in a Room that doesn't support it. [ Room: The Lobby, Id: 1, Group: default, isGame: false ], ( User Name: XXXXXXXXX, Id: 288, Priv: 0, Sess: XXXXXXXXXXX ) 
com.smartfoxserver.v2.api.SFSApi.changeRoomCapacity(SFSApi.java:1556)
#no call to changeRoomPassword() was made

Code: Select all

com.smartfoxserver.v2.exceptions.SFSRoomException: Room password change not permitted. Room: [ Room: The Lobby, Id: 1, Group: default, isGame: false ], User: ( User Name: XXXXXXXXX, Id: 395, Priv: 0, Sess: XXXXXXXXXXX)

What are the possible reasons for these? Any thoughts?


Thanks.

Posted: 01 Nov 2011, 19:45
by Lapo
Maybe someone with a custom client is attempting to call those commands on the server. If your client code does not perform any calls of that type it's not possible to get those errors.
You should investigate a bit more.
A good security measure would be to inhibit the ability to use those public requests via the AdminTool

Posted: 02 Nov 2011, 02:58
by li_ramen07
Thanks, Lapo. We'll check our room configuration settings and investigate this further.