Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Oct 2013 at 16:44 UTC
Updated:
29 Jul 2014 at 23:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
neclimdulrun tests.
Comment #2
tim.plunkettI hit this while working on #2091691: Convert test non-form page callbacks to routes and controllers. Very confusing, glad it wasn't me.
Comment #3
tim.plunkettEr, meant to do this.
Issue #2103145 by neclimdul, chx, dawehner: ParamaterConverter mangles raw values.Comment #4
dawehner+1
Comment #5
chx commented// foreach copies the values from the array it iterates even if they are references so use it to break references.
Comment #6
tim.plunkettCombining that and my docs additions as discussed in IRC.
Comment #7
catchFrom the comment I don't understand what's going to happen if we don't break those references - it'd be good to expand that a bit with an extra sentence or two to explain that the raw values end up getting replaced with the converted values if we don't do this. Bug took a long time to track down so worth adding as verbose docs as possible.
Comment #9
damiankloip commentedHow about this?
Comment #10
neclimdulI was thinking more http://24.media.tumblr.com/b7cd62f4c9fd440bc0b105dc7ba2275f/tumblr_mpfqk... but that works.
Comment #11
catchOK that's great. And the test means it shouldn't get broken again anyway.
Committed/pushed to 8.x, thanks!
Comment #12.0
(not verified) commentedUpdated issue summary.