after patching to latest 2.3.0 I get kicked as guest

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
levancho
Posts: 71
Joined: 27 Jun 2011, 16:03

after patching to latest 2.3.0 I get kicked as guest

Postby levancho » 13 Oct 2012, 14:32

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
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

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

Postby rjgtav » 13 Oct 2012, 20:31

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?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
levancho
Posts: 71
Joined: 27 Jun 2011, 16:03

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

Postby levancho » 14 Oct 2012, 10:31

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.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

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

Postby Bax » 15 Oct 2012, 07:53

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.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 59 guests