Fix for URIs with a query string not matching#3712
Fix for URIs with a query string not matching#3712BenjaminNolan wants to merge 2 commits intozendframework:masterfrom
Conversation
|
https://travis-ci.org/zendframework/zf2/jobs/4642977/#L632 Your fix introduces a new test failure. It looks like the released behavior is intentional -- but as it introduces a regression, we need to:
I think @SocalNick was involved with the query route functionality; if he wasn't, @DASPRiD can likely remember who. We need one of them to assist with this fix. |
|
I have inquired about it, but not sure who made it originally. For what it's worth, the opposite change was just added: d4c256a I noticed that some of our routes weren't behaving after said patch, but we have adjusted accordingly already... |
|
I asked @DASPRiD about it in the IRC channel shortly after I submitted the pull request (and thought I'd also mentioned this here, but apparently not!), and he had no idea who added the What is the rationale for adding this behaviour? Also, I've been trying to guess at the correct way to fix this problem as the reference guide does not seem to have been updated yet, and And yeesh, is that not the queen of run-on sentences or what? |
|
@Syniq I think we should likely fix this -- I've run into the issue myself, but hadn't had a chance to diagnose it. We just need to identify what use case resulted in the change, and see if we can accommodate both the old behavior and the new. |
|
@weierophinney So, the new behaviour is to add in a Query child route to the affected route which has the accepted parameters as defaults. The only way I can think of to check automatically whether the system expects the old behaviour is to scour the router and check for any Query routes. If there aren't any, then you're using the old behaviour. :/ Not particularly graceful, but as I said its the only way I can think of at 10 past 7 on a Friday evening when I'm still at my desk and should have left 2 hours ago. ;) |
|
Hi. I do not understand what is wrong with that, i cannot reproduce it. |
|
Fixed with #3778 |
Fix for #3711 — URIs with query strings no longer match in 2.1, matched fine in 2.0.5.