{"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":"e08676fa48da6d2629ed4571b2bb3282877ba83430b7f1becc35822ec2c1cc7f","isBugfix":0.9772,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9421,"feature":0.008,"refactor":0.0206,"tests_only":0.0071,"docs_only":0.005,"dependency":0.0052,"cleanup":0.012},"confidence":0.8697},"scope":{"score":0.9218,"probabilities":{"0":0.2682,"1":0.5418,"2":0.19},"confidence":0.1024},"risk":{"score":0.1869,"probabilities":{"0":0.8342,"1":0.1448,"2":0.021},"confidence":0.5758},"area":{"choice":"graphql_api","probabilities":{"catalog":0.0039,"checkout":0.0032,"customer":0.003,"admin":0.007,"graphql_api":0.9579,"framework":0.0081,"frontend":0.0075,"other":0.0094},"confidence":0.9062},"securityRelevant":0.0062,"reportedVersion":{"choice":"2.4.6-p4","probabilities":{"2.4.0":0.0022,"2.4.0-p1":0.0023,"2.4.1":0.0021,"2.4.1-p1":0.0023,"2.4.2":0.0021,"2.4.2-p1":0.0024,"2.4.2-p2":0.0023,"2.4.3":0.0023,"2.4.3-p1":0.0025,"2.4.3-p2":0.0027,"2.4.3-p3":0.0029,"2.4.4":0.0023,"2.4.4-p1":0.0024,"2.4.4-p10":0.0029,"2.4.4-p11":0.0031,"2.4.4-p12":0.0032,"2.4.4-p13":0.0037,"2.4.4-p14":0.0032,"2.4.4-p15":0.0034,"2.4.4-p16":0.0035,"2.4.4-p17":0.0031,"2.4.4-p18":0.0027,"2.4.4-p2":0.0023,"2.4.4-p3":0.0024,"2.4.4-p4":0.0036,"2.4.4-p5":0.0023,"2.4.4-p6":0.0026,"2.4.4-p7":0.0025,"2.4.4-p8":0.0028,"2.4.4-p9":0.0027,"2.4.5":0.0027,"2.4.5-p1":0.0026,"2.4.5-p10":0.0027,"2.4.5-p11":0.0032,"2.4.5-p12":0.0037,"2.4.5-p13":0.0033,"2.4.5-p14":0.0038,"2.4.5-p15":0.0028,"2.4.5-p16":0.0034,"2.4.5-p17":0.0028,"2.4.5-p2":0.0026,"2.4.5-p3":0.0028,"2.4.5-p4":0.0039,"2.4.5-p5":0.0028,"2.4.5-p6":0.0036,"2.4.5-p7":0.0032,"2.4.5-p8":0.003,"2.4.5-p9":0.0026,"2.4.6":0.0303,"2.4.6-p1":0.0042,"2.4.6-p10":0.0034,"2.4.6-p11":0.0046,"2.4.6-p12":0.0035,"2.4.6-p13":0.005,"2.4.6-p14":0.0111,"2.4.6-p15":0.0056,"2.4.6-p2":0.0031,"2.4.6-p3":0.0099,"2.4.6-p4":0.6676,"2.4.6-p5":0.0114,"2.4.6-p6":0.009,"2.4.6-p7":0.007,"2.4.6-p8":0.0065,"2.4.6-p9":0.0059,"2.4.7":0.0041,"2.4.7-p1":0.0039,"2.4.7-p10":0.0036,"2.4.7-p2":0.0032,"2.4.7-p3":0.0042,"2.4.7-p4":0.0048,"2.4.7-p5":0.0042,"2.4.7-p6":0.0053,"2.4.7-p7":0.0041,"2.4.7-p8":0.0033,"2.4.7-p9":0.0029,"2.4.8":0.0034,"2.4.8-p1":0.0038,"2.4.8-p2":0.0044,"2.4.8-p3":0.0045,"2.4.8-p4":0.0045,"2.4.8-p5":0.0048,"2.4.9":0.0039,"unspecified":0.0027},"confidence":0.4412},"backportWorthy":{"score":1.6407,"probabilities":{"0":0.0745,"1":0.2104,"2":0.7151},"confidence":0.3418}},"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"}