<?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: Should Nuxeo CMIS return a HTTP Status 404 for an object (repository) that does not exist? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321847#M8848</link>
    <description>&lt;P&gt;Note that I haven't looked yet, but it may very well be that the fix has to be in the OpenCMIS library and not Nuxeo's code.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2012 14:03:45 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2012-10-02T14:03:45Z</dc:date>
    <item>
      <title>Should Nuxeo CMIS return a HTTP Status 404 for an object (repository) that does not exist?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321845#M8846</link>
      <description>&lt;P&gt;Ran the following command which attempts to retrieve repository information on a non-existent repository named "foobar".  Nuxeo CMIS returns a HTTP Status 400 invalidArgument.  Should a HTTP Status 404 objectNotFound be returned instead for an object (repository) that does not exist?&lt;/P&gt;
&lt;P&gt;$ curl -uusername:password "http://demo.nuxeo.com:80/nuxeo/atom/cmis/foobar"&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Apache Chemistry OpenCMIS - invalidArgument error&amp;lt;/title&amp;gt;&amp;lt;style&amp;gt;&amp;lt;!--H1 {font-size:24px;line-height:normal;font-weight:bold;background-color:#f0f0f0;color:#003366;border-bottom:1px solid #3c78b5;padding:2px;} BODY {font-family:Verdana,arial,sans-serif;color:black;font-size:14px;} HR {color:#3c78b5;height:1px;}--&amp;gt;&amp;lt;/style&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;HTTP Status 400 - &amp;lt;!--exception--&amp;gt;invalidArgument&amp;lt;!--/exception--&amp;gt;&amp;lt;/h1&amp;gt;&amp;lt;p&amp;gt;&amp;lt;!--message--&amp;gt;No such repository: foobar&amp;lt;!--/message--&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr noshade='noshade'/&amp;gt;&amp;lt;!--stacktrace--&amp;gt;&amp;lt;pre&amp;gt; org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: No such repository: foobar at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisServiceFactory.getService(NuxeoCmisServiceFactory.java:65) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:213) at  ... ...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 21:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321845#M8846</guid>
      <dc:creator>janice_</dc:creator>
      <dc:date>2012-10-01T21:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Should Nuxeo CMIS return a HTTP Status 404 for an object (repository) that does not exist?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321846#M8847</link>
      <description>&lt;P&gt;Yes we could return 404 (objectNotFound) in that case, as the CMIS 1.1 spec now says:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;objectNotFound
    Cause: The service call has speci?ed an object, an object-type or a repository that does not exist.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that for CMIS 1.0 the spec was simply the following, so 400 (invalidArgument) was legitimate:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;objectNotFound
    Cause: The service call has specified an object that does not exist in the Repository.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Could you open a NXP ticket for this improvement?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:02:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321846#M8847</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-10-02T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Should Nuxeo CMIS return a HTTP Status 404 for an object (repository) that does not exist?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321847#M8848</link>
      <description>&lt;P&gt;Note that I haven't looked yet, but it may very well be that the fix has to be in the OpenCMIS library and not Nuxeo's code.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:03:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321847#M8848</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-10-02T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Should Nuxeo CMIS return a HTTP Status 404 for an object (repository) that does not exist?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321848#M8849</link>
      <description>&lt;P&gt;Opened JIRA https&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2012 19:19:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/should-nuxeo-cmis-return-a-http-status-404-for-an-object/m-p/321848#M8849</guid>
      <dc:creator>janice_</dc:creator>
      <dc:date>2012-10-02T19:19:30Z</dc:date>
    </item>
  </channel>
</rss>

