Problem/Motivation
Fatal error when saving a user Symfony\Component\Validator\Exception\InvalidOptionsException: The option "caseSensitive" does not exist in constraint "Drupal\dbee\Plugin\Validation\Constraint\UserMailUniqueDbee". in Symfony\Component\Validator\Constraint->__get() (line 229 of /var/www/html/vendor/symfony/validator/Constraint.php).
Steps to reproduce
Go to edit any user and click save button.
Proposed resolution
Define caseSensitive property for UserMailUniqueDbee constraint
Issue fork dbee-3548669
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
thedut commentedHello,
I can not reproduce this Fatal error on Drupal 11.2.3.
Witch version are you using ?
Comment #4
cmd87 commentedWe are on 10.3.6 currently
Comment #5
thedut commentedTested on Drupal 11.2.3 and on 10.3.14, it works :
UserMailUniqueDbee extends UserMailUnique that extends UniqueFieldConstraint, [for the records, that extends SymfonyConstraint]
UserMailUniqueDbee does inherit
public $caseSensitive = FALSE;from UniqueFieldConstraint class.I'm going to check on Drupal 10.3.6.
Comment #6
thedut commentedTested on Drupal 10.3.6 :
Did you alter the user ou dbee modules in any way ?
Seems that there is no issue from fresh install.
I set this issue as "Can not reproduce", Feel free to reopen it with more informations.
Comment #8
thedut commentedHum, Yes I tried with lastest version of the dbee module and this time : yes, Fatal error on editing the user : I reopen this issue.
Comment #9
thedut commentedI close this issue again, sorry. I met an fatal error not due the UserMailUniqueDbee class but because i didn't refresh my install.
And tested on Drupal 10.5.3 to (the latest D10 stable release).
Still :
Did you alter the user ou dbee modules in any way ?
Seems that there is no issue from fresh install.
I set this issue as "Can not reproduce", Feel free to reopen it with more informations.
Comment #11
cmd87 commentedNo, nothing like that.
That I can't confirm. Didn't have time to test on fresh install.
I can confirm next:
Here is you can see that caseSensitive doesn't exist in 10.3.6
https://git.drupalcode.org/project/drupal/-/blob/10.3.6/core/lib/Drupal/...
The caseSensitive property was added since 10.3.9
https://git.drupalcode.org/project/drupal/-/blob/10.3.9/core/lib/Drupal/...
Comment #13
thedut commentedYes you right ! Finally I was able to reproduce your issue on Drupal 10.3.6.
I guess I was not on the right Drupal version the first time I have tried.
Commited, this bug will be fix in the next release : 3.1.0-rc3
Thank you for reporting this issue and its fix.