Hi, Stephen: That's good additional information for a support case.
By the way, it does bring an important point: REST API applications should where possible take advantage of the server's mime type mapping table so the mime type can be determined from the document URIs extension. Future versions (starting with 7.0-4) are going to raise the precedence of the extension mapping for determining the mime type of content. An example of the practical benefits: because the mapping will set the Accept header, making a GET request through a web browser will just work for documents such as PDFs and images. If the document's extension doesn't have a mime type mapping, you can always fall back on the Content-Type and Accept HTTP headers. Hoping that's useful, Erik Hennum ________________________________ From: [email protected] [[email protected]] on behalf of Souness, Stephen, Springer UK [[email protected]] Sent: Wednesday, September 03, 2014 3:27 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Java client - JSON Handler - 7.0.3 produces 404 response as XML Hi. I have an update and a correction for the (non)issue that I mentioned yesterday. The binary value for the vnd.marklogic.document-format header was being produced for non-404 responses. To make MarkLogic specify json we changed our document path to include a".json" suffix. -- Stephen ________________________________ From: [email protected] [[email protected]] on behalf of Colleen Whitney [[email protected]] Sent: 02 September 2014 17:25 To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Java client - JSON Handler - 7.0.3 produces 404 response as XML Stephen, this sounds like something that you should route through support, they can work with you to log bug(s) on the behavior changes and track them through getting fixes in place. ________________________________ From: [email protected] [[email protected]] on behalf of Souness, Stephen, Springer UK [[email protected]] Sent: Tuesday, September 02, 2014 9:21 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Java client - JSON Handler - 7.0.3 produces 404 response as XML Further to my earlier message, it appears that MarkLogic 7.0.3 specifies "binary" for the "vnd.marklogic.document-format" response header, whereas 7.0.2 specifies what we expected: "json". Is this a feature, or something else? -- Stephen ________________________________ Hi all. After an upgrade to 7.0.3 on a development environment, we have noticed that our tests start failing whenever they try requesting a document that does not exist. The cause of the problem seems to be that MarkLogic is responding with an XML format for the 404 error and the client is recognising that is not the JSON that it was expecting to parse. Has anyone else encountered this? We are using the Java Client, version 2.0-3 -- Stephen Souness
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
