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

REST : Having a "v" inside provider prefix makes the request parsing fail

    XMLWordPrintable

Details

    Description

      For example, a provider prefix like "devtools" just fails and displays :

      {
          error_message: "Not Found"
      }
      

      This is due to prefix filter regexp pattern in *ezpRestDefaultRegexpPrefixFilter::getPrefixPattern()* :

          protected function getPrefixPattern()
          {
              return "@^{$this->apiPart}/(?:(?P<provider>[^(v\d+|/)]+)/)?(?:(?P<version>v\d+))?@";
          }
      

      Attachments

        Activity

          People

            jv@ez.no jv@ez.no
            jv@ez.no jv@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: