I don't get a response. According to RFC 6120 the server should treat that as if there weren't a 'to' attribute, right?
This is due to this code in IQRosterHandler.java, which returns null:
IQ returnPacket =null;org.xmpp.packet.Roster roster =(org.xmpp.packet.Roster)packet;JID recipientJID = packet.getTo();// The packet is bound for the server and must be roster managementif(recipientJID ==null|| recipientJID.getNode()==null||!UserManager.getInstance().isRegisteredUser(recipientJID.getNode())){ returnPacket =manageRoster(roster);}// The packet must be a roster removal from a foreign domain user.else{removeRosterItem(roster);}return returnPacket;
I also don't understand the comment and the else part.
If I include a 'to' attribute in a roster request, which is the bare JID of the connected resource, like:
<iq id="1" to="user@domain" type="get"> <query xmlns="jabber:iq:roster"/> </iq>
I don't get a response. According to RFC 6120 the server should treat that as if there weren't a 'to' attribute, right?
This is due to this code in IQRosterHandler.java, which returns null:
IQ returnPacket = null; org.xmpp.packet.Roster roster = (org.xmpp.packet.Roster)packet; JID recipientJID = packet.getTo(); // The packet is bound for the server and must be roster management if (recipientJID == null || recipientJID.getNode() == null || !UserManager.getInstance().isRegisteredUser(recipientJID.getNode())) { returnPacket = manageRoster(roster); } // The packet must be a roster removal from a foreign domain user. else { removeRosterItem(roster); } return returnPacket;
I also don't understand the comment and the else part.