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

Expiry cannot be larger than 7 days #1960

Closed
breml opened this issue Jan 12, 2017 · 3 comments
Closed

Expiry cannot be larger than 7 days #1960

breml opened this issue Jan 12, 2017 · 3 comments
Labels

Comments

@breml
Copy link

breml commented Jan 12, 2017

Expected behaviour

Create share URLs with expiry periods larger than 7 days.

Actual behaviour

The 7 days limit is hard coded in mc (as well as minio-go, see minio/minio-go#594)

Steps to reproduce the behaviour

Create a share URL with an expriy period longer than 7 days.

mc share download -E 1000h test/test-bucket/test-file

mc version

current master

System information

@harshavardhana
Copy link
Member

@breml Expiry of 7days is an S3 API limit - we are following S3 standards http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html.

@breml
Copy link
Author

breml commented Jan 12, 2017

OK, understood.

But why are you enforcing the limit within the tool it self and do net let the API respond with an error if a user decides to use a larger expiry period? In this case, mc would also work with other S3 backends and would allow to use other expiry periods, if supported by the backend (maybe even Amazon will change this limit in the future).

Don't you have any intention to make mc useful with S3 backends other than Amazon?

@harshavardhana
Copy link
Member

But why are you enforcing the limit within the tool it self and do net let the API respond with an error if a user decides to use a larger expiry period?

This is a bad design choice all input arguments should be validated up-front to the published API limits and not confuse users by behaving differently under different situations. In future if Amazon S3 changes this limit then we would change too.

Don't you have any intention to make mc useful with S3 backends other than Amazon?

mcs intention is to work with Minio, Amazon S3 and all other S3 compatible backends.

@minio minio locked and limited conversation to collaborators Jan 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants