Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
4.5.0, 4.6.0
-
None
Description
We are trying to extend the REST interface on an eZ 4.6. We followed the manual at http://doc.ez.no/eZ-Publish/Technical-manual/4.5/Features/Rest-API/Extension-functionality/Steps/Step-3-Extending-the-REST-API . But our API provider had the shortcut "svr", so the rest.ini.append.php read:
<?php /*
[ApiProvider]
ProviderClass[svr]=svrRestApiProvider
*/ ?>
All requests to .../api/svr/v1/... failed with a "404" error.
After trying around for a long time, we finally renamed the API provider ID to "sxr" and suddenly everything worked fine.
Steps to reproduce
1. Create the ezxRestApiProvider extension from the documentation example
2. Set the rest.ini.append.php of the extension to
[ApiProvider] ProviderClass[kpt]=ezxRestApiProvider
3. Test it from your url: http://site/api/kpt/v2/foo.
It works.
4. Set the rest.ini.append.php of the extension to something with V
[ApiProvider] ProviderClass[kvt]=ezxRestApiProvider
5. Test it from your url: http://site/api/kvt/v2/foo.
You will receive a
Attachments
Issue Links
- duplicates
-
EZP-18937 REST : Having a "v" inside provider prefix makes the request parsing fail
- Closed