1
0
mirror of https://github.com/minio/minio.git synced 2025-03-26 23:40:57 -04:00

10 Commits

Author SHA1 Message Date
Frank Wessels
46897b1100 Name return values to prevent the need (and unnecessary code bloat) ()
This is done to explicitly instantiate objects for every return statement.
2017-06-21 19:53:09 -07:00
Bala FA
1c97dcb10a Add UTCNow() function. ()
This patch adds UTCNow() function which returns current UTC time.

This is equivalent of UTCNow() == time.Now().UTC()
2017-03-18 11:28:41 -07:00
Harshavardhana
5f7565762e api: postPolicy cleanup. Simplify the code and re-use. ()
This change is cleanup of the postPolicyHandler code
primarily to address the flow and also converting
certain critical parts into self contained functions.
2017-03-13 14:41:13 -07:00
Harshavardhana
62f8343879 Add constants for commonly used values. ()
This is a consolidation effort, avoiding usage
of naked strings in codebase. Whenever possible
use constants which can be repurposed elsewhere.

This also fixes `goconst ./...` reported issues.
2017-01-18 12:24:34 -08:00
Harshavardhana
d67f47927c api: Fix the formatting issues in last patch. 2016-12-02 17:39:21 -08:00
Anis Elleuch
85bb5870a9 Post Policy Form: exhaustive post policy check ()
Add support of all conditions check described in
http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html
and simplify a little bit the existing code
2016-12-02 17:00:33 -08:00
Bala FA
0d59ea1e94 postpolicy: handle Amazon S3 compatible content-length-range condition ()
Previously minio server expects content-length-range values as integer
in JSON.  However Amazon S3 handles content-length-range values as
integer and strings.

This patch adds support for string values.
2016-11-30 18:30:59 -08:00
Harshavardhana
aa98702908 api: Handle content-length-range policy properly. ()
content-length-range policy in postPolicy API was
not working properly handle it. The reflection
strategy used has changed in recent version of Go.
Any free form interface{} of any integer is treated
as `float64` this caused a bug where content-length-range
parsing failed to provide any value.

Fixes 
2016-11-21 04:15:26 -08:00
Harshavardhana
1b85302161 Fix spelling and golint errors. ()
Fixes 
2016-11-15 18:14:23 -08:00
Krishna Srinivas
0f32efb825 PostPolicy - rename of files/functions + add testcases () 2016-10-26 10:15:57 -07:00