unmk2 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

Patch: handle partial responses correctly #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run sendMessage.php, logging to Openfire 3.7.1
2. Using SASL PLAIN auth, TLS is successfully enabled

What is the expected output? What do you see instead?

JAXL hangs waiting for more stanzas endlessly after receiving auth <success>
response split into two packets. Please note that "<" is delivered first,
and "success ...." follows.

[1:80379:0] 2011-12-08 15:02:02 - [[JAXLPlugin]] Executing hook 
jaxl_get_auth_mech for uid 1: doAuth  

[1:80379:0] 2011-12-08 15:02:02 - [[XMPPSend]] Performing Auth type: PLAIN

[1:80379:0] 2011-12-08 15:02:02 - [[XMPPSend]] 108
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" 
mechanism="PLAIN">sOMeBaSE64String=<
/auth>

[1:80379:0] 2011-12-08 15:02:02 - [[XMPPGet]] 4096
<

[1:80379:0] 2011-12-08 15:02:02 - [[JAXLPlugin]] Executing hook jaxl_get_xml 
for uid 1: ticker

[1:80379:0] 2011-12-08 15:02:02 - [[XMPPGet]] 4096
success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>

[1:80379:0] 2011-12-08 15:02:02 - [[JAXLPlugin]] Executing hook jaxl_get_xml 
for uid 1: ticker

[1:80379:1] 2011-12-08 15:02:03 - [[JAXLPlugin]] Executing hook jaxl_get_xml 
for uid 1: ticker

What version of the product are you using? On what operating system?

git master, checked also against the 2.1.2rc1

Please provide any additional information below.

A patch to fix this is attached

Original issue reported on code.google.com by marcin.c...@gmail.com on 8 Dec 2011 at 3:33

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

i got the following output but i did not receive the message please help me 

1343042242 [INFO]: Connecting to tcp://talk.google.com:5222
1343042243 [INFO]: Starting TLS encryption
1343042243 [INFO]: Attempting Auth...
1343042243 [INFO]: Auth success!
1343042244 [INFO]: Bound to shaik.amesh@gmail.com/xmpphpA8781BCF
1343042244 [INFO]: Session started
Session Start
Presence: shaik.amesh@gmail.com/Talk.v1044F691B34 [available] 
Presence: kishore@gmail.com/gmail.83603998 [available] 
Presence: kan@gmail.com/gmail.A1C6BD44 [available] 
Presence: mailsforabhinav@gmail.com/android482b871d7d66 [away] 

Original comment by shaik.am...@gmail.com on 23 Jul 2012 at 2:14

Attachments:

GoogleCodeExporter commented 9 years ago
this bug has been fixed in v3.x
also sheik this doesn't seems like a jaxl log ....
are you sure you are using jaxl here??

also as i said before... google code issues list is no longer active...
kindly use github issues or google groups..

Original comment by mailsfor...@gmail.com on 23 Jul 2012 at 3:16