JackYeh / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

Cannot rename file that exists in public bucket #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Version 1.01

Although anonymously mounting a public bucket works, as does creating, reading 
and removing files.  However a rename is unsuccessful:

> mv move_me.txt moved.txt
mv: cannot move `move_me.txt' to `moved.txt': Input/output error

Original issue reported on code.google.com by dmoore4...@gmail.com on 29 Oct 2010 at 4:32

GoogleCodeExporter commented 8 years ago
This appears to be a feature of anonymous access:

HTTP/1.1 403 Forbidden
x-amz-request-id: 301F26D50EA0D5C0
x-amz-id-2: sWSMTru9sQUgqReB1W3rNT7biKKuxmNWsuj/s4q0EFRrqnA/OCaG7K5QGQ0G1lkC
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Fri, 29 Oct 2010 07:09:24 GMT
nnCoection: close
Server: AmazonS3

<Error>
  <Code>AccessDenied</Code>
  <Message>Anonymous users cannot copy objects. Please authenticate.</Message>
  <RequestId>301F26D50EA0D5C0</RequestId>
  <HostId>sWSMTru9sQUgqReB1W3rNT7biKKuxmNWsuj/s4q0EFRrqnA/OCaG7K5QGQ0G1lkC</HostId>
</Error>

I don't think that it can be "fixed" in s3fs.  One option for the end user 
would be to copy the file to a non-s3fs-disk location, delete the file, copy 
the file back using a new name.

Original comment by dmoore4...@gmail.com on 30 Oct 2010 at 12:25

GoogleCodeExporter commented 8 years ago
you can use the copy command and delete old file.

Original comment by sebastia...@gmail.com on 28 Feb 2011 at 4:31