buddycloud / buddycloud-server-java

The buddycloud server written in Java.
http://buddycloud.com
Apache License 2.0
67 stars 40 forks source link

disconnect if outcast sends "xmpp.buddycloud.retrieve" #298

Open robotnic opened 9 years ago

robotnic commented 9 years ago

User "bill" is outcast and trys to retrieve items. To kick him completely from xmpp is to much punishment.

Request

send("xmpp.buddycloud.retrieve",{"node":"/user/maria@laos.buddycloud.com/posts"});

Response

3:::{"type":0,"data":["xmpp.error",{"type":"cancel","condition":"unknown","description":"{}"}]} 3:::{"type":0,"data":["xmpp.error",{"type":"connection","condition":"disconnected","description":"XMPP client disconnected"}]}

lloydwatkin commented 9 years ago

Actually I think something else is going on here, possibly with the java server possibly with xmpp-ftw. I'll have to take a look at the code over the weekend, thanks!

lloydwatkin commented 9 years ago

@imaginator if logs are set to trace we should see a log/exception around this, could you potentially dig something out please?

imaginator commented 9 years ago

Sure - I'll change log4j and get something. Hopefully in the next hour I'll have a chance.

robotnic commented 9 years ago

To produce this bug you can open this url:

http://datenkueche.com/buddycloud/v2/##%2Fuser%2Fmaria@laos.buddycloud.com%2Fposts

username:bill password:bbb

To see the bug in browser, open debugger (F12) and got to network->websockets.