magento2
magento2 copied to clipboard
graphql (magento 2.4.6-p4 ) - error when try to get cms page with not active status
Preconditions and environment
- Magento version: 2.4.6-p4
Steps to reproduce
- Install fresh magento 2.4.6-p4 with sample data.
- go to magento admin - Content - Pages
- edit "About us" page - set status "Disabled"
- send this graphQl query
{
route(url: "about-us") {
redirect_code
relative_url
type
}
}
Expected result
Expected response
{
"data": {
"route": null
}
}
Actual result
Actual response
{
"errors": [
{
"message": "Internal server error",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"route"
]
}
],
"data": {
"route": null
}
}
Additional information
Also in magento log (exception.log) you can find the error:
GraphQL (2:3)
1: {
2: route(url: "about-us") {
^
3: redirect_code
{"exception":"[object] (GraphQL\\Error\\Error(code: 0): No such entity. at /app/magento/vendor/webonyx/graphql-php/src/Error/Error.php:155)
[previous exception] [object] (Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): No such entity. at /app/magento/vendor/magento/module-cms-graph-ql/Model/Resolver/DataProvider/Page.php:91)"} []
Release note
No response
Triage and priority
- [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- [X] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Hi @nikolaykravchenko. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance- upcoming 2.4.x release- For more details, review the Magento Contributor Assistant documentation.
- Add a comment to assign the issue:
@magento I am working on this - To learn more about issue processing workflow, refer to the Code Contributions.
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
- [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
- [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
- [ ] 3. Add
Area: XXXXXlabel to the ticket, indicating the functional areas it may be related to. - [ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here! - [ ] 5. Add label
Issue: Confirmedonce verification is complete. - [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hi @nikolaykravchenko,
Thanks for your reporting and collaboration.
We have verified the issue in Latest 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.
Steps to reproduce
- Install fresh magento 2.4.6-p4 with sample data.
- go to magento admin - Content - Pages
- edit page - set status "Disabled"
- send this graphQl query
Error in Exception Logs :
GraphQL (6:2)
5: {
6: route(url: "enable-cookies") {
^
7: redirect_code
{"exception":"[object] (GraphQL\\Error\\Error(code: 0): No such entity. at /usr/local/var/www/magentok/magento2/vendor/webonyx/graphql-php/src/Error/Error.php:155)
[previous exception] [object] (Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): No such entity. at /usr/local/var/www/magentok/magento2/app/code/Magento/CmsGraphQl/Model/Resolver/DataProvider/Page.php:91)"} []
Hence Confirming the issue.
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12302 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@magento I am working on this
Hi @nikolaykravchenko,
Adobe Commerce Engineering team started working on this issue. We will reach out to you if we need more information and you will get notified once the issue is fixed. Please leave comments for any further questions.
Thank you!
Hello,
As I can see this issue got fixed in the scope of the internal Jira ticket AC-12302 by the internal team Related commits:https://github.com/search?q=repo%3Amagento%2Fmagento2+AC-12302&type=commits
Based on the Jira ticket, the target version is 2.4.9-alpha3.
Thanks.