passbolt_api icon indicating copy to clipboard operation
passbolt_api copied to clipboard

As an admin (on web app) I cannot add a user with a + in the email

Open BLeQuerrec opened this issue 10 years ago • 7 comments

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.

BLeQuerrec avatar Jul 25 '16 13:07 BLeQuerrec

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!

stripthis avatar Jul 25 '16 15:07 stripthis

As an admin.

BLeQuerrec avatar Jul 25 '16 15:07 BLeQuerrec

Thanks @BastienLQ, I could reproduce the issue. We'll get it fixed! Ref. PASSBOLT-1637 screen shot 2016-07-25 at 17 31 58

stripthis avatar Jul 25 '16 15:07 stripthis

@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!

stripthis avatar Oct 17 '16 06:10 stripthis

hello,

the new regex for emails does not match emails with a dot in it eg [email protected]

thanks,

silvaireboivert avatar Oct 18 '16 17:10 silvaireboivert

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!

kevinmuller avatar Oct 19 '16 07:10 kevinmuller

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,

kevinmuller avatar Oct 19 '16 13:10 kevinmuller