[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: app:accept and Atom entry MIME type




Al Brown wrote:
 >Why would the request fail?
If the server has no intent to support non-cmis documents, then it would not advertise it supports those media types. Adding profile=cmis or cmisprofile=1.0 to the atom media type solves the signaling issue. If the repository does advertise it supports those media types, then it is a configuration issue of the underlying repository due to a) no default type available b) default type requires information not specified or c) some other resource not available (network between tiers, database, storage, etc)


 >AFAICT, there is
 >no need to do so.  Just send the AtomPub/HTTP message to the server.

The server could return the following to handle the scenarios:

412 Precondition failed (httpbis[1]) (a or b)

That's for conditional requests (like "if-match: ...").

415 Unsupported media type (httpbis) (if the request is in a format other than what is allowed; e.g., missing cmis extensions)

Right, or potentially 422 Unprocessable Entity (<http://greenbytes.de/tech/webdav/rfc4918.html#rfc.section.11.2>)

...


BR, Julian