Anis Elleuch
ed4fcb63f7
Require content-length in POST & Upload requests ( #3671 )
...
Avoid passing size = -1 to PutObject API by requiring content-length
header in POST request (as AWS S3 does) and in Upload web handler.
Post handler is modified to completely store multipart file to know
its size before sending it to PutObject().
8 years ago
Harshavardhana
4b4cb07fb6
Update browser assets with new changes.
8 years ago
Harshavardhana
fc446e0b81
docs: Add browser doc for running dev in custom port ( #3675 )
...
Fixes #3674
8 years ago
Anis Elleuch
f612a7dd85
madmin: Fix a typo in Locks duration query name ( #3673 )
8 years ago
Krishnan Parthasarathi
0472e5c1e1
Change query param name to duration in list/clear locks API ( #3664 )
...
Following is a sample list lock API request schematic,
/?lock&bucket=mybucket&prefix=myprefix&duration=holdDuration
x-minio-operation: list
The response would contain the list of locks held on mybucket matching
myprefix for a duration longer than holdDuration.
8 years ago
Harshavardhana
6a6c930f5b
xl: Abort multipart upload should honor quorum properly. ( #3670 )
...
Current implementation didn't honor quorum properly and didn't
handle the errors generated properly. This patch addresses that
and also moves common code `cleanupMultipartUploads` into xl
specific private function.
Fixes #3665
8 years ago
Karthic Rao
35ca3e5d9b
Fix unresponsiveness of `doneCh` due to Sleep call. ( #3667 )
8 years ago
Harshavardhana
a9ab01731f
docs: Remove reference word from notification title
8 years ago
Harshavardhana
cd80e6df29
docs: Move the notifications into docs/bucket
...
Cleanup some formatting issues.
8 years ago
koolhead17
4dea4f3b89
docs: added event-notification back end doc. ( #3510 )
8 years ago
Harshavardhana
1b30a3be2b
xl/utils: getPartSizeFromIdx should return error. ( #3669 )
8 years ago
Krishna Srinivas
f7f103725b
browser: Make logo and "Minio Browser" text non-clickable. ( #3668 )
...
fixes #3601
8 years ago
Harshavardhana
77a192a7b5
Implement CopyObjectPart API ( #3663 )
...
This API is implemented to allow copying data from an
existing source object to an ongoing multipart operation
http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html
Fixes #3662
8 years ago
Harshavardhana
cb48517a78
Update browser assets with new changes.
8 years ago
Anis Elleuch
e9394dc22d
xl PutObject: Split object into parts ( #3651 )
...
For faster time-to-first-byte when we try to download a big object
8 years ago
Krishna Srinivas
46743c7918
browser: Component attr names should not clash with redux state keys. ( #3656 )
...
fixes #270
8 years ago
Krishna Srinivas
b288eaddb3
xl: bit-rot algo was not set in get-object. ( #3652 )
...
fixes #3650
8 years ago
Krishnan Parthasarathi
2665aba555
Fail PutBucketPolicy if conditions are incompatible with actions. ( #3659 )
8 years ago
Krishnan Parthasarathi
9b6bcb30d9
Fix handling of StringNotEquals condition operator ( #3660 )
8 years ago
Harshavardhana
ac9ba13c19
build: Increase the travis build test timeout to 15mins
8 years ago
Krishnan Parthasarathi
864b8795aa
heal: Should delete stale object parts before healing ( #3649 )
8 years ago
Bala FA
cc1575f944
fix: do port availability check only on macOS. ( #3654 )
...
On macOS, if a process already listens on 127.0.0.1:PORT, net.Listen() falls back
to IPv6 address ie minio will start listening on IPv6 address whereas another
(non-)minio process is listening on IPv4 of given port.
To avoid this error sutiation we check for port availability only for macOS.
Note: checkPortAvailability() tries to listen on given port and closes it.
It is possible to have a disconnected client in this tiny window of time.
8 years ago
Krishnan Parthasarathi
b408d0e87d
Add aws:Referer condition key support. ( #3641 )
...
This change implements bucket policy enhancements required to restrict access based on HTTP referer.
See https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-4 for more information.
Fixes #3540
8 years ago
Nitish Tiwari
69b81af93e
Fix Minio quick start guide URL ( #3655 )
8 years ago
Harshavardhana
cf558ff6d1
docs: Fix TLS doc to be docs.minio.io compatible
8 years ago
Harshavardhana
5af7bd6a01
docs: Fix a typo in TLS doc description
8 years ago
Harshavardhana
73f4f29110
docs: Restructure docs, move the files to their relevant location. ( #3648 )
...
Also combines windows TLS docs with single doc with Linux.
8 years ago
Harshavardhana
ccd949d8ca
Add -v for race tests to avoid travis and appveyor timeouts. ( #3647 )
...
This is added so that CI's don't wrong fully timeout on
little longer running tests.
8 years ago
Anis Elleuch
e1bc99e4fe
xl: Fix GET of an empty multiparted object ( #3646 )
...
GetObject returns unsatisfied range error when we try to download an object
uploaded using multipart mechanism.
8 years ago
Alex Ellis
02194ee3c6
Fix issue with webhook events not closing Response body, leaving connections open with remote server ( #3645 )
8 years ago
Harshavardhana
85f2b74cfd
jwt: Cache the bcrypt password hash. ( #3526 )
...
Creds don't require secretKeyHash to be calculated
everytime, cache it instead and re-use.
This is an optimization for bcrypt.
Relevant results from the benchmark done locally, negative
value means improvement in this scenario.
```
benchmark old ns/op new ns/op delta
BenchmarkAuthenticateNode-4 160590992 80125647 -50.11%
BenchmarkAuthenticateWeb-4 160556692 80432144 -49.90%
benchmark old allocs new allocs delta
BenchmarkAuthenticateNode-4 87 75 -13.79%
BenchmarkAuthenticateWeb-4 87 75 -13.79%
benchmark old bytes new bytes delta
BenchmarkAuthenticateNode-4 15222 9785 -35.72%
BenchmarkAuthenticateWeb-4 15222 9785 -35.72%
```
8 years ago
Krishna Srinivas
152cdf1c05
fs: Move traceError() to lower functions where possible. ( #3633 )
8 years ago
Krishna Srinivas
17dd1c19df
cleanup: refactor common code between FS and XL listDirFactory. ( #3639 )
8 years ago
Anis Elleuch
8e49a3d047
Simplify running cmd.Main() for external tests ( #3636 )
...
An external test that runs cmd.Main() has a difficulty to set cmd arguments
and MINIO_{ACCESS,SECRET}_KEY values, this commit changes a little the current
behavior in a way that helps external tests.
8 years ago
Krishna Srinivas
cccf77229d
cleanup: Move code in *-multipart-common.go to *-multipart.go ( #3638 )
...
The code in *-multipart-common.go is not common anymore.
8 years ago
Harshavardhana
dafdc74605
fs: if `fs.json` is empty ignore it while reading metadata. ( #3634 )
...
This is needed so that we don't send wrong errors
on previously failed PutObject() which would have
left a stale `fs.json` entry.
8 years ago
Anis Elleuch
c753b5dfeb
madmin: All APIs return ErrorResponse error type ( #3632 )
...
Avoid returning errors.New("Got HTTP Status") in all APIs
8 years ago
Krishna Srinivas
82373e3d50
fs: cleanup - do not cache size of metafiles ( #3630 )
...
* Remove Size() method and size field from lock.LockedFile
* WriteTo method of fsMeta and uploadsV1 now takes concrete type *lock.LockedFile
8 years ago
Anis Elleuch
76b8abcd8e
madmin: Fix args order in listObjectsHeal() ( #3629 )
...
The order of marker and delimiter and in listObjectsHeal() internal function
are switched. That will give wrong result in case of a non recursive objects
heal list.
8 years ago
Harshavardhana
dbb5408906
Add ARM64 build binary for README.md
...
Fixes #3626
8 years ago
Harshavardhana
18c9d49a32
Build browser with new changes and update yarn.lock
8 years ago
Harshavardhana
d41dcb784b
Move to blake2b-simd due to perf problems in golang.org/x/crypto
...
Ref https://github.com/golang/go/issues/18563
8 years ago
Krishna Srinivas
659d5aabd1
browser: Access to private paths redirects to login. ( #3622 )
8 years ago
Krishna Srinivas
b4343a28b7
browser: add yarn.lock and .gitignore files. ( #3621 )
8 years ago
Krishnan Parthasarathi
0e693e0284
Add dry-run query param for HealFormat API ( #3618 )
8 years ago
Anis Elleuch
fc880f9b23
admin: Enhance set credentials test ( #3619 )
...
Add more test cases and ignore access and secret keys set from the env
8 years ago
Krishna Srinivas
cead24b0f7
miniobrowser: Bring Minio browser source into minio repo. ( #3617 )
8 years ago
Krishna Srinivas
8489f22fe2
signature-v2: Use request.RequestURI for signature calculation. ( #3616 )
...
* signature-v2: Use request.RequestURI for signature calculation.
* Use splitStr instead of strings.Split
8 years ago
Anis Elleuch
fc6f804865
server-mux: Keep listening after Accept() err ( #3613 )
...
Accept() can return errors like: `too many open files`, no need to totally quit listening in this case.
8 years ago
Anis Elleuch
d1d89116f1
admin: Add version to service Status API response ( #3605 )
...
Add server's version field to service status API:
"version":{
"version":"DEVELOPMENT.GOGET",
"commitID":"DEVELOPMENT.GOGET"
}
8 years ago