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

REST api: can not add filters

    XMLWordPrintable

Details

    Description

      in function ezpMvcConfiguration::runCustomFilters, there is a bug that prevents any filter to be loaded:
      the name of the filter interface is built like this:
      ezpRestPreRoutingFiltersFilterInterface
      instead of
      ezpRestPreRoutingFilterInterface
      So whatever interface your filter class implements, it will never satisfy requirements an be rejected

      This happens because of the line 149:
      $interfaceName = 'ezpRest' . $filterName . 'FilterInterface';
      should be
      $interfaceName = 'ezpRest' . $type . 'FilterInterface';

      Easy fix isnt'it? The question is: how comes nobody found it so far?

      Attachments

        Activity

          People

            dp@ez.no dp@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: