{"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":"e18a795f8505bd1b85a62e96c992d3f024d632903723f3a95c0ac60e30816218","isBugfix":0.9793,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9352,"feature":0.0068,"refactor":0.012,"tests_only":0.0134,"docs_only":0.0046,"dependency":0.0049,"cleanup":0.0231},"confidence":0.8548},"scope":{"score":0.6888,"probabilities":{"0":0.4831,"1":0.3451,"2":0.1718},"confidence":0.073},"risk":{"score":0.3767,"probabilities":{"0":0.6889,"1":0.2455,"2":0.0656},"confidence":0.3088},"area":{"choice":"catalog","probabilities":{"catalog":0.4777,"checkout":0.0071,"customer":0.0055,"admin":0.4657,"graphql_api":0.0054,"framework":0.0126,"frontend":0.0121,"other":0.0139},"confidence":0.3665},"securityRelevant":0.919,"reportedVersion":{"choice":"2.4.6-p2","probabilities":{"2.4.0":0.0021,"2.4.0-p1":0.0023,"2.4.1":0.0021,"2.4.1-p1":0.0023,"2.4.2":0.0023,"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.0039,"2.4.3-p3":0.0027,"2.4.4":0.0023,"2.4.4-p1":0.0026,"2.4.4-p10":0.003,"2.4.4-p11":0.003,"2.4.4-p12":0.0034,"2.4.4-p13":0.0037,"2.4.4-p14":0.0039,"2.4.4-p15":0.0034,"2.4.4-p16":0.0037,"2.4.4-p17":0.0035,"2.4.4-p18":0.0028,"2.4.4-p2":0.0028,"2.4.4-p3":0.0023,"2.4.4-p4":0.0024,"2.4.4-p5":0.0028,"2.4.4-p6":0.0032,"2.4.4-p7":0.0028,"2.4.4-p8":0.0032,"2.4.4-p9":0.0027,"2.4.5":0.003,"2.4.5-p1":0.0028,"2.4.5-p10":0.003,"2.4.5-p11":0.0037,"2.4.5-p12":0.0037,"2.4.5-p13":0.0034,"2.4.5-p14":0.0037,"2.4.5-p15":0.003,"2.4.5-p16":0.0032,"2.4.5-p17":0.0031,"2.4.5-p2":0.0033,"2.4.5-p3":0.0027,"2.4.5-p4":0.003,"2.4.5-p5":0.0033,"2.4.5-p6":0.004,"2.4.5-p7":0.0034,"2.4.5-p8":0.0032,"2.4.5-p9":0.0026,"2.4.6":0.0285,"2.4.6-p1":0.0069,"2.4.6-p10":0.0027,"2.4.6-p11":0.0033,"2.4.6-p12":0.0057,"2.4.6-p13":0.0037,"2.4.6-p14":0.0036,"2.4.6-p15":0.0041,"2.4.6-p2":0.6419,"2.4.6-p3":0.0154,"2.4.6-p4":0.0068,"2.4.6-p5":0.007,"2.4.6-p6":0.008,"2.4.6-p7":0.0066,"2.4.6-p8":0.0057,"2.4.6-p9":0.0043,"2.4.7":0.0046,"2.4.7-p1":0.005,"2.4.7-p10":0.0038,"2.4.7-p2":0.0046,"2.4.7-p3":0.0069,"2.4.7-p4":0.0055,"2.4.7-p5":0.005,"2.4.7-p6":0.0066,"2.4.7-p7":0.0046,"2.4.7-p8":0.0043,"2.4.7-p9":0.0031,"2.4.8":0.0046,"2.4.8-p1":0.0049,"2.4.8-p2":0.007,"2.4.8-p3":0.0074,"2.4.8-p4":0.0073,"2.4.8-p5":0.0059,"2.4.9":0.0052,"unspecified":0.0049},"confidence":0.4073},"backportWorthy":{"score":1.4221,"probabilities":{"0":0.1433,"1":0.2913,"2":0.5654},"confidence":0.1376}},"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"}