Zend Framework

Apache 404 Parameters problem

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major 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

Activity

Hide
Wil Sinclair added a comment -

Please evaluate and categorize/assign as necessary.

Show
Wil Sinclair added a comment - Please evaluate and categorize/assign as necessary.
Hide
Matthew Weier O'Phinney added a comment -

I really cannot understand exactly what issue is being reported. Can the original reporter please update the issue and indicate clearly and concisely the expectation and actual results? I.e.:

  • I am trying to do this
  • The result I get is this
  • This is how I did it

Thanks!

Show
Matthew Weier O'Phinney added a comment - I really cannot understand exactly what issue is being reported. Can the original reporter please update the issue and indicate clearly and concisely the expectation and actual results? I.e.:
  • I am trying to do this
  • The result I get is this
  • This is how I did it
Thanks!
Hide
Matthew Weier O'Phinney added a comment -

Unassigning until we get feedback from reporter.

Show
Matthew Weier O'Phinney added a comment - Unassigning until we get feedback from reporter.
Hide
Wil Sinclair added a comment -

It looks like the issue has been updated. Please evaluate and fix/categorize as necessary.

Show
Wil Sinclair added a comment - It looks like the issue has been updated. Please evaluate and fix/categorize as necessary.
Hide
Matthew Weier O'Phinney added a comment -

Added support for REDIRECT_QUERYSTRING in r12303.

Show
Matthew Weier O'Phinney added a comment - Added support for REDIRECT_QUERYSTRING in r12303.
Hide
Wil Sinclair added a comment -

Changing issues in preparation for the 1.7.0 release.

Show
Wil Sinclair added a comment - Changing issues in preparation for the 1.7.0 release.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: