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

    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

            jv@ez.no jv@ez.no
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: