{"data":{"id":"magento2-38886","source":"github-pr","sourceRef":"magento/magento2#38886","title":"Object Manager not used for Magento\\Csp\\Model\\Mode\\Data\\ModeConfigured","pr":{"number":38886,"url":"https://github.com/magento/magento2/pull/38886","author":"pmzandbergen","mergedAt":"2024-12-24T15:16:03Z","mergeCommit":"a0b4e0a5bba8b68698fc796e82b7f88789965f8c","headCommit":"bcb6d69789b9efd484a769acd3e4382a4fb4c019","baseRef":"2.4-develop","diffSha256":"9481f6b515e5fd0d698b2988bab96977f34c36a7f2df28e4ea75a5021d6009ba"},"issues":[{"number":38875,"url":"https://github.com/magento/magento2/issues/38875","title":"Object Manager not used for Magento\\Csp\\Model\\Mode\\Data\\ModeConfigured","labels":["Area: Framework","Component: Framework/Code","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"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":null,"codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","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-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-csp"],"files":[{"path":"app/code/Magento/Csp/Model/Mode/ConfigManager.php","change":"modified","package":"magento/module-csp"}],"stripped":{"tests":["app/code/Magento/Csp/Test/Unit/Model/Mode/ConfigManagerTest.php"],"docs":[],"outsideCode":[]},"linesChanged":25,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":null},"signatures":[],"labels":{"area":["Framework"],"component":["Framework/Code"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"70ea371107077dfb926d31745efd5f0b346a5c976ef10f981fe1b5b15854b54b","isBugfix":0.6622,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.5306,"feature":0.0102,"refactor":0.4424,"tests_only":0.0093,"docs_only":0.0027,"dependency":0.0048},"confidence":0.373},"scope":{"score":0.8272,"probabilities":{"0":0.351,"1":0.4707,"2":0.1783},"confidence":0.0648},"risk":{"score":0.2798,"probabilities":{"0":0.7436,"1":0.2329,"2":0.0235},"confidence":0.4117},"area":{"choice":"framework","probabilities":{"catalog":0.0063,"checkout":0.0052,"customer":0.0048,"admin":0.0208,"graphql_api":0.0052,"framework":0.8955,"frontend":0.0178,"other":0.0444},"confidence":0.7768},"securityRelevant":0.1416,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0047,"2.4.0-p1":0.0054,"2.4.1":0.0057,"2.4.1-p1":0.0049,"2.4.2":0.0083,"2.4.2-p1":0.0069,"2.4.2-p2":0.0081,"2.4.3":0.0128,"2.4.3-p1":0.0139,"2.4.3-p2":0.013,"2.4.3-p3":0.0088,"2.4.4":0.0132,"2.4.4-p1":0.0101,"2.4.4-p10":0.0067,"2.4.4-p11":0.0093,"2.4.4-p12":0.007,"2.4.4-p13":0.0068,"2.4.4-p14":0.0085,"2.4.4-p15":0.007,"2.4.4-p16":0.0078,"2.4.4-p17":0.0061,"2.4.4-p18":0.0055,"2.4.4-p2":0.0026,"2.4.4-p3":0.0034,"2.4.4-p4":0.0032,"2.4.4-p5":0.0038,"2.4.4-p6":0.0057,"2.4.4-p7":0.0048,"2.4.4-p8":0.0059,"2.4.4-p9":0.0048,"2.4.5":0.0129,"2.4.5-p1":0.0123,"2.4.5-p10":0.0076,"2.4.5-p11":0.0118,"2.4.5-p12":0.0096,"2.4.5-p13":0.0103,"2.4.5-p14":0.0093,"2.4.5-p15":0.0077,"2.4.5-p16":0.0082,"2.4.5-p17":0.0072,"2.4.5-p2":0.0037,"2.4.5-p3":0.005,"2.4.5-p4":0.0054,"2.4.5-p5":0.0069,"2.4.5-p6":0.0063,"2.4.5-p7":0.0077,"2.4.5-p8":0.0052,"2.4.5-p9":0.0049,"2.4.6":0.0198,"2.4.6-p1":0.0154,"2.4.6-p10":0.0101,"2.4.6-p11":0.0126,"2.4.6-p12":0.0106,"2.4.6-p13":0.0112,"2.4.6-p14":0.0094,"2.4.6-p15":0.0081,"2.4.6-p2":0.0047,"2.4.6-p3":0.0074,"2.4.6-p4":0.0091,"2.4.6-p5":0.0071,"2.4.6-p6":0.0107,"2.4.6-p7":0.0073,"2.4.6-p8":0.0064,"2.4.6-p9":0.005,"2.4.7":0.0141,"2.4.7-p1":0.0114,"2.4.7-p10":0.0087,"2.4.7-p2":0.0078,"2.4.7-p3":0.0119,"2.4.7-p4":0.0146,"2.4.7-p5":0.012,"2.4.7-p6":0.0124,"2.4.7-p7":0.0112,"2.4.7-p8":0.0089,"2.4.7-p9":0.0059,"2.4.8":0.0186,"2.4.8-p1":0.0148,"2.4.8-p2":0.0146,"2.4.8-p3":0.0163,"2.4.8-p4":0.0131,"2.4.8-p5":0.0135,"2.4.9":0.0159,"unspecified":0.2627},"confidence":0.0655},"backportWorthy":{"score":1.0984,"probabilities":{"0":0.2922,"1":0.3172,"2":0.3906},"confidence":0.0079}},"curated":{"title":"Uses the Object Manager to create ModeConfigured in the CSP ConfigManager","description":"In the Csp ConfigManager, getConfigured() returns new ModeConfigured, so the Object Manager is not used for Magento\\Csp\\Model\\Mode\\Data\\ModeConfigured. The ConfigManager now has a ModeConfiguredFactory and uses it to create the object with reportOnly and reportUri.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.7-p10":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:19.227Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:29:19.227Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38886 details"}