-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory source item's source_code
is case insensitive during insert, but case sensitive during read
#38488
Comments
Hi @bap14. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
@magento give me 2.4-develop instance |
Hi @bap14. Thank you for your request. I'm working on Magento instance for you. |
Hi @bap14, here is your Magento Instance: https://b568f0ff472c8c82e3c2c1205da4dd50.instances-prod.magento-community.engineering |
The following patch resolves the case sensitivity issue in the erroring part of the code for the admin UI grid. It just lowercases all the array keys, and then uses |
Hi @engcom-Bravo. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Bravo, here is your Magento Instance: https://b568f0ff472c8c82e3c2c1205da4dd50.instances-prod.magento-community.engineering |
Hi @bap14, Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots. Steps to reproduce
We are able to view the products grid.Could you please let us know if we are missing anything. Thanks. |
@magento give me 2.4-develop instance |
Hi @bap14. Thank you for your request. I'm working on Magento instance for you. |
Hi @bap14, here is your Magento Instance: https://b568f0ff472c8c82e3c2c1205da4dd50.instances-prod.magento-community.engineering |
@engcom-Bravo So I took another look at your screenshots. The video above is still helpful, but the issue is you didn't mix the casing in your API request. So you created a source with the code |
Hi @bap14, Thanks for your quick response. Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots. Steps to reproduce
Error got displayed in catalog products grid. Hence Confirming the issue. Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-11504 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
@magento give me 2.4-develop instance |
Hi @andreifurrnica. Thank you for your request. I'm working on Magento instance for you. |
Hi @andreifurrnica, here is your Magento Instance: https://b568f0ff472c8c82e3c2c1205da4dd50.instances-prod.magento-community.engineering |
@magento give me 2.4.6-p3 instance |
Hi @andreifurrnica. Thank you for your request. I'm working on Magento instance for you. |
Hi @andreifurrnica, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
@magento give me 2.4.6-p4 instance |
Hi @heerdt. Thank you for your request. I'm working on Magento instance for you. |
Hi @heerdt, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
@magento give me 2.4-develop instance |
Hi @heerdt. Thank you for your request. I'm working on Magento instance for you. |
Hi @heerdt, here is your Magento Instance: https://b568f0ff472c8c82e3c2c1205da4dd50.instances-prod.magento-community.engineering |
@magento I am working on this |
Preconditions and environment
Steps to reproduce
warehouse_alpha
warehouse_bravo
Expected result
The product grid renders
Actual result
An error is displayed:
Additional information
This appears to be because the data in the
source_code
column is collated to be case insensitive (utf8mb3_general_ci
). The data provider for the admin grid loads the source items for the product into an array, keyed by thesource_code
value. While iterating over the product's source items it looks for the key in the array; however, the source item'ssource_code
value doesn't match thesource_code
for the inventory source.The workaround to this is to either delete the offending records, or override the private function to force the comparison to be done in a case-insensitive manner.
Release note
Fixes an issue where using the inventory/source-items API an incorrectly cased source_code value can cause the admin grid to fail to render with error
Warning: Undefined array key "<source code>"
Triage and priority
The text was updated successfully, but these errors were encountered: