Projects tigase _server server-core Issues #335
Tigase server session is not working properly when jabber client is invoke to register new user (#335)
Won't Fix
Sesha Reddy Mutyala opened 1 decade ago

Team i implemented code to register the new user using jabber client when i kept debug point at JabberIqRegister.java

String user_name = request.getChildCDataStaticStr(

							IQ_QUERY_USERNAME_PATH );

					String password = request.getChildCDataStaticStr(

							IQ_QUERY_PASSWORD_PATH );

					String pass_enc = XMLUtils.unescape( password );

					String email = request.getChildCDataStaticStr(

							IQ_QUERY_EMAIL_PATH );

code it is working fine

when i remove debug point it is not working getting below error

014-06-17 11:25:57.273 [in_5-sess-man] SessionManager.processPacket() FINEST: Packet processed by: [jabber:iq:register]

2014-06-17 11:25:57.273 [jabber:iq:register Queue Worker 1] DomainFilter.getDomains() FINEST: Domains read from user session: LOCAL for VHost: Domain: dsk-seshmuty, enabled: true, anonym: true, register: true, maxusers: 0, tls: false, s2sSecret: null, domainFilter: ALL

2014-06-17 11:25:57.273 [jabber:iq:register Queue Worker 1] JabberIqPrivacy.filter() FINEST: Checking outbound packet: from=sess-man@chat.sesha.com, to=c2s@chat.sesha.com/172.21.2.18_5222_172.21.2.71_1751, DATA=

                    <username>my_tigase_xmpp</username>

                    <password>test</password>

                </query><error code="401" type="auth"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Unsuccessful registration attempt</text></error></iq>, SIZE=493, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ANONYM, TYPE=error

2014-06-17 11:25:57.273 [in_5-message-router] MessageRouter.processPacket() FINEST: Processing packet: from=sess-man@chat.sesha.com, to=c2s@chat.sesha.com/172.21.2.18_5222_172.21.2.71_1751, DATA=

                    <username>my_tigase_xmpp</username>

                    <password>test</password>

                </query><error code="401" type="auth"><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Unsuccessful registration attempt</text></error></iq>, SIZE=493, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=ANONYM, TYPE=error

2014-06-17 11:25:57.273 [in_5-message-router] MessageRouter.getLocalComponent() FINEST: Called for : 0a034e4f-2feb-4841-be00-2545e02bda13@dsk-seshmuty/xmpphp

Sesha Reddy Mutyala commented 1 decade ago

Sorry Tigase version is 5.2.1

Artur Hefczyc commented 1 decade ago

I think you asked the question on the forum topic and I responded to it already. You cannot register a new user account on authenticated stream.

Registration request must be sent before user login data.

issue 1 of 1
Type
Bug
Priority
Critical
Assignee
RedmineID
2007
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#335
Please wait...
Page is in error, reload to recover