diff --git a/Documentation/Scripts/generateExamples.py b/Documentation/Scripts/generateExamples.py index 31244801a5..614362c0d8 100644 --- a/Documentation/Scripts/generateExamples.py +++ b/Documentation/Scripts/generateExamples.py @@ -276,7 +276,7 @@ def generateArangoshRun(): print "var logCurlRequest = function () { var r = logCurlRequestRaw.apply(logCurlRequestRaw, arguments); db._collections(); return r; };" print "var logJsonResponse = require('internal').appendJsonResponse(appender);" print "var assert = function(a) { if (! a) { internal.output('%s\\nASSERTION FAILED: %s\\n%s\\n'); throw new Error('assertion failed'); } };" % ('#' * 80, key, '#' * 80) - print "try { %s internal.output('RUN SUCCEEDED: %s'); } catch (err) { print('%s\\nRUN FAILED: %s, ', err, '\\n%s\\n'); }" % (value, key, '#' * 80, key, '#' * 80) + print "try { %s internal.output('RUN SUCCEEDED: %s\\n'); } catch (err) { print('%s\\nRUN FAILED: %s, ', err, '\\n%s\\n'); }" % (value, key, '#' * 80, key, '#' * 80) print "ArangoshRun['%s'] = output;" % key if JS_DEBUG: print "internal.output('%s', ':\\n', output, '\\n%s\\n');" % (key, '-' * 80) diff --git a/Installation/packetize.sh b/Installation/packetize.sh index 0b3a85c68d..84cc945356 100755 --- a/Installation/packetize.sh +++ b/Installation/packetize.sh @@ -210,8 +210,8 @@ fi echo echo "########################################################" -echo "arangodb_version: $arangodb_version" echo "arangodb_release: $arangodb_release" +echo "arangodb_version: $arangodb_version" echo "hudson_base: $hudson_base" echo "rusr: $rusr" echo "rgrp: $rgrp" @@ -239,11 +239,7 @@ echo "Call mkepmlist to create a sublist" mkepmlist -u ${susr} -g ${sgrp} --prefix ${mandir}/man1 ${sfolder_name}/Doxygen/man/man1/*.1 >> ${SUBLIST} mkepmlist -u ${susr} -g ${sgrp} --prefix ${mandir}/man8 ${sfolder_name}/Doxygen/man/man8/*.8 >> ${SUBLIST} - - for dir in `find js -type d`; do - # echo " mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/${dir} ${sfolder_name}/${dir}/*.js >> ${SUBLIST}" - mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/${dir} ${sfolder_name}/${dir}/*.js >> ${SUBLIST} - done + mkepmlist -u ${susr} -g ${sgrp} --prefix ${share_base}/js ${sfolder_name}/js >> ${SUBLIST} for dir in . css css/images media media/icons media/images js js/modules; do for typ in css html js png gif ico; do @@ -481,7 +477,7 @@ if [ "x$answer" == "x$expect" ]; then echo "ok: $answer" else echo "error: $answer != $expect" - sudo tail -50 /var/log/rangodb/arangod.log + sudo tail -50 /var/log/arangodb/arangod.log fi echo "########################################################" echo diff --git a/arangod/RestHandler/RestDocumentHandler.cpp b/arangod/RestHandler/RestDocumentHandler.cpp index 963fcd0f37..139ab4f698 100644 --- a/arangod/RestHandler/RestDocumentHandler.cpp +++ b/arangod/RestHandler/RestDocumentHandler.cpp @@ -796,6 +796,16 @@ bool RestDocumentHandler::checkDocument () { /// /// @RESTURLPARAM{document-handle,string,required} /// +/// @RESTQUERYPARAMETERS +/// +/// @RESTQUERYPARAM{rev,string,optional} +/// +/// @RESTQUERYPARAM{policy,string,optional} +/// +/// @RESTHEADERPARAMETERS +/// +/// @RESTHEADERPARAM{If-Match,string,optional} +/// /// @RESTDESCRIPTION /// Completely updates (i.e. replaces) the document identified by `document-handle`. /// If the document exists and can be updated, then a `HTTP 201` is returned @@ -829,7 +839,7 @@ bool RestDocumentHandler::checkDocument () { /// conditional replacements (i.e. replacements that will only be executed if /// the revision id found in the database matches the document revision id specified /// in the request): -/// - specifying the target revision in the `rev` URL parameter +/// - specifying the target revision in the `rev` URL query parameter /// - specifying the target revision in the `if-match` HTTP header /// /// Specifying a target revision is optional, however, if done, only one of the @@ -844,13 +854,13 @@ bool RestDocumentHandler::checkDocument () { /// @REST{PUT /_api/document/`document-handle`?rev=`etag`} /// /// If a target revision id is provided in the request (e.g. via the `etag` value -/// in the `rev` URL parameter above), ArangoDB will check that +/// in the `rev` URL query parameter above), ArangoDB will check that /// the revision id of the document found in the database is equal to the target /// revision id provided in the request. If there is a mismatch between the revision /// id, then by default a `HTTP 412` conflict is returned and no replacement is /// performed. /// -/// The conditional update behavior can be overriden with the `policy` URL parameter: +/// The conditional update behavior can be overriden with the `policy` URL query parameter: /// /// @REST{PUT /_api/document/`document-handle`?policy=`policy`} /// @@ -984,6 +994,18 @@ bool RestDocumentHandler::replaceDocument () { /// /// @RESTURLPARAM{document-handle,string,required} /// +/// @RESTQUERYPARAMETERS +/// +/// @RESTQUERYPARAM{keepNull,string,required} +/// +/// @RESTQUERYPARAM{rev,string,optional} +/// +/// @RESTQUERYPARAM{policy,string,optional} +/// +/// @RESTHEADERPARAMETERS +/// +/// @RESTHEADERPARAM{If-Match,string,optional} +/// /// @RESTDESCRIPTION /// Partially updates the document identified by `document-handle`. /// The body of the request must contain a JSON document with the attributes @@ -993,7 +1015,7 @@ bool RestDocumentHandler::replaceDocument () { /// /// Setting an attribute value to `null` in the patch document will cause a /// value of `null` be saved for the attribute by default. If the intention -/// is to delete existing attributes with the patch command, the URL parameter +/// is to delete existing attributes with the patch command, the URL query parameter /// `keepNull` can be used with a value of `false`. /// This will modify the behavior of the patch command to remove any attributes /// from the existing document that are contained in the patch document with an @@ -1203,6 +1225,16 @@ bool RestDocumentHandler::modifyDocument (bool isPatch) { /// /// @RESTURLPARAM{document-handle,string,required} /// +/// @RESTQUERYPARAMETERS +/// +/// @RESTQUERYPARAM{rev,string,optional} +/// +/// @RESTQUERYPARAM{policy,string,optional} +/// +/// @RESTHEADERPARAMETERS +/// +/// @RESTHEADERPARAM{If-Match,string,optional} +/// /// @RESTDESCRIPTION /// Deletes the document identified by `document-handle`. If the document /// exists and could be deleted, then a `HTTP 200` is returned. diff --git a/js/server/modules/org/arangodb/foxx-manager.js b/js/server/modules/org/arangodb/foxx-manager.js index a32e4e7a60..21eca6441f 100644 --- a/js/server/modules/org/arangodb/foxx-manager.js +++ b/js/server/modules/org/arangodb/foxx-manager.js @@ -231,10 +231,6 @@ function executeAppScript (app, name, mount, prefix) { } }; - context.appCollectionName = function (name) { - return name; - }; - app.loadAppScript(app.createAppModule(), desc[name], appContext, context); } }