Details
-
Bug
-
Resolution: Fixed
-
High
-
4.5.0beta1
-
None
Description
test case: define a 'test' provider in rest.ini, give it a 'test' route:
public function getRoutes() { $routes = array( new ezpRestVersionedRoute( new ezpMvcRailsRoute( '/test', 'ezpTestProvider2', 'test' ), 1 ), ); return $routes; }
result: route will not be match
error: ezpRestPrefixFilterInterface::filterRequestUri, where it removes the name of the tokens fropm the uri. The str_replace should only be done on 1st element matching.