views:

66

answers:

2
    JID jid = new JID("[email protected]"); //success with code
    SUCCESS
    JID jid = new JID("mycomponent.host.domain.com");  //send fail with
    code INVALID_ID    ,but when i try send from gmail OR jabber to
    mycomponent.host.domain.com . it was a success.Is this a bug in google xmpp api?
A: 

If 'mycomponent.host.domain.com' really is a valid JID, then this is a bug. Feel free to file it in the issue tracker!

Nick Johnson
@Nick, appreciated for answer. Hope someone can have a look and confirm it's a bug or not..
cometta
+1  A: 

"mycomponent.host.domain.com" is valid syntactically, both according to RFC 3920 as well as according to the new best reference, draft-ietf-xmpp-address, both of which say that the only required portion of a JID is the domain. As long as all of the unicode code points in your domain name pass nameprep (i.e., they can be used as an internationalized domain name), this is a bug in the Google API.

Joe Hildebrand
ya man , i think it's a bug. need more people to confirm. i filled and issue 3208. please vote
cometta