Smack does not support resourceparts which contain the '@' character.

Description

Localpart parsing fails if resourcepart contains '@'. The fix is seems to simply s/lastIndexOf/indexOf/ in the affected parsing methods of StringUtil. Since neither the localpart, nor the domainpart are allowed to contain '@', '/' (amongst others), it's save to assume that the first appearance of those characters are the separators between the parts of a JID.

According to RFC6122 B, the '@' character (0x40 COMMERCIAL AT) is not strictly disallowed in the resourcepart of a JID (compared to Localpart, defined by Nodeprep in RFC6122 A.5). Smack

Original Report: https://trac.jitsi.org/ticket/1155

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Expected Effort

Components

Fix versions

Affects versions

Priority

Created May 31, 2014 at 11:25 AM
Updated March 29, 2015 at 10:42 AM
Resolved June 1, 2014 at 10:26 AM