[MarkLogic Dev General] xdmp:document-load - possible bug?

Geert Josten Geert.Josten at daidalos.nl
Mon Aug 16 04:36:32 PDT 2010


Hi Jacob,

You are not the first to notice this behaviour (http://markmail.org/message/a73cgqdmcyvmqgyv), but that thread does not provide details as to why it is like it is. Perhaps a ML-expert could shed some light on this this time?

For the time being, I think it is best to use http-get and document-insert and check the status in between yourself..

Kind regards,
Geert



drs. G.P.H. (Geert) Josten
Consultant

Daidalos BV
Hoekeindsehof 1-4
2665 JZ Bleiswijk

T +31 (0)10 850 1200
F +31 (0)10 850 1199

geert.josten at daidalos.nl<mailto:geert.josten at daidalos.nl>
www.daidalos.nl<http://www.daidalos.nl/>

KvK 27164984


De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
________________________________
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Jacob Larsen
Sent: maandag 16 augustus 2010 11:21
To: General at developer.marklogic.com
Subject: [MarkLogic Dev General] xdmp:document-load - possible bug?

Hi All

I would appreciate your opinion on this, before I report it as a bug.

I load an xml files using something like:
xdmp:document.load("http://some-apache-server/some-xml-file")
  <options xmlns="xdmp:document-load">
      <repair>full</repair>
  </options>)

When http://some-apache-server/some-xml-file does not exist, apache reply "404 - Not Found" but also a simple HTML version of the error.
Mark Logic then creates a valid xml file from the HTML output, without checking the status code, and loads it.

I my view, this is clearly a bug. Every http GET request, should read the status code, and anything but 20* should result in some error from MarkLogic .

Any thoughts on this?

Best regards

Jacob


-----------------------------------------
Jacob Larsen
Civil Ingeniør | Software Engineer

Det Kongelige Bibliotek | The Royal Library
Digital Infrastruktur og Services | Digital Infrastructure and Services
tel +45 3347 4527 | jac at kb.dk<mailto:jac at kb.dk>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100816/13f44f9c/attachment.html 


More information about the General mailing list