-
daniel
Is a single space a valid resource?
-
jonasw
daniel, according to aioxmpp, it is
-
jonasw
even with strict=True
-
jonasw
if it isn’t, I need to fix my tests
-
jonasw
(this is according to RFC 6122)
-
jonasw
but IIRC there’s nothing in stringprep which can forbid outputs which consist only of a certain class of characters, as long as those characters are allowed otherwise.
-
jonasw
so there’s nothing in stringprep which could be saying "yeah, spaces are allowed, but only if they occur with at least one non-space character"
-
daniel
Yes that's how I understand it as well
-
Zash
Invalid as nicknames (eg in MUCs) according to https://tools.ietf.org/html/rfc8266
-
jonasw
PRECIS is another story and much more annoying :)
-
Zash
Yeah, don't remind me
-
jonasw
ah yes, PRECIS strips spaces, so that would be an empty nickname
-
jonasw
you gotta love how PRECIS breaks things
-
Zash
Buuuuut, do we have a JID-PRECIS spec yet?
-
jonasw
I think so
-
jonasw
RFC 7622