What steps will reproduce the problem?
1. Enable mod_register.
2. Use a client supporting IBR.
3. Create an account containing an uppercase letter, like Test@your-domain.tld
What is the expected output? What do you see instead?
The account test@your-domain.tld should have been created.
Instead a not-acceptable error has been sent and no account has been created.
What version of the product are you using? On what operating system?
hg:bdaff978c790 (0.10) on ArchLinux current.
Please provide any additional information below.
The issue is most likely that stringprep hasn’t been applied on the requested <username/>.
Zash
on
I am to reproduce on 0.10 4f7990902874
What is the full error reply?
Changes
owner Zash
tags Status-NeedInfo
Zash
on
*unable to reproduce
Link Mauve
on
Oh hmm, now I get an error of type wait, so it might be that I did too many attempts at creating an account and am now blacklisted by my server, I haven’t checked what it was before:
<iq id='b54f9de7-79fc-4231-8884-49837a6ac41f' type='error' from='im.apinc.org'><error type='wait'><not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
Link Mauve
on
Actually no, the throttle check seem to erroneously trigger with an uppercase letter, since I was able to register the same account in lowercase.
What steps will reproduce the problem? 1. Enable mod_register. 2. Use a client supporting IBR. 3. Create an account containing an uppercase letter, like Test@your-domain.tld What is the expected output? What do you see instead? The account test@your-domain.tld should have been created. Instead a not-acceptable error has been sent and no account has been created. What version of the product are you using? On what operating system? hg:bdaff978c790 (0.10) on ArchLinux current. Please provide any additional information below. The issue is most likely that stringprep hasn’t been applied on the requested <username/>.
I am to reproduce on 0.10 4f7990902874 What is the full error reply?
Changes*unable to reproduce
Oh hmm, now I get an error of type wait, so it might be that I did too many attempts at creating an account and am now blacklisted by my server, I haven’t checked what it was before: <iq id='b54f9de7-79fc-4231-8884-49837a6ac41f' type='error' from='im.apinc.org'><error type='wait'><not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
Actually no, the throttle check seem to erroneously trigger with an uppercase letter, since I was able to register the same account in lowercase.
Oh, the throttle check was inverted. https://hg.prosody.im/0.10/rev/c61ea328fac2
ChangesClarify title
Changesmod_register returns a not-acceptable when the requested username contains an uppercase lettermod_register throttle check logic inverted