Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.0
-
Fix Version/s: 1.7.0
-
Component/s: Zend_Controller
-
Labels:None
Description
- I am trying to do this
-Initialize FrontController with Request_Apache404
-Set my .htacess with ErrorHandler 404 to bootstrap.
-Write my Controllers and wait for parameters in the way as documentation say "?parameter=value" or "parameter/value"
-In example 1 : /controllerexample/actionexample/format/json
-In example 2 : /controllerexample/actionexample?format=json
- The result I get is this
-In example 1: Work OK. Json output.
-In example 2:The same output as format wasn't send.
- This is how I did it
-The class Zend_Controller_Request_Apache404 isnt work with $_SERVER['REDIRECT_QUERYSTRING'] where the Apache 404 ErrorHandler method let _GET variables of original request.
May-Be Solution Example: __'parse_str($_SERVER['REDIRECT_QUERYSTRING'],$GET);'_ or write logic of _if-elseif-else_ in Method overwrited method 'setRequestUri' in 'Zend_Controller_Request_Apache404' (if you see the code of this methods in last lines do something about re-generate $_GET but only when parameter is passed)
Issue Links
| This issue is related to: | ||||
| ZF-9776 | Query string params not accessible when bootstrapping via Apache ErrorDocument 404 |
|
|
|
Please evaluate and categorize/assign as necessary.