mirror of https://gitee.com/bigwinds/arangodb
Changed internal app validation path to be absolute and not relative to the user defined js app path
This commit is contained in:
parent
391065c210
commit
6adbab0bf6
|
@ -141,7 +141,10 @@ var isSystemMount = function(mount) {
|
|||
/// @brief returns the root path for application. Knows about system apps
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var computeRootAppPath = function(mount) {
|
||||
var computeRootAppPath = function(mount, isValidation) {
|
||||
if (isValidation) {
|
||||
return "";
|
||||
}
|
||||
if (isSystemMount(mount)) {
|
||||
return module.systemAppPath();
|
||||
}
|
||||
|
@ -168,7 +171,7 @@ var computeRootAppPath = function(mount) {
|
|||
}
|
||||
this._name = this._manifest.name;
|
||||
this._version = this._manifest.version;
|
||||
this._root = computeRootAppPath(config.mount);
|
||||
this._root = computeRootAppPath(config.mount, config.id === "__internal");
|
||||
this._path = config.path;
|
||||
this._options = config.options;
|
||||
this._mount = config.mount;
|
||||
|
|
|
@ -391,7 +391,7 @@
|
|||
var fakeAppConfig = function(path) {
|
||||
var file = fs.join(path, "manifest.json");
|
||||
return {
|
||||
id: "/internal",
|
||||
id: "__internal",
|
||||
root: "",
|
||||
path: path,
|
||||
options: {},
|
||||
|
|
Loading…
Reference in New Issue