Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18060

rest api bug: the name of the providers can not be the part of the route

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.5.0beta1
    • Fix Version/s: 4.5.0beta2
    • Labels:
      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.

        Attachments

          Activity

            People

            Assignee:
            jv@ez.no Jérôme Vieilledent
            Reporter:
            gg Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: