-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 5.6
-
Fix Version/s: QualifiedToSchedule
-
Component/s: CMIS
Ran the following command which attempts to retrieve a repository that does not exist. Nuxeo CMIS returned a HTTP Status 400 invalidArgument.
curl -uusername:password "http://demo.nuxeo.com:80/nuxeo/atom/cmis/foobar"
<html><head><title>Apache Chemistry OpenCMIS - invalidArgument error</title>
<style><!--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;}--></style></head>
<body><h1>HTTP Status 400 - <!--exception-->invalidArgument<!--/exception--></h1><p><!--message-->No such repository: foobar<!--/message--></p><hr noshade='noshade'/><!--stacktrace-->
Posted the following question on nuxeo.answer.org: http://answers.nuxeo.com/questions/3868/should-nuxeo-cmis-return-a-http-status-404-for-an-object-repository-that-does-not-exist. Answer stated that Nuxeo CMIS returning a HTTP status 404 would be appropriate based on CMIS v1.1 specification.