Compare commits

...

5 Commits

Author SHA1 Message Date
Alexander Chan 0e5cde6f39 tmp 2021-02-02 16:39:09 -08:00
Alexander Chan 76b002b563 tmp 2021-02-02 16:06:58 -08:00
Alexander Chan 635f396a3c tmp 2021-02-02 15:58:22 -08:00
Alexander Chan 995b1e097e debug log 2021-01-29 16:47:34 -08:00
Alexander Chan 9ee4ae05a4 debug log 2021-01-29 13:45:25 -08:00
3 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,14 @@ function constructStringToSign(params) {
.digest('hex');
const stringToSign = `AWS4-HMAC-SHA256\n${timestamp}\n` +
`${credentialScope}\n${canonicalHex}`;
console.log('!!!!!!!!!!!!!!!!!!!');
console.log(stringToSign);
console.log('!!!!!!!!!!!!!!!!!!!');
console.log(request);
console.log(canonicalReqResult);
console.log('!!!!!!!!!!!!!!!!!!!');
return stringToSign;
}

View File

@ -223,6 +223,7 @@ function routes(req, res, params, logger) {
});
const { error, method } = checkUnsupportedRoutes(req.method, req.query);
console.log('got method!!!!!!!!!!!!!!!!!!!!', method, error);
if (error) {
log.trace('error validating route or uri params', { error });
@ -243,6 +244,8 @@ function routes(req, res, params, logger) {
return routeWebsite(req, res, api, log, statsClient,
dataRetrievalParams);
}
console.log('req!!!!!!!!!!', req)
console.log('got here!!!!!!!!!!!!!!');
return method(req, res, api, log, statsClient, dataRetrievalParams);
}

View File

@ -5,6 +5,7 @@ function routerGET(request, response, api, log, statsClient,
dataRetrievalParams) {
log.debug('routing request', { method: 'routerGET' });
if (request.bucketName === undefined && request.objectKey !== undefined) {
console.log('got error here!!!!!!!11', request.bucketName, request.objectKey)
routesUtils.responseXMLBody(errors.NoSuchBucket, null, response, log);
} else if (request.bucketName === undefined
&& request.objectKey === undefined) {
@ -94,6 +95,7 @@ dataRetrievalParams) {
log, corsHeaders);
});
} else {
console.log('bucket get!!!!!!!!!!!!!!');
// GET bucket
api.callApiMethod('bucketGet', request, response, log,
(err, xml, corsHeaders) => {