(on Thursday, 02 October 2008, 10:08 AM -0400):
> he already did ;)
Oops! You're right -- I missed the attachment. Reviewing now. :)
> On Thu, Oct 2, 2008 at 9:54 AM, Matthew Weier O'Phinney <matthew@zend.com>
> wrote:
>
> -- Whitcraft, Jon <jwhitcraft@Brickyard.com> wrote
> (on Thursday, 02 October 2008, 09:29 AM -0400):
> > Ok so I have created a test case for this and a patch to fix the problem.
> > Please let me know what everyone thinks and I will create an issue and
> then
> > submit the patch once it gets approved.
>
> Can you attach the patch now for me to review? I'm curious to see if
> it's something we want to include, or something that would be better
> included in an alternate request object implementation (much as we did
> the Apache 404 handler request object).
>
>
> > From: Whitcraft, Jon [mailto:jwhitcraft@Brickyard.com]
> > Sent: Thursday, October 02, 2008 8:59 AM
> > To: fw-mvc@lists.zend.com
> > Subject: [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?
>
> --
> Matthew Weier O'Phinney
> Software Architect | matthew@zend.com
> Zend Framework | http://framework.zend.com/
>
>
--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论