Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with custom URL rewrites in V2.0.3 #52

Open
johan-lindahl opened this issue Jan 10, 2024 · 0 comments
Open

Problem with custom URL rewrites in V2.0.3 #52

johan-lindahl opened this issue Jan 10, 2024 · 0 comments

Comments

@johan-lindahl
Copy link

This worked in version 2.0.2 and was broken in version 2.0.3 (I think it was broken in commit 1ecf13f).

If there is a "Custom" URL rewrite from request path "old-deleted-page" to target path "start" with redirect type 301. Then we get a "No such entity exception", see stacktrace below).

image

This makes it impossible to create redirects for old delete pages that redirects to the start page in Magento backend.

We see the following stack trace when such "Custom" URL rewrite exist in Magento URL

{
    "0": "No such entity found with matching URL key: start",
    "1": "#1 Magento\\UpwardConnector\\Model\\PageType->getInfo() called at [vendor\/magento\/module-upward-connector\/Model\/Computed\/PageInfo.php:68]\n#2 Magento\\UpwardConnector\\Model\\Computed\\PageInfo->resolve() called at [vendor\/magento\/module-upward-connector\/Resolver\/Computed.php:60]\n#3 Magento\\UpwardConnector\\Resolver\\Computed->resolve() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:206]\n#4 Magento\\Upward\\DefinitionIterator->getFromResolver() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:188]\n#5 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#6 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:212]\n#7 Magento\\Upward\\DefinitionIterator->getFromResolver() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:188]\n#8 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#9 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/Resolver\/Template.php:60]\n#10 Magento\\Upward\\Resolver\\Template->resolve() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:206]\n#11 Magento\\Upward\\DefinitionIterator->getFromResolver() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:188]\n#12 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#13 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:212]\n#14 Magento\\Upward\\DefinitionIterator->getFromResolver() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:188]\n#15 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#16 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:187]\n#17 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#18 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/Resolver\/Conditional.php:90]\n#19 Magento\\Upward\\Resolver\\Conditional->resolve() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:206]\n#20 Magento\\Upward\\DefinitionIterator->getFromResolver() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:188]\n#21 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#22 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:187]\n#23 Magento\\Upward\\DefinitionIterator->getFromDefinedValue() called at [vendor\/magento\/upward\/src\/DefinitionIterator.php:105]\n#24 Magento\\Upward\\DefinitionIterator->get() called at [vendor\/magento\/upward\/src\/Controller.php:64]\n#25 Magento\\Upward\\Controller->__invoke() called at [vendor\/magento\/module-upward-connector\/Controller\/Upward.php:65]\n#26 Magento\\UpwardConnector\\Controller\\Upward->dispatch() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:58]\n#27 Magento\\UpwardConnector\\Controller\\Upward\\Interceptor->___callParent() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:138]\n#28 Magento\\UpwardConnector\\Controller\\Upward\\Interceptor->Magento\\Framework\\Interception\\{closure}() called at [vendor\/magento\/framework\/Interception\/Interceptor.php:153]\n#29 Magento\\UpwardConnector\\Controller\\Upward\\Interceptor->___callPlugins() called at [generated\/code\/Magento\/UpwardConnector\/Controller\/Upward\/Interceptor.php:23]\n#30 Magento\\UpwardConnector\\Controller\\Upward\\Interceptor->dispatch() called at [vendor\/magento\/framework\/App\/Http.php:116]\n#31 Magento\\Framework\\App\\Http->launch() called at [vendor\/magento\/framework\/App\/Bootstrap.php:264]\n#32 Magento\\Framework\\App\\Bootstrap->run() called at [pub\/index.php:30]\n",
    "url": "\/",
    "script_name": "\/index.php",
    "report_id": "b54efa92d62abcb0e8ca20f17b023c1e2f8ef9dfea13d5aeaf929412ccfe7d92"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant