Page 1 of 1

after patching to latest 2.3.0 I get kicked as guest

Posted: 13 Oct 2012, 14:32
by levancho
as soon as I login as guest player, i get disconnected with error:

"Reason: kick"

on server side I have custom login and if I find that there is no username,
i assume its guest and I do this

Code: Select all

           trace(ExtensionLogLevel.DEBUG,"logging in as guest user");
            outData.putInt(UPARAM_LOGIN_CODE, UVAL_LOGIN_CODE_GUEST);
            session.setProperty("$permission", DefaultPermissionProfile.GUEST);


this used to work.

I tried removing


Code: Select all

         
            session.setProperty("$permission", DefaultPermissionProfile.GUEST);


still same problem, it start after upgrading to 2.3.0

i do not see anything in smartfox logs,

last messages are:


1:12,406 INFO [Scheduler1-thread-1] sessions.DefaultSessionManager - Session removed: { Id: 5, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:51928 }
INFO 2012-10-13 18:21:12,406 com.smartfoxserver.bitswarm.sessions.DefaultSessionManager: Session removed: { Id: 5, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:51928 }
18:21:12,408 INFO [Scheduler1-thread-1] entities.SFSZone - User: Guest#4 was disconnected.
INFO 2012-10-13 18:21:12,408 com.smartfoxserver.v2.entities.SFSZone: User: Guest#4 was disconnected.
18:21:12,410 INFO [Scheduler1-thread-1] api.SFSApi - User disconnected: { Zone: Givi }, ( User Name: Guest#4, Id: 4, Priv: 0, Sess: 127.0.0.1:51928 ) , Type: FlashPlayer:Desktop:MAC 11,1,102,58, SessionLen: 23095
INFO 2012-10-13 18:21:12,410 com.smartfoxserver.v2.api.SFSApi: User disconnected: { Zone: Givi }, ( User Name: Guest#4, Id: 4, Priv: 0, Sess: 127.0.0.1:51928 ) , Type: FlashPlayer:Desktop:MAC 11,1,102,58, SessionLen: 23095

Re: after patching to latest 2.3.0 I get kicked as guest

Posted: 13 Oct 2012, 20:31
by rjgtav
Hi.
Are you sure that you have no code in your Extension for kicking users? Maybe that code could be triggered by some bug.
And are you using the latest client API alongside with the 2.3.0 patch?
Are you using the AS3 Client API?

Re: after patching to latest 2.3.0 I get kicked as guest

Posted: 14 Oct 2012, 10:31
by levancho
yes, I have a latest version of client as well.
and like I said it works in previous version does not work in 2.3 upgrade.

Re: after patching to latest 2.3.0 I get kicked as guest

Posted: 15 Oct 2012, 07:53
by Bax
Maybe this depends on your Zone Configuration. I suggest you to check the word filtering settings.
By default the word censoring is applied to usernames, and maybe an empty username is automatically kicked.
Try disabling the word filtering on your Zone and retest.