-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Hello. I'm currently one of the owners over at OpenUserJS.org and we seem to be having a recurring issue trying to update our dependency of aws-sdk. It basically crashes our app continually.
Currently we are at 2.0.21 of aws-sdk which currently works as case insensitive and previously tried to upgrade to 2.0.23 and 2.0.30 but aws-sdk throws an exception with error message at this commit summary.
I've narrowed it down to what appears to be a case sensitivity issue with our routine. What happens is we have some usernames that are lowercased for (case insensitive username) database retrieval, such as jri
(site ref with uppercase), and the Key
object name value in aws-sdk appears to be case sensitive now. I've done a dirty hack (very non-efficient) on working around the error with the following snippet:
// Get the script
s3.getObject({ Bucket: bucketName, Key: installName }, function (aErr, aData) {
if (aErr) {
console.error('`s3.getObject` Error reading ' + installName);
} else {
aCallback(aScript, s3.getObject({ Bucket: bucketName, Key: installName }).createReadStream());
}
});
... this clearly isn't the right approach we would like to take but we are wondering if there could be some more light shed on Key
case sensitivity when used with getObject
and if there is a routine that we can use with getObject
to ignore casing altogether so it doesn't throw the exception?
Any assistance would be appreciated. Our MVC code for S3 is all contained simply/reduced in that particular file. Thank you in advance.
installName
for one of the offending exception throwers is jri/Geocaching_Map_Enhancements.user.js