[jitsi-issues] #1155: Using an '@' in an XMPP resource causes problems

Jitsi Trac trac at jitsi.org
Wed May 28 02:22:25 CEST 2014

#1155: Using an '@' in an XMPP resource causes problems
 Reporter:  bgrozev  |       Owner:
     Type:  defect   |      Status:  new
 Priority:  7        |   Milestone:
Component:           |  Resolution:
 Keywords:           |

Comment (by sandy8925):

 Created a small test program, and ran against the smack.jar included in

 import org.jivesoftware.smack.util.StringUtils;

 public class testSmack {
     public static void main(String[] args) {
         final String xmppAddress =
 "testAccount at jabber.org/jitsi at hostname1";
         System.out.println("XMPP address: " + xmppAddress);
         System.out.println("parseName: " +
         System.out.println("parseServer: " +
         System.out.println("parseResource: " +

 Output was as follows:

 XMPP address: testAccount at jabber.org/jitsi at hostname1
 parseName: testAccount at jabber.org/jitsi
 parseServer: hostname1
 parseResource: jitsi at hostname1

 So, it looks like parseResource works correctly while parseName and
 parseServer are wrong.

Ticket URL: <https://trac.jitsi.org/ticket/1155#comment:5>
Jitsi <https://trac.jitsi.org>
Jitsi - Open Source Video Calls and Chat

More information about the issues mailing list