Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[leo_gateway] Output access-logs, retrieving object list and removing a directory #479

Closed
yosukehara opened this issue May 25, 2016 · 2 comments

Comments

@yosukehara
Copy link
Member

In order to be able to check operations of retrieving object list and removing a directory from access-logs, we need to support that. In the current version of LeoFS, object and bucket operation is already covered.

@windkit
Copy link
Contributor

windkit commented Jul 20, 2016

For HTTP and S3 API, there is no delete directory operation
To workaround this, clients would retrieve the list of objects with prefix and then delete each objects

For example, to delete a sub directory test in bucket test with s3cmd

$ ./s3cmd ls s3://test/test
2016-07-20 08:04      1200   s3://test/test/1
$ ./s3cmd rm s3://test/test -r
delete: 's3://test/test/1'

Corresponding access log

[BUCKET-GET]    test/   test    0   0   2016-07-20 17:05:10.601187 +0900    1469001910601235    200
[BUCKET-GET]    test/   test    0   0   2016-07-20 17:05:13.307045 +0900    1469001913307093    200
[DELETE]    test    test/test/1 0   1200    2016-07-20 17:05:13.313069 +0900    1469001913313140    204

@yosukehara
Copy link
Member Author

DONE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants