<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API Playground in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316081#M3082</link>
    <description>&lt;P&gt;The issue was that in Studio I included the TAG:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="org.nuxeo.cors.config"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Studio generates it for you and it is not needed.&lt;/P&gt;
&lt;P&gt;However it still doesn't work for my local setup in Eclipse. I reference localhost in the playground and it still fails. On my Cloud instance installed using apt-get, it works fine however.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Locally I get this JSON error:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;code: "com.sun.jersey.api.NotFoundException"
entity-type: "exception"
message: "null for uri: &lt;A href="http://localhost:8080/nuxeo//site/automation/login&amp;quot;" target="test_blank"&gt;http://localhost:8080/nuxeo//site/automation/login"&lt;/A&gt;;
status: 500
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I re-installed the SDK from scratch but I still get the same error. I believe this class is missing somehow in the Eclipse SDK. Or something is miss-configured.&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Dec 2014 04:22:19 GMT</pubDate>
    <dc:creator>koxon_</dc:creator>
    <dc:date>2014-12-19T04:22:19Z</dc:date>
    <item>
      <title>API Playground</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316076#M3077</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to use the API playground.&lt;/P&gt;
&lt;P&gt;I added the following CORS config to my app:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;component name="org.nuxeo.cors"&amp;gt;
  &amp;lt;extension target="org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService" point="corsConfig"&amp;gt;
    &amp;lt;corsConfig name="all" 
                allowGenericHttpRequests="true"
                allowOrigin="*"
                allowSubdomains="true"
                supportsCredentials="true"&amp;gt;
      &amp;lt;pattern&amp;gt;/nuxeo/*&amp;lt;/pattern&amp;gt;
    &amp;lt;/corsConfig&amp;gt;
  &amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Trying to connect, I get this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Remote Address:127.0.0.1:8080
Request URL:http://localhost:8080/nuxeo/site/automation/login
Request Method:OPTIONS
Status Code:401 Unauthorized
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then a second is being made by the playground, and I get this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Remote Address:127.0.0.1:8080
Request URL:http://localhost:8080/nuxeo/authentication/token?applicationName=Nuxeo%20API%20Playground&amp;amp;deviceId=device-176&amp;amp;deviceDescription=device-176&amp;amp;permission=rw
Request Method:OPTIONS
Status Code:302 Found
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The API Playground doesn't connect to my local server.
Any idea?&lt;/P&gt;
&lt;P&gt;Thanks
Nicolas&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 18:14:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316076#M3077</guid>
      <dc:creator>koxon_</dc:creator>
      <dc:date>2014-11-26T18:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: API Playground</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316077#M3078</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First thing to try is to change the pattern to &lt;CODE&gt;/nuxeo/.*&lt;/CODE&gt; as this is a regular expression.&lt;/P&gt;
&lt;P&gt;It that doesn't work you should try connecting from an incognito tab in Google Chrome just to see if it works.
(The playground stores some login information using cookies and there might be some consistency issues.)&lt;/P&gt;
&lt;P&gt;For reference, this is what I normally use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="org.nuxeo.cors.config"&amp;gt;
  &amp;lt;extension target="org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService" point="corsConfig"&amp;gt;
    &amp;lt;corsConfig name="all" supportedMethods ="GET,POST,HEAD,OPTIONS,DELETE,PUT"&amp;gt;
      &amp;lt;pattern&amp;gt;/nuxeo/.*&amp;lt;/pattern&amp;gt;
    &amp;lt;/corsConfig&amp;gt;
  &amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:03:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316077#M3078</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2014-11-27T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Playground</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316078#M3079</link>
      <description>&lt;P&gt;Tried what you said. Still no luck.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 18:20:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316078#M3079</guid>
      <dc:creator>koxon_</dc:creator>
      <dc:date>2014-11-28T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: API Playground</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316079#M3080</link>
      <description>&lt;P&gt;Following the doc here&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 18:22:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316079#M3080</guid>
      <dc:creator>koxon_</dc:creator>
      <dc:date>2014-11-28T18:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: API Playground</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316080#M3081</link>
      <description>&lt;P&gt;Ok, let's start from the beginning. Where did you put your CORS config ? Should be in nxserver/config/*-config.xml (I have it in nxserver/config/cors-config.xml).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 18:30:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316080#M3081</guid>
      <dc:creator>Nelson_Silva</dc:creator>
      <dc:date>2014-11-28T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: API Playground</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316081#M3082</link>
      <description>&lt;P&gt;The issue was that in Studio I included the TAG:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="org.nuxeo.cors.config"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Studio generates it for you and it is not needed.&lt;/P&gt;
&lt;P&gt;However it still doesn't work for my local setup in Eclipse. I reference localhost in the playground and it still fails. On my Cloud instance installed using apt-get, it works fine however.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Locally I get this JSON error:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;code: "com.sun.jersey.api.NotFoundException"
entity-type: "exception"
message: "null for uri: &lt;A href="http://localhost:8080/nuxeo//site/automation/login&amp;quot;" target="test_blank"&gt;http://localhost:8080/nuxeo//site/automation/login"&lt;/A&gt;;
status: 500
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I re-installed the SDK from scratch but I still get the same error. I believe this class is missing somehow in the Eclipse SDK. Or something is miss-configured.&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2014 04:22:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/api-playground/m-p/316081#M3082</guid>
      <dc:creator>koxon_</dc:creator>
      <dc:date>2014-12-19T04:22:19Z</dc:date>
    </item>
  </channel>
</rss>

