Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10215

Nuxeo CMIS should return HTTP Status 404 when repository does not exist

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.6
    • Fix Version/s: QualifiedToSchedule
    • Component/s: CMIS

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.