Fatal error with samplecontainer
--------------------------------

                 Key: SHINDIG-1017
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1017
             Project: Shindig
          Issue Type: Bug
          Components: PHP
    Affects Versions: trunk
            Reporter: Jakub Vrána
             Fix For: trunk


Opening http://shindig/gadgets/files/samplecontainer/samplecontainer.html with 
http://shindig/gadgets/files/samplecontainer/examples/SocialHelloWorld.xml 
gadget and 
http://shindig/gadgets/files/samplecontainer/../sampledata/canonicaldb.json 
state leads to PHP Fatal error. The error is not displayed on the page but 
appears in the error log. The error is:

PHP Fatal error:  Uncaught exception 'Exception' with message 'When posting to 
the social end-point you have to specify a content type, supported content 
types are: 'application/json', 'application/xml' and 'application/atom+xml'' in 
...\shindig\php\src\social\servlet\ApiServlet.php:93
Stack trace:
#0 ...\shindig\php\index.php(111): ApiServlet->__construct()
#1 {main}
  thrown in ...\shindig\php\src\social\servlet\ApiServlet.php on line 93

Last class checked in the index.php foreach ($servletMap as $url => $class) 
loop before the error is DataServiceServlet, so the error is probably caused by 
it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to