Description
Preconditions (*)
- Magento version 2.4.1
- Magento 2.4-develop
- Admin -> Stores -> Configuration -> Customers -> Customer Configuration -> Account Sharing Options and set Share Customer Accounts to Global
- Multiple-store views setup in Magento
- Have one customer ( [email protected] for ex.);
Steps to reproduce (*)
- Go to Admin -> Customers -> All Customers and open customer for edit;
- On left side, select Newsletter, to have the Newsletter Informaiton panel where all stores views are displayed.
- Select more than 1 checkbox to subscriber customer to the store's newsletter and save customer
(at this point, in Newsletter Subscribers view, customer is subscribed to newsletter for multiple-store views)
- Use REST to call GET
/V1/customers/search
to retrieve the customer
V1/customers/search?searchCriteria[filterGroups][0][filters][0][field]=email&searchCriteria[filterGroups][0][filters][0][value]=[email protected]&searchCriteria[filterGroups][0][filters][0][conditionType]=eq
Expected result (*)
- Customer details are returned correctly
Actual result (*)
- Exception occurs.
{
"message": "Internal Error. Details are available in Magento log file. Report ID: webapi-xxx"
}
- And in the exception.log file:
[2020-12-07 10:36:54] main.CRITICAL: Report ID: webapi-5fce05c67a1e6; Message: Item (Magento\Customer\Model\Customer\Interceptor) with the same ID "1" already exists. {"exception":"[object] (Exception(code: 0): Report ID: webapi-5fce05c67a1e6; Message: Item (Magento\\Customer\\Model\\Customer\\Interceptor) with the same ID \"1\" already exists. at /var/www/html/magento24/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:208, Exception(code: 0): Item (Magento\\Customer\\Model\\Customer\\Interceptor) with the same ID \"1\" already exists. at /var/www/html/magento24/lib/internal/Magento/Framework/Data/Collection.php:408)"} []
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- [x ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status