Harshavardhana and GitHub
d48fd6fde9
Remove unusued params and functions ( #8399 )
2019-10-15 18:35:41 -07:00
ebozduman and Harshavardhana
dbf7b1e573
starts-with policy condition support issue ( #7937 )
2019-09-22 14:20:49 -07:00
ebozduman and Nitish Tiwari
36ee110563
Regression fix to bring back checkPolicyCond function call ( #7897 )
...
Fixes #7895
2019-07-10 10:48:43 +05:30
kannappanr and GitHub
5ecac91a55
Replace Minio refs in docs with MinIO and links ( #7494 )
2019-04-09 11:39:42 -07:00
Ashish Kumar Sinha and Nitish Tiwari
a4bdcba503
Add check for extra input field ( #7437 )
...
fixes #6559
2019-04-02 12:15:32 +05:30
Praveen raj Mani and Harshavardhana
c0a1369b73
Construct dynamic XML error responses for postpolicyform validation ( #7321 )
...
Fixes #7314
2019-03-05 12:10:47 -08:00
Harshavardhana and GitHub
b5280ba243
Migrate to Go version 1.11.4 ( #7026 )
2018-12-28 14:04:39 -08:00
Oleg Kovalov and kannappanr
37de2dbd3b
simplifying if-else chains to switches ( #6208 )
2018-08-06 10:26:40 -07:00
Frank Wessels and Harshavardhana
46897b1100
Name return values to prevent the need (and unnecessary code bloat) ( #4576 )
...
This is done to explicitly instantiate objects for every return statement.
2017-06-21 19:53:09 -07:00
Bala FA and Harshavardhana
1c97dcb10a
Add UTCNow() function. ( #3931 )
...
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 and GitHub
5f7565762e
api: postPolicy cleanup. Simplify the code and re-use. ( #3890 )
...
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 and GitHub
62f8343879
Add constants for commonly used values. ( #3588 )
...
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 and Harshavardhana
85bb5870a9
Post Policy Form: exhaustive post policy check ( #3386 )
...
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 and Harshavardhana
0d59ea1e94
postpolicy: handle Amazon S3 compatible content-length-range condition ( #3376 )
...
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 and GitHub
aa98702908
api: Handle content-length-range policy properly. ( #3297 )
...
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 #3295
2016-11-21 04:15:26 -08:00
Harshavardhana and GitHub
1b85302161
Fix spelling and golint errors. ( #3266 )
...
Fixes #3263
2016-11-15 18:14:23 -08:00
Krishna Srinivas and Harshavardhana
0f32efb825
PostPolicy - rename of files/functions + add testcases ( #3104 )
2016-10-26 10:15:57 -07:00