{"data":{"id":"magento2-38883","source":"github-pr","sourceRef":"magento/magento2#38883","title":"graphql (magento 2.4.6-p4 ) - error when try to get cms page with not active status","pr":{"number":38883,"url":"https://github.com/magento/magento2/pull/38883","author":"digitalrisedorset","mergedAt":"2025-08-28T14:34:53Z","mergeCommit":"f92bc513490b1135bf385175732afa73dca70f06","headCommit":"b1febc640961bd0aadcf50dbd32afa15e451d8ee","baseRef":"2.4-develop","diffSha256":"cca2e7e97aaba15fc27a02d3d6c44e1f8a6b6214ae7671b69496704f5556af88"},"issues":[{"number":38877,"url":"https://github.com/magento/magento2/issues/38877","title":"graphql (magento 2.4.6-p4 ) - error when try to get cms page with not active status","labels":["Area: Content / CMS","Component: GraphQL","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: PR in progress","Progress: done","Reported on 2.4.6-p4","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.6-p4","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":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","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":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["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","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-url-rewrite-graph-ql"],"files":[{"path":"app/code/Magento/UrlRewriteGraphQl/Model/Resolver/Route.php","change":"modified","package":"magento/module-url-rewrite-graph-ql"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":29,"mergeBatched":false,"excluded":null,"sections":{"description":"Actual response \n```\n{\n  \"errors\": [\n    {\n      \"message\": \"Internal server error\",\n      \"locations\": [\n        {\n          \"line\": 2,\n          \"column\": 3\n        }\n      ],\n      \"path\": [\n        \"route\"\n      ]\n    }\n  ],\n  \"data\": {\n    \"route\": null\n  }\n}\n```","stepsToReproduce":"1. Install fresh magento 2.4.6-p4 with sample data.\n2. go to  magento admin - Content - Pages\n3. edit \"About us\" page - set status \"Disabled\"\n4. send this graphQl query\n ```\n{\n  route(url: \"about-us\") {\n    redirect_code\n    relative_url\n    type\n  }\n}\n```","expectedResult":"Expected response\n```\n{\n  \"data\": {\n    \"route\": null\n  }\n}\n```","actualResult":"Actual response \n```\n{\n  \"errors\": [\n    {\n      \"message\": \"Internal server error\",\n      \"locations\": [\n        {\n          \"line\": 2,\n          \"column\": 3\n        }\n      ],\n      \"path\": [\n        \"route\"\n      ]\n    }\n  ],\n  \"data\": {\n    \"route\": null\n  }\n}\n```","source":"issue"},"signatures":["{\"exception\":\"[object] (GraphQL\\\\Error\\\\Error(code: 0): No such entity. at )","[previous exception] [object] (Magento\\\\Framework\\\\Exception\\\\NoSuchEntityException(code: 0): No such entity. at )\"} []"],"labels":{"area":["Content / CMS"],"component":["GraphQL"],"priority":"P2","severity":null,"reportedOn":["2.4.6-p4"]},"categories":["Content","GraphQL"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"965886d17785ff5230c2f0221c2e4e116a23ebaf351a7ce86e850f2da53fdd99","isBugfix":0.9777,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9491,"feature":0.0081,"refactor":0.0235,"tests_only":0.0078,"docs_only":0.0056,"dependency":0.0059},"confidence":0.8819},"scope":{"score":0.8922,"probabilities":{"0":0.2838,"1":0.5402,"2":0.176},"confidence":0.1049},"risk":{"score":0.1896,"probabilities":{"0":0.8318,"1":0.1468,"2":0.0214},"confidence":0.5708},"area":{"choice":"graphql_api","probabilities":{"catalog":0.0038,"checkout":0.0033,"customer":0.003,"admin":0.0066,"graphql_api":0.9592,"framework":0.0076,"frontend":0.0074,"other":0.0091},"confidence":0.9089},"securityRelevant":0.0066,"reportedVersion":{"choice":"2.4.6-p4","probabilities":{"2.4.0":0.0023,"2.4.0-p1":0.0025,"2.4.1":0.0023,"2.4.1-p1":0.0024,"2.4.2":0.0023,"2.4.2-p1":0.0025,"2.4.2-p2":0.0024,"2.4.3":0.0024,"2.4.3-p1":0.0027,"2.4.3-p2":0.0029,"2.4.3-p3":0.003,"2.4.4":0.0026,"2.4.4-p1":0.0026,"2.4.4-p10":0.0034,"2.4.4-p11":0.0036,"2.4.4-p12":0.0036,"2.4.4-p13":0.0038,"2.4.4-p14":0.0037,"2.4.4-p15":0.0035,"2.4.4-p16":0.0037,"2.4.4-p17":0.0034,"2.4.4-p18":0.003,"2.4.4-p2":0.0023,"2.4.4-p3":0.0024,"2.4.4-p4":0.0033,"2.4.4-p5":0.0025,"2.4.4-p6":0.0028,"2.4.4-p7":0.0027,"2.4.4-p8":0.0031,"2.4.4-p9":0.0028,"2.4.5":0.003,"2.4.5-p1":0.0027,"2.4.5-p10":0.003,"2.4.5-p11":0.0033,"2.4.5-p12":0.0039,"2.4.5-p13":0.0039,"2.4.5-p14":0.0042,"2.4.5-p15":0.0029,"2.4.5-p16":0.0033,"2.4.5-p17":0.0029,"2.4.5-p2":0.0026,"2.4.5-p3":0.003,"2.4.5-p4":0.0037,"2.4.5-p5":0.0029,"2.4.5-p6":0.0032,"2.4.5-p7":0.0031,"2.4.5-p8":0.003,"2.4.5-p9":0.0026,"2.4.6":0.0307,"2.4.6-p1":0.0042,"2.4.6-p10":0.0042,"2.4.6-p11":0.0043,"2.4.6-p12":0.0037,"2.4.6-p13":0.0042,"2.4.6-p14":0.0106,"2.4.6-p15":0.0055,"2.4.6-p2":0.0029,"2.4.6-p3":0.0118,"2.4.6-p4":0.6578,"2.4.6-p5":0.0119,"2.4.6-p6":0.0082,"2.4.6-p7":0.0064,"2.4.6-p8":0.0063,"2.4.6-p9":0.0059,"2.4.7":0.0043,"2.4.7-p1":0.004,"2.4.7-p10":0.0037,"2.4.7-p2":0.0033,"2.4.7-p3":0.0044,"2.4.7-p4":0.0047,"2.4.7-p5":0.0044,"2.4.7-p6":0.005,"2.4.7-p7":0.0042,"2.4.7-p8":0.0033,"2.4.7-p9":0.003,"2.4.8":0.0035,"2.4.8-p1":0.0039,"2.4.8-p2":0.0046,"2.4.8-p3":0.0049,"2.4.8-p4":0.0049,"2.4.8-p5":0.0046,"2.4.9":0.0043,"unspecified":0.0027},"confidence":0.4282},"backportWorthy":{"score":1.6209,"probabilities":{"0":0.0786,"1":0.2219,"2":0.6995},"confidence":0.3171}},"curated":{"title":"Fixes the GraphQL route query erroring for a disabled CMS page","description":"A graphql route query for a cms page with not active status returns Internal server error, but the expected response is data route null. The Route resolver in UrlRewriteGraphQl now has a try/catch block around getData and returns null on NoSuchEntityException.","categories":["Content","GraphQL"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38883 details"}