博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
XMPP getting "Not Authorized" when joining an P/W protected, already open chat room
阅读量:7047 次
发布时间:2019-06-28

本文共 2476 字,大约阅读时间需要 8 分钟。

When a XMPP password protected room is already set up in a window, and the account is logged back in, Pidgin tries to log into the room without a password and fails with a "Not Authorized" error. Double-clicking on the room in the Buddy List will log into the room properly.

This bug seems to crop up on a specific set of criteria, but given that the situation happens often (at least for me), it is still annoying. I hiberate my laptop often and go on VPN, so it comes up every time the network is re-connected.

Steps to Reproduce (100% reproducible on my side):

1. Log into password-protected XMPP chat room.2. Keep room window open.3. Disable account or disconnect Internet connection4. Enable account or re-connect Internet connection5. Error occurs when Pidgin attempts to relog into room.

Relevant debug lines (with added line breaks):

(09:23:23) jabber: Sending (ssl) (sineswiper@foobar.com/spark): 
1
(09:23:23) jabber: Recv (ssl)(393): 
1
...(09:23:53) gtkconv: setting active conversation on toolbar 0A3EE998(09:23:53) jabber: Sending (ssl) (sineswiper@foobar.com/spark): 
1
password
(09:23:53) jabber: Recv (ssl)(419): 
1

/muc#user"><item jid="mrsadmin@

foobar.com/1d4c2a8e" affiliation="owner" role="moderator"/></x></presence>

(09:23:53) jabber: Sending (ssl) (sineswiper@foobar.com/spark): <iq type='get' id='purple93a1b4dc' to='secretroom@chat.foobar.com'><query  xmlns='http://jabber.org/protocol/disco#info' node='http://jabber.org/protocol/muc#traffic'/></iq> (09:23:53) jabber: Recv (ssl)(462): <presence to="sineswiper@foobar.com/spark"  from="secretroom@chat.foobar.com/normaluser1"><priority>1</priority><query xmlns="jabber:iq:last" seconds="300"/><c  xmlns="http://jabber.org/protocol/caps" node="http://pidgin.im/" hash="sha-1" ver="I22W7CegORwdbnu0ZiQwGpxr0Go="/><x xmlns="vcard- temp:x:update"><photo/></x><x xmlns="http://jabber.org/protocol/muc#user"><item jid="normaluser1@foobar.com/spark"  affiliation="none" role="participant"/></x></presence> ...

Note the difference between the two presence requests. The first one does not send out a password via XML, and the second one does (which was the manual double-click into the room). So, Pidgin is clearly not sending the password out when it should.

    本文转自cantgis 51CTO博客,原文链接:http://blog.51cto.com/cantgis/1640880,如需转载请自行联系原作者
你可能感兴趣的文章
Salt Syndic配置
查看>>
Linux下Git和GitHub使用方法总结 (码云)
查看>>
linux 安装与卸载软件
查看>>
windows phone 浏览器
查看>>
SQL Server 百万级数据提高查询速度的方法
查看>>
汇编程序:哆瑞米发商拉西
查看>>
centos 7.3 LVS的NAT模式负载均衡实操
查看>>
Zend Server 安装记录
查看>>
算法学习之路|判断题
查看>>
mongoDB文档操作
查看>>
Swiper – 经典的移动触摸滑块插件【免费】
查看>>
Java Formatter 阅读心得
查看>>
利用数据库漏洞扫描评估数据库安全性 4 弱口令扫描
查看>>
【Android游戏开发十一】手把手让你爱上Android sdk自带“9妹”
查看>>
[AlwaysOn Availability Groups]SQL Server错误日志(AG)
查看>>
融合移动设备操作系统的随想(I)
查看>>
崩溃中!Nhibernate的数据分页.
查看>>
如何更改一台已经安装了MOSS2007的服务器名称
查看>>
oralce flashback 使用方法总结
查看>>
操纵BGP路径选择---local preference属性案例(配图+详细验证过程)
查看>>