-
Rajai
Hi
-
Rajai
Is anyone working on xmppframework for ios
-
Rajai
?
-
lovetox
muc configuration question
-
lovetox
the dataform has no required fields
-
lovetox
what happens if i request the dataform, but send back one with only one field set
-
lovetox
does this mean its invalid, or does it mean the other values stay at their default?
-
lovetox
so the idea is to send only the fields i change, not everything
-
MattJ
lovetox: yes, when we revisited our MUC config handling in Prosody a while back I also found this underspecified. We preserve existing values of fields that are not submitted, and I believe ejabberd does the same.
-
Kev
I believe that to be what we do, and I believe we found clients that relied on it.
-
Kev
Although I might be misremembering.
-
lovetox
i think its the only way, what would a server else do?
-
lovetox
reject a form which is missing not required fields
-
lovetox
this would be a violation of the dataform xep
-
lovetox
delete values from the muc config if they are missing in the response?
-
lovetox
this is probably not possible for most fields
-
lovetox
because they need some value
-
MattJ
I think the only options I considered were: set missing options to the default value, or leave them at whatever value they are currently
-
Zash
Leaving the previous values (or defaults in case of some create operation) seems the nicer option.
-
Zash
Might depend on the surrounding protocol tho