[jdev] Testing for invalid jid forms
Stephen Marquard
scm at marquard.net
Sat Oct 1 09:11:01 CDT 2005
Hi,
This may be of use to developers and people testing code. There are 14 possible
invalid forms of JIDs and some variations on valid JIDs with invalid lengths, viz:
jidforms = [
"",
"@",
"@/resource",
"@domain",
"@domain/",
"@domain/resource",
"nodename@",
"/",
"nodename at domain/",
"nodename@/",
"@/",
"nodename/",
"/resource",
"nodename@/resource",
]
A python script (requires xmpppy) which tests for all of these is available from
http://j2.openaether.org/bugzilla/attachment.cgi?id=114
Regards
Stephen
More information about the JDev
mailing list