{"data":{"id":"magento2-38447","source":"github-pr","sourceRef":"magento/magento2#38447","title":"Special characters in configurable associate product name are  being Converted to HTML Entities.","pr":{"number":38447,"url":"https://github.com/magento/magento2/pull/38447","author":"Bansiravaliya7","mergedAt":"2024-05-16T19:44:51Z","mergeCommit":"15045bb50d4c1d601811b41f176025ca151ae738","headCommit":"db4f5b142cb28bf657d43d1179ede609c1ccd51c","baseRef":"2.4-develop","diffSha256":"d23543a2997dc9fbc0ae1f5427f6031c55d03edc6844380b439a6ff47ba3debb"},"issues":[{"number":38146,"url":"https://github.com/magento/magento2/issues/38146","title":"Special characters in configurable associate product name are  being Converted to HTML Entities.","labels":["Area: Product","Component: Admin","Issue: Confirmed","Priority: P3","Progress: done","Reported on 2.4.6-p2","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":"2.4.6-p2","codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/module-configurable-product"],"files":[{"path":"app/code/Magento/ConfigurableProduct/Ui/DataProvider/Product/Form/Modifier/Data/AssociatedProducts.php","change":"modified","package":"magento/module-configurable-product"}],"stripped":{"tests":["app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml","app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductWithSpecialCharacterNameTest.xml"],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"Special characters in configurable associate product names are  being Converted to html entities.","stepsToReproduce":"1. Create Configurable Product.\n2. Add product name Like Test \"config\"\n3. Create Configuration and Add attribute (color/size) Attributue then select any attribute (color/size) and save the configurable product.\n4. Edit the associte product and then observe.","expectedResult":"Special character in Product Name should be not change to html entities when we edit the associate product.","actualResult":"Special characters in configurable associate product names are  being Converted to html entities.\n\n### Additional Information (*)\nAs I have checked When Saving a Configurable Product for the First Time then this file is being called Magento\\ConfigurableProduct\\Block\\Adminhtml\\Product\\Edit\\Tab\\Variations\\Config\\Matrix.php as on line no 377 (Screenshot-3) where escapeHtml is not implemented for name and when second time while editing associated for the same configurable product then this file  Magento\\ConfigurableProduct\\Ui\\DataProvider\\Product\\Form\\Modifier\\Data\\AssociatedProducts.php (Screenshot-4) is being called where on line 308 the escapeHtml method is implemented for the product name.\n\n**Screenshot-3**\n![image](https://github.com/magento/magento2/assets/113010604/338283b4-f90a-40e3-86c8-f80a59970c54)\n\n**Screenshot-4**\n![image](https://github.com/magento/magento2/assets/113010604/e2d403f2-8d56-4a6f-ba2f-de0cf34ee198)","source":"issue"},"signatures":[],"labels":{"area":["Product"],"component":["Admin"],"priority":"P3","severity":null,"reportedOn":["2.4.6-p2"]},"categories":["Admin","Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"5ee4d548e57839cff011da9e836baa2ffef0222189e40aae61c40dc4af085485","isBugfix":0.9789,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9516,"feature":0.0076,"refactor":0.0162,"tests_only":0.014,"docs_only":0.0049,"dependency":0.0057},"confidence":0.8872},"scope":{"score":0.687,"probabilities":{"0":0.481,"1":0.351,"2":0.168},"confidence":0.0742},"risk":{"score":0.3584,"probabilities":{"0":0.7044,"1":0.2328,"2":0.0628},"confidence":0.3315},"area":{"choice":"catalog","probabilities":{"catalog":0.4979,"checkout":0.0073,"customer":0.0054,"admin":0.4445,"graphql_api":0.0054,"framework":0.0122,"frontend":0.0124,"other":0.0149},"confidence":0.3671},"securityRelevant":0.9155,"reportedVersion":{"choice":"2.4.6-p2","probabilities":{"2.4.0":0.0021,"2.4.0-p1":0.0024,"2.4.1":0.0021,"2.4.1-p1":0.0023,"2.4.2":0.0025,"2.4.2-p1":0.0026,"2.4.2-p2":0.0037,"2.4.3":0.0022,"2.4.3-p1":0.0028,"2.4.3-p2":0.0034,"2.4.3-p3":0.0028,"2.4.4":0.0024,"2.4.4-p1":0.0026,"2.4.4-p10":0.0029,"2.4.4-p11":0.0029,"2.4.4-p12":0.0034,"2.4.4-p13":0.0033,"2.4.4-p14":0.0043,"2.4.4-p15":0.0031,"2.4.4-p16":0.0039,"2.4.4-p17":0.0036,"2.4.4-p18":0.0031,"2.4.4-p2":0.0033,"2.4.4-p3":0.0023,"2.4.4-p4":0.0024,"2.4.4-p5":0.003,"2.4.4-p6":0.0034,"2.4.4-p7":0.003,"2.4.4-p8":0.0031,"2.4.4-p9":0.0028,"2.4.5":0.0034,"2.4.5-p1":0.003,"2.4.5-p10":0.0032,"2.4.5-p11":0.0037,"2.4.5-p12":0.0042,"2.4.5-p13":0.0036,"2.4.5-p14":0.0037,"2.4.5-p15":0.0032,"2.4.5-p16":0.0032,"2.4.5-p17":0.0031,"2.4.5-p2":0.0036,"2.4.5-p3":0.0026,"2.4.5-p4":0.003,"2.4.5-p5":0.0029,"2.4.5-p6":0.0043,"2.4.5-p7":0.0035,"2.4.5-p8":0.0033,"2.4.5-p9":0.0028,"2.4.6":0.0368,"2.4.6-p1":0.007,"2.4.6-p10":0.0028,"2.4.6-p11":0.0034,"2.4.6-p12":0.0049,"2.4.6-p13":0.0041,"2.4.6-p14":0.0035,"2.4.6-p15":0.0044,"2.4.6-p2":0.6279,"2.4.6-p3":0.0152,"2.4.6-p4":0.0066,"2.4.6-p5":0.0068,"2.4.6-p6":0.007,"2.4.6-p7":0.0067,"2.4.6-p8":0.0054,"2.4.6-p9":0.0045,"2.4.7":0.0046,"2.4.7-p1":0.0049,"2.4.7-p10":0.0039,"2.4.7-p2":0.0047,"2.4.7-p3":0.006,"2.4.7-p4":0.0062,"2.4.7-p5":0.0051,"2.4.7-p6":0.007,"2.4.7-p7":0.0048,"2.4.7-p8":0.0042,"2.4.7-p9":0.0033,"2.4.8":0.0046,"2.4.8-p1":0.005,"2.4.8-p2":0.0074,"2.4.8-p3":0.0074,"2.4.8-p4":0.0078,"2.4.8-p5":0.0071,"2.4.9":0.0053,"unspecified":0.0057},"confidence":0.39},"backportWorthy":{"score":1.429,"probabilities":{"0":0.1407,"1":0.2895,"2":0.5698},"confidence":0.1424}},"curated":{"title":"Fixes special characters in associated product names converted to HTML entities","description":"When an associate product of a configurable product is edited, special characters in its name such as \" are converted to HTML entities like &quot;. AssociatedProducts.php prepareVariations now uses $product->getName() for the name without escapeHtml; the product link uses escapeHtml as before.","categories":["Admin","Catalog/Product"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38447 details"}