Mautic users with same first/last name but different everything else causing API failures #13586
Open
1 task done
Labels
bug
Issues or PR's relating to bugs
pending-feedback
PR's and issues that are awaiting feedback from the author
Mautic Version
4.4.x series
Way of installing
I downloaded a release from https://www.mautic.org/mautic-releases
PHP version
8.0.30
What browsers are you seeing the problem on?
Chrome
What happened?
If there are multiple users with the same first and last names but all other attributes are different (including email, username, etc.) then API calls that include a User ID will fail with a 400 error. Changing the last name on one of the users fixed the problem.
In the following example, we had user 200 and user 28 each with the same first/last name but other attributes were different.
We made a call to /contacts/:id/edit with owner_id=200 and we got a 400 error with this response:
{ "errors": [ { "code": 400, "message": "owner: This value is not valid.", "details": { "owner": [ "This value is not valid." ] } } ] }
How can we reproduce this issue?
Relevant log output
No response
Code of Conduct
Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.
The text was updated successfully, but these errors were encountered: