2008年10月2日星期四

[fw-mvc] Possible Bug in Zend_Controller_Request_Http

So here’s the back story.

 

We are setting up our dev server to be more secure.  Meaning that we are going to have to use ssh to port forward a port in so we can view our dev sites.  Which is no big deal and it make it more secure.  What I’m having a problem with is that our zf based sites are not working with giving me this error:

 

exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (http:)' in /var/www/html/zend/zf-1.6.0/Zend/Controller/Dispatcher/Standard.php:249

Stack trace:

#0 /var/www/html/zend/zf-1.6.0/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))

#1 /var/www/html/ims/500/application/library/Site/App.php(171): Zend_Controller_Front->dispatch()

#2 /var/www/html/ims/500/index.php(9): Site_App->startMvc()

#3 {main}

 

The request object looks like this when it gets to the dispatch object:

 

 

Zend_Controller_Request_Http Object
(
    [_paramSources:protected] => Array
        (
            [0] => _GET
            [1] => _POST
        )
 
    [_requestUri:protected] => http://dev.indy500.com/
    [_baseUrl:protected] => 
    [_basePath:protected] => 
    [_pathInfo:protected] => http://dev.indy500.com/
    [_params:protected] => Array
        (
            [controller] => http:
            [] => dev.indy500.com
            [action] => index
            [module] => default
        )
 
    [_aliases:protected] => Array
        (
        )
 
    [_dispatched:protected] => 1
    [_module:protected] => default
    [_moduleKey:protected] => module
    [_controller:protected] => http:
    [_controllerKey:protected] => controller
    [_action:protected] => index
    [_actionKey:protected] => action
)

 

 

Now the problem I’m having is that using the port forwarding this way makes the Request Http object think that the requestURI is http://dev.indy500.com instead of / like it does when I’m not using port forwarding.

 

Would it be possible to have it when it set’s the requestURI to make sure it doesn’t contain any of the host name?

 

http://www.whitcraftconsulting.com/images/php5_zce_logo_new.gif

Jon Whitcraft
Indianapolis Motor Speedway
jwhitcraft@brickyard.com

P: (317) 492-8623 - F: (317) 492-6419


 


********************
********************
This E-mail (and attachments) may contain confidential/privileged information intended only for the named addressee(s). If you are not an intended recipient, do not read, copy, disseminate or take any action based on the content of this E-mail. Please notify the sender by reply E-mail and erase this E-mail from your system. Your assistance is appreciated. E-mail transmission may not be secure or error-free. The company is not responsible for any loss/damage arising from any virus transmitted.
********************
********************

没有评论: