-
marc
Ge0rG, MattJ, how would an error element for 389 look like? Just <error type='foobar'/> or is it <stream:error type='foobar'/>?
-
MattJ
Unless the error is intended to close the stream (which I doubt), then I'd borrow from https://xmpp.org/rfcs/rfc6120.html#stanzas-error
-
marc
MattJ, thanks for the reference!
-
Ge0rG
Which is exactly why I used IQ syntax initially
-
MattJ
I maintain that any sensible library would be able to understand an error element whatever it is wrapped in
-
flow
like any nonza that contains an error element is handled as an error?
-
MattJ
I don't think you can do that necessarily, no
-
MattJ
Isn't an unrecognised nonza stream-fatal already?
-
flow
then I probably do not follow
-
flow
good question, is it desirable? if so, the nonza xep should potentially recommend it
-
flow
IIRC smack currently just logs it
-
flow
but then again, why not do the same if you get an unexpected message with an unsupported payload? is that different from an unexpected nonza? probably yes
-
flow
of course, stanza a routable, you wouldn't want to disconnect if you get an "unexpected" message
-
flow
whereas nonzas aren't
-
flow
argl xep389 uses numeric IDs… and no schema at all
-
marc
flow, sam is open for discussion about 389, please bring up your feedback on the ML or directly to sam
-
flow
and there is no specification for the error case if the client uses an invalid id in register
-
flow
marc, i'll use the ML once I find the time
-
marc
flow, nice, please do
-
Ge0rG
unread mails on standards@ in my inbox: 4006
-
MattJ
flow, https://xmpp.org/rfcs/rfc6120.html#streams-error-conditions-unsupported-stanza-type is what I meant
-
MattJ
But it doesn't explcitly mention the server->client direction
-
flow
MattJ, I think rfc6120 § 4.9.3.24 is sufficient for me to make smack stream-error on unknown *nonzas*
-
flow
but what about *unexpected* nonzas?
-
DebXWoody
Hi. Which XML namespaces can I use during development of a new "maybe" XEP - what is requited to get a "urn:xmpp:*" namespace?
-
pep.
getting accepted as a XEP is all that you need to be able to use urn:xmpp:* (or getting another formal approval from the XSF I guess). Just use whatever you see fit for you potential XEP, at least in the document.
-
pep.
I'd say in documents you're proposing always use urn:xmpp, but in deployments use something else as long as it's not accepted(?)
-
DebXWoody
pep., ACK, thanks.
-
Zash
> Registration of protocol namespaces is initiated by the XMPP Extensions Editor when a XEP advances to Draft or Active. haha what
-
flow
pep.> I'd say in documents you're proposing always use urn:xmpp, but in deployments use something else as long as it's not accepted(?) I'd actually say it is fine to use urn:xmpp:* there too, as you then do not have to change the namespace on acceptance
-
flow
DebXWoody, ^
-
pep.
But you'd change on refusal?
-
flow
Probably not