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

ezrest : problem with writing your own rest provider and the extension.xml file

    XMLWordPrintable

Details

    Description

      Hi

      I have my own rest provider and in my extension.xml file I put:

      <?xml version="1.0" encoding="utf-8" ?>                                                                                                                                                                     
      <software>                                                                                                                                                                                                  
          <metadata>                                                                                                                                                                                              
              <name>eZ Rest Tests extension</name>                                                                                                                                                                
              <version>1.0.0</version>                                                                                                                                                                            
              <copyright>Copyright (C) 1999-2010 eZ Systems AS</copyright>                                                                                                                                        
              <license>GNU General Public License v2.0</license>                                                                                                                                                  
          </metadata>                                                                                                                                                                                             
                                                                                                                                                                                                                  
          <dependencies>                                                                                                                                                                                          
              <requires>                                                                                                                                                                                          
                  <extension name="rest" />                                                                                                                                                                       
                  <extension name="oauth" />                                                                                                                                                                      
                  <extension name="ezprestapiprovider" />                                                                                                                                                         
              </requires>                                                                                                                                                                                         
              <extends>                                                                                                                                                                                           
              </extends>                                                                                                                                                                                          
          </dependencies>                                                                                                                                                                                         
      </software>
      

      ( I have also tried without a dependency to ezprestapiprovider, but with same result )

      When I try to access my provider like :
      http://mydomain.com/api/test/v1/mytest
      I sometimes get fatal error, with this in the debug :

      [ Feb 08 2011 16:39:39 ] Unexpected error, the message was : No routes are defined in the router. in /data1/www/apache2php52/ezp/.run/lib/ezc/MvcTools/src/router.php on line 78
      

      Some other times I get 404, not found returned.. So seems like caching is a parameter here..
      Anyway, if I remove the extension.xml file and then clear cache everything works fine...

      Steps to reproduce

      Attachments

        Activity

          People

            unknown unknown
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: