-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong FORM_TYPE for IBR form with CAPTCHA #3045
Comments
Maybe I'm missing something... What you consider a bug is in fact described in example 11 from https://xmpp.org/extensions/xep-0158.html#register , and is similarly provided by ejabberd 19.09: <iq xmlns="jabber:client"
to="localhost"
type="get"
id="4620ac0b-09a7-4c02-92bf-573652f5cdb5">
<query xmlns="jabber:iq:register" />
</iq>
<iq xml:lang='ca'
from='localhost'
type='result'
id='4620ac0b-09a7-4c02-92bf-573652f5cdb5'>
<query xmlns='jabber:iq:register'>
<x type='form'
xmlns='jabber:x:data'>
<instructions>Tria nom d'usuari i contrasenya per a
registrar-te en aquest servidor</instructions>
<field var='FORM_TYPE'
type='hidden'>
<value>urn:xmpp:captcha</value>
</field>
<field var='username'
type='text-single'
label='Usuari'>
<required />
</field>
...
</x>
</query>
</iq> |
I close the ticket because ejabberd respects namespace requirements from XEP-0158. If there are any discrepancies in the XEPs, this should be addressed at the XSF. |
This is being addressed in xsf/xeps#852, the example was obviously wrong. It is now part of XEP-0158 version 1.0.1, you can reopen this issue. |
@processone, @mremond, @zinid: Can you reopen it? |
Oh, now that XEP-0158 changed, ejabberd no longer respects it. And I wonder how this change should be implemented:
|
I don't see CAPTCHA related fields registered in 'jabber:iq:register' form type: https://xmpp.org/extensions/xep-0077.html#registrar-formtypes |
i think this XEP is a bit confusing, the registrated fields are not the fields for the dataform, these are the fields we can expect within the jabber:iq:register namespace, means
The only rules which apply to dataforms are written down under https://xmpp.org/extensions/xep-0077.html#extensibility Reading this, we can extend the dataform anyway we like. There is another ejabberd specific component to this. |
Any chance this can be looked at? the current impl needs clients to specifically support ejabberds impl |
The easiest solution that I could find is the third option that I mentioned in #3045 (comment) That proposed patch is in badlop@49431b5 |
Environment
Configuration (only if needed): unknown
Errors from error.log/crash.log
No errors
Bug description
When doing in-band registration with some Ejabberd server with a CAPTCHA, such as creep.im or patchcord.be, the FORM_TYPE is
urn:xmpp:captcha
instead ofjabber:iq:registration
like it should be as defined by XEP-0077 and extended by XEP-0158.The text was updated successfully, but these errors were encountered: