Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 May 2015 at 19:21 UTC
Updated:
6 Oct 2023 at 07:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
catchComment #2
catchComment #3
jhedstromThis can be reproduced without an entity reference field. Adding a simple 'Content ID' argument is enough to throw the exception.
My guess is that views will need to store the menu path with more detail than '%'. Looking into this now.
Comment #4
jhedstromI haven't been able to figure out the exact fix here, but this is a test that illustrates the fatal error.
Comment #6
jhedstromIn
PathPluginBase::getRoute(), this logic:is what allows
%nodeto properly work (route parameter ofarg_0 => node), while%fails because it gets assigned to a route parameter (arg_0 => 0) that the routing system doesn't know how to provide.Comment #8
xjmThe core committers and Views maintainers (alexpott, xjm, effulgentsia, tim.plunkett, and dawehner) agreed that this is a major issue. This is a very common usecase and an exception is being thrown potentially on a lot of user-facing pages when the site builder follows the instructions in the Views UI. The issue is not critical because there is a workaround (using the named argument) and no actual data loss.
Comment #9
xjmComment #11
lendudeThis is still a problem. Test only patch didn't apply anymore, rerolled.
Comment #13
lendudeStab at a fix for this. Not sure if this is the best way to go but it turns the test green so that's something.
Comment #17
sathish.redcrackle commentedI have modified the patch file. Now the test will get passed.
Comment #18
mikeker commented@sathish.redcrackle, thank you for the updated patch! Please include an interdiff so we can easily tell what was changed from one patch to the next. Also, set the status to Needs review when new patches are uploaded so that testbot runs.
Comment #22
socialnicheguru commentedPath does not apply to 8.5 because the MenuLinkTest.php path has changed to core/modules/views/tests/src/Functional/Plugin/MenuLinkTest.php
Comment #28
danielvezaAs per #22, Needs reroll and to verify this issue still exists.
Comment #29
danielvezaComment #32
rpayanmComment #33
rpayanmComment #36
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #39
vsujeetkumar commentedTried to rebase the base to 9.5.x (See.. Rebase Document), Something went wrong but not sure, So please have a look and advise. Created a MR, Please ignore if not required.