ZF-3527: Zend_Controller_Request_Http url encoded BASE_URL
Description
In Zend_Controller_Request_Http
public function getRequestUri()
{
if (empty($this->_requestUri)) {
$this->setRequestUri();
}
return $this->_requestUri;
}
if the BASE_URL is encoded the name of the module, controller is not correct Let's say that we have the following URL
/~user/module/controller/action
which is encoded to
/%7Euser/module/controller/action
the module name is not ok
maybe
return $this->_requestUri;
should be
return urldecode($this->_requestUri);
Comments
Posted by A.J. Brown (ajbrown) on 2010-04-15T14:39:45.000+0000
Fix and Tests
Posted by A.J. Brown (ajbrown) on 2010-04-15T14:40:52.000+0000
Waiting to be patched.
Posted by A.J. Brown (ajbrown) on 2010-06-16T10:45:16.000+0000
Sorry, this was sitting as In Progress instead of "Resolved".
Posted by A.J. Brown (ajbrown) on 2010-06-16T10:45:55.000+0000
Re-opening, since the patch hasn't actually been applied yet.
Posted by Ralph Schindler (ralph) on 2010-11-18T11:59:02.000+0000
Fixed in r23365 in trunk and release branch 1.11 at 23369
Posted by Artiom Lunev (_artiom) on 2010-12-06T09:49:02.000+0000
This change breaks backward compatibility.
Test case:
Posted by Jonathan Dunn (jmd) on 2010-12-06T10:15:04.000+0000
also reported in http://framework.zend.com/issues/browse/ZF-10787
Posted by Artiom Lunev (_artiom) on 2010-12-15T18:18:53.000+0000
Recent change to 1.11.1 brakes applications that send / as encoded parameter to action. Attaching patch with tests.
Posted by Martin Stricker (strickr) on 2011-02-01T15:10:08.000+0000
Recent patch fixes issue ZF-11017 as well
Posted by Bradley Holt (bradley.holt) on 2011-02-02T07:30:58.000+0000
Once this issue is resolved, please run the unit tests for ZF-10964 (there is a group by the same name) or all of the Zend_Rest tests. I've made some changes there that may need to be reverted depending on the fix here.
Posted by Holger Schletz (hschletz) on 2011-04-29T18:09:30.000+0000
According to the comments, the patch appears to work, which I can confirm. Any reason why there has been no progress since?
Posted by Ralph Schindler (ralph) on 2011-05-04T17:03:00.000+0000
Potential fix in trunk at r24002 - asking for watchers to test now.
Posted by Ralph Schindler (ralph) on 2011-05-04T17:50:28.000+0000
Fixed in trunk at r24002 Fixed in release branch 1.11 at r24003