As an admin (on web app) I cannot add a user with a + in the email
Hi,
If I want to add a user with a plus in email (ie. [email protected]), I cannot validate the form (error "Only email format is allowed" is returned). Adding the user from CLI (app/Console/cake passbolt register_user ...) works fine.
Thanks.
Hi there,
Do you get this error as a regular user on the registration screen or are you adding the user as an admin? Thanks for the clarification!
As an admin.
Thanks @BastienLQ, I could reproduce the issue. We'll get it fixed!
Ref. PASSBOLT-1637

@BastienLQ this issue has been fixed for the username on the add user screen in release 1.2.0. Please note that we fix issues with '+' not being allowed elswhere like in password description and username in next release. See. issue #17. Thanks!
Hi @silvaireboivert ,
Indeed, a glitch got introduced in the regexp due to compatibility issues between PHP and Javascript xregexp format. We are working on a quick fix which should be available today itself.
Thanks a lot for the quick feedback!
Hi again @silvaireboivert ,
We have just released 1.2.1 to correct the issue you mentioned, and also did some cleanup in the code. See release notes
We have added a few test cases in our test suite to make sure that this bug doesn't happen again. Here is a gist showing all the emails format supported and tested in our CI process, which we we got from the CakePHP test suite. I think that it handles most of the cases, but suggestions of improvement are of course welcome if any.
Thanks again for flagging this.
Cheers,