From: KIRAN KASHALKAR Date: Fri, 5 May 2017 15:37:55 +0000 (-0400) Subject: Merge branch 'master' into projects X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=6fc3e77438cd4e53c5d5f21512ee8ca260469ca8;p=osm%2FUI.git Merge branch 'master' into projects --- 6fc3e77438cd4e53c5d5f21512ee8ca260469ca8 diff --cc skyquake/plugins/composer/api/composer.js index b9d35ad54,e9e4be1da..31b3a005c --- a/skyquake/plugins/composer/api/composer.js +++ b/skyquake/plugins/composer/api/composer.js @@@ -556,14 -540,10 +559,15 @@@ FileManager.addFile = function(req) 'external-url': download_host + '/composer/upload/' + req.query['package_id'] + '/' + req.file.filename, 'package-type': package_type, 'package-id': package_id, - 'package-path': package_path + '/' + req.file.filename + 'package-path': package_path ? package_path + '/' + req.file.filename : req.file.filename - } + }; + + var uri = utils.projectContextUrl(req, utils.confdPort(api_server) + '/api/operations/package-file-add'); + + input = utils.addProjectContextToRPCPayload(req, uri, input); + - + var assetType = req.query['asset_type'].toUpperCase(); + input[makeAssetTypeParamName(package_type)] = assetType; return new Promise(function(resolve, reject) { Promise.all([ rp({