Changes between Version 48 and Version 49 of S3/S3XML


Ignore:
Timestamp:
07/20/11 10:10:01 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3XML

    v48 v49  
    173173}}}
    174174
    175 The status code contains the HTTP status code.
    176 
    177 If there was an input element tree and it contained errors, a subtree with the invalid elements will be added to the JSON message ("tree"). This subtree is expressed in [#JSONFormat1 JSON Format]. Invalid elements will have an additional ''error'' attribute containing a clear-text error desription.
    178 
    179 By default, an import request will be rolled back and an HTTP 400 BAD REQUEST error be raised if the source contains any invalid data. You can override this behavior by using the ''ignore_errors'' URL variable (with any non-empty string, e.g. {{{?ignore_errors=True}}}) - invalid records would then just be skipped and the request would return a HTTP 200 OK, but the JSON message would however contain the error message and the element tree. The ''ignore_errors'' option is though meant for "dirty" data, e.g. cases where you need to import from a source but do not have permission and/or means to clean it up before import. Where possible, you should avoid ignore_errors and rather sanitize the source.
     175If there was an input element tree and it contained any errors, a subtree with the invalid elements will be added to the JSON message ("tree"). This subtree is expressed in [#JSONFormat1 JSON Format]. Invalid elements will have an additional ''@error'' attribute containing a clear-text error desription.
     176
     177By default, an import request will be rolled back and an HTTP 400 BAD REQUEST error be raised if the source contains any invalid data. You can override this behavior by using the ''ignore_errors'' URL variable (with any non-empty string, e.g. {{{?ignore_errors=True}}}) - invalid records would then be skipped, while all other records imported, and the request would return a HTTP 200 OK. The JSON message would though however contain the error message and the element tree. The ''ignore_errors'' option is meant for "dirty" data, e.g. cases where you need to import from a source but do not have permission and/or means to clean it up before import - where possible, you should avoid ignore_errors and rather sanitize the source.
    180178== XML Format ==
    181179