diff --git a/core/database/foxx/api/authz_router.js b/core/database/foxx/api/authz_router.js index 48aa021a..c8771a00 100644 --- a/core/database/foxx/api/authz_router.js +++ b/core/database/foxx/api/authz_router.js @@ -101,6 +101,12 @@ router.get('/gridftp', function(req, res) { throw g_lib.ERR_PERM_DENIED; } + // If path is missing the starting "/" add it back in + if (!path.startsWith("/") && alloc.path.startsWith("/") ) { + path = "/" + path; + } + + console.log("path:", path, " alloc path:", alloc.path + data_key, " loc: ", loc); console.log("13"); if (alloc.path + data_key != path) { // This may be due to an alloc/owner change @@ -246,4 +252,4 @@ router.get('/perm/get', function(req, res) { .queryParam('id', joi.string().required(), "Object ID or alias") .queryParam('perms', joi.number().optional(), "Permission bit mask to get (default = all)") .summary('Gets client permissions for object') - .description('Gets client permissions for object (projects, data, collections. Note this is potentially slower than using "check" method.'); \ No newline at end of file + .description('Gets client permissions for object (projects, data, collections. Note this is potentially slower than using "check" method.');