-
sinar
anyone can help me with this issue? https://stackoverflow.com/questions/75606374/failed-joining-ejabberd-open-room
-
sinar
i keep getting error like below <presence xml:lang='fr' to='myJid@chatserver.com/resource' from='roomname@conference.chatserver.com' type='error' id='eff492ab-a438-4780-848b-bd98fed42294'> <nick xmlns='http://jabber.org/protocol/nick'>MyNickname</nick> <x xmlns='http://jabber.org/protocol/muc'/> <x xmlns='vcard-temp❌update'> <photo/> </x> <error type='modify'> <jid-malformed xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xml:lang='fr' xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Le pseudonyme ne peut être laissé vide</text> <text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Nickname can't be empty</text> </error>
-
nicoco
hey sinar! this is not how you choose a nickname on joining a room, https://xmpp.org/extensions/xep-0045.html#example-18
-
nicoco
to "to" attribute of your presence should be "room@server/YOURNICK"
-
pep.
I wish this were though.. but inside <x/>✎ -
pep.
I wish this were though.. but inside <{muc}x/> ✏
-
masum.nishat21
Hello
-
masum.nishat21
Hello, I am developing an XMPP client with java, Currently, I'm implementing XEP-0115. When I try to attach the form defined in XEP-0232: Software Information, I found no information to get the verification string for the Data form field of type XEP-0221: Data Forms Media Element. Is there any standard to implement this or do I just need to ignore this kind of field? Currently, I'm ignoring this kind of field as no documentation found. Thanks Al Masum Nishat
-
flow
masum.nishat21, isn't that just xep115 § 5.1 step 7?
-
masum.nishat21
In that section it says only about values of a field, but for xep 221 media fields do not have any value. So i can not get verification string using 5.1 step 7 of xep 115
-
singpolyma
Media fields to have a value
-
singpolyma
221 just defines a way to make a media label for a field
-
singpolyma
The field is otherwise a normal field
-
flow
singpolyma, I don't see a <value/> in xep221 ex2, what am I missing?
-
flow
my first feeling is that xep221 data form fields a non-standard✎ -
flow
my first feeling is that xep221 data form fields are non-standard ✏
-
singpolyma
Data form field values are always optional
-
flow
sure
-
singpolyma
(in the schema)
-
flow
masum.nishat21, I am not sure why are are not able to get a verficiation string if you just blindly follow the instructions in step 7
-
flow
especially step 7c
-
flow
1. append the value *of the* 'var' attribute✎ -
flow
7)c)a) append the value *of the* 'var' attribute ✏
-
flow
and be done, because 7)c)b) and 7)c)c) do not seem to apply because there is no <value/>
-
masum.nishat21
There is no where written in xep 221 that it may contain value elemant.
-
flow
hmm?
-
singpolyma
masum.nishat21: it doesn't need to be, it's part of data forms xep
-
masum.nishat21
flow: now im doind it blindly.
-
singpolyma
221 just defines the new media label element
-
flow
masum.nishat21, as singpolyma said, <value/> is optional and xep221 does not seem to specify one for data form media elements
-
flow
so you can skip 7)c)b) and 7)c)c) for them, because there is no <value/> element
-
singpolyma
There may or may not be a value element, nothing to do with 221
-
flow
exactly
-
masum.nishat21
I got it. I think that i should omit value if there is no one for that xep 221 elements.
-
singpolyma
There will be a value element if the field hrs a value, that is all
-
singpolyma
masum.nishat21: for all fields. 221 being present or not is irrelevant
-
masum.nishat21
Okay thanks for helping me. I got my solution.
-
flow
but interestingly xep115 seems to be written with a <value/> being present in mind
-
flow
which is probably not surprising, given that <value/> is how you transfer information
-
singpolyma
Right. Does it not distinguish between value not present vs empty valuem✎ -
singpolyma
Right. Does it not distinguish between value not present vs empty value? ✏
-
masum.nishat21
I think at least one example is worth adding with value in xep 221
-
flow
well empty value would be the empty string, woulnd't it? which you then would have to process as such
-
singpolyma
Right
-
flow
masum.nishat21, that does not seem sensible, because the <value/> for xep221 element seems to be contained in <uri/>, if I am not mistaken
-
singpolyma
masum.nishat21: if you look at captcha xep you'll see media labelled fields which clearly expect the user to fill in a value
-
singpolyma
flow: no. The URI is a label not a value
-
flow
ahh ok
-
masum.nishat21
Here was my doubt between value and uri
-
singpolyma
Yeah. If you remove the media element from a 221 adorned field it should still work the same
-
singpolyma
Just not have the image for the label anymore
-
singpolyma
The semantics of the existing elements from data forms are unchanged
-
masum.nishat21
singpolyma: I didn't find any field contains both media and value in xep 158 also
-
singpolyma
Which one is 158?
-
masum.nishat21
Captcha
-
singpolyma
All those fields expect a value from the user
-
singpolyma
They don't usually have an existing/default value though
-
masum.nishat21
I understand now. Thanks a lot.