Closed GoogleCodeExporter closed 9 years ago
This issue affects me as well (Ubuntu 9.10 on EC2). Error only occurs if
"url=https://s3.amazonaws.com" is used in fstab or on mount.
Original comment by seanca...@gmail.com
on 13 Jul 2010 at 4:23
Ok, looks like a patch for this bug has been made by f3rrix in issue 85:
http://code.google.com/p/s3fs/issues/detail?id=85
You can download his patch in that thread. If you don't know how to patch
s3fs, you can manually fix this problem by:
download s3fs
untar the file
edit s3fs.cpp
go to line 289
erase this line:
url_str = url_str.substr(0,7) + bucket + "." + url_str.substr(7,bucket_pos - 7)
+ url_str.substr((bucket_pos + bucket_size));
add these lines:
int clipBy = 7;
if(!strncasecmp(url_str.c_str(), "https://", 8))
{
clipBy = 8;
}
url_str = url_str.substr(0,clipBy) + bucket + "." + url_str.substr(clipBy,bucket_pos - clipBy) + url_str.substr((bucket_pos + bucket_size));
Save and exit the file.
make install
And presto! Your S3 drive will now work when you mount it by https!
Major thanks to f3rrix for figuring this one out!
Original comment by seanca...@gmail.com
on 13 Jul 2010 at 4:42
Original comment by dmoore4...@gmail.com
on 19 Oct 2010 at 1:47
Original issue reported on code.google.com by
paulschreiber
on 13 Apr 2009 at 6:23