Harshavardhana
2e311168ee
multipart: NewMultipartUpload shouldn't return empty UploadID
...
Existing code
```
{
if os.IsNotExist(e) {
e = os.MkdirAll(objectDir, 0700)
if e != nil {
return "", probe.NewError(e)
}
}
return "", probe.NewError(e) ---> Error was here.
}
```
For a successful 'MkdirAll' it would still return an empty uploadID,
but the 'error' would be nil. This would succeed the request but
client would fail.
Fix is to re-arrange the logic. Thanks to Alexander Neumann @fd0 , for
reporting this problem.
9 years ago
Harshavardhana
18375b7794
ioutils: Add tests
9 years ago
Harshavardhana
1341fb79c3
listBuckets: Bump up the limit of max buckets to 1000.
9 years ago
Harshavardhana
f5d6be158e
listObjects: Simplify channel based changes.
9 years ago
Harshavardhana
682020ef2f
listObjects: Channel based changes.
...
Supports:
- prefixes
- marker
9 years ago
Krishna Srinivas
9e18bfa60e
listObjects: Channel based ftw - initial implementation.
9 years ago
Harshavardhana
2ec9b16667
deleteBucket: Directory not empty error on windows is "directory is not empty"
9 years ago
Harshavardhana
ae2f15c6d0
api: More cleanups at WebAPI.
...
- Fixes a bug where bucketName was not denormalized.
- Remove unneeded functions from jwt.go
9 years ago
Harshavardhana
497f13d733
api: Various fixes.
...
- limit list buckets to limit only 100 buckets, all uppercase buckets
are now lowercase and work transparently with all calls.
- Change disk.Stat to disk.GetInfo and return back disk.Info{} struct.
- Introduce new ioutils package which implements ReadDirN(path, n),
ReadDirNamesN(path, n)
9 years ago
Harshavardhana
8cdaf87c8f
signature: Add aws-cli work-around for now.
...
Golang http server strips off 'Expect' header, if the
client sent this as part of signed headers we need to
handle otherwise we would see a signature mismatch.
`aws-cli` sets this as part of signed headers which is
a bad idea since servers trying to implement AWS
Signature version '4' will all encounter this issue.
According to
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.20
Expect header is always of form:
Expect = "Expect" ":" 1#expectation
expectation = "100-continue" | expectation-extension
So it safe to assume that '100-continue' is what would
be sent, for the time being keep this work around.
9 years ago
Harshavardhana
d955ce4123
s3cmd: Fix signature issues related to s3cmd.
...
Support regions both 'us-east-1' and 'US' (short hand for US Standard)
honored by S3.
9 years ago
Harshavardhana
1bfb490f90
pkg/user: Add pending tests.
9 years ago
Harshavardhana
4fc161ddb1
bucketName: relax bucket names, now allow numbers as starting characters.
9 years ago
Harshavardhana
836f5204af
minio: Add config-folder option.
...
Fixes #997
9 years ago
Anand Babu (AB) Periasamy
8e8538175b
fixes race in Init
9 years ago
Anand Babu (AB) Periasamy
25df427383
contentdb file.ext to content-type lookups
9 years ago
Harshavardhana
7c91a8495f
signature/region: Remove 'milkyway' and use 'us-east-1' as default.
...
Fixes #980
9 years ago
Harshavardhana
a328120e4d
fs: Filter out $multiparts properly.
...
Relax md5 requirement during complete multipart upload - ref #977
9 years ago
Harshavardhana
35b9f965f1
fs: use new atomic package - use FileCreateWithPrefix() API
9 years ago
Harshavardhana
f8e59e8399
386: Support minio server on 32bit linux.
9 years ago
Harshavardhana
d668117a99
fs: Improve upon proper lexical ordering for ListObjects()
...
Handle sorting properly making sure that we treat fs like a
flat namespace.
9 years ago
Krishna Srinivas
440bec28d9
docker: the docker image will now contain just the static binary
9 years ago
Harshavardhana
ab15f56a61
fs/bucket: Move bucket metadata into buckets.json
9 years ago
Harshavardhana
baf66988e9
Simplify bucket delete - remove only bucket directory, no need to recursively traverse
9 years ago
Krishna Srinivas
0010f0ee10
Remove empty directories while removing an oobject
9 years ago
Harshavardhana
53adfb38f4
Leverage sort Interface to provide sortUnique function
9 years ago
Harshavardhana
dbaa4d8643
Move ListObjects into its own file
9 years ago
Harshavardhana
1f66f4869b
Fix all remaining windows path issues.
9 years ago
Harshavardhana
afa27b9847
On windows translate Prefix, Marker and Delimiter for paths
9 years ago
Harshavardhana
b74852116a
Fix portability issues for arm on raspberry pi
9 years ago
Harshavardhana
dddb1650de
Add 5% cumulative reduction in total size of the disk
...
This is done due to filesystem holding additional metadata and inode space
which is unaccounted for during min-free-disk calculation.
9 years ago
Harshavardhana
179d2d7dac
Add initial cut of auto expiry of objects
9 years ago
Harshavardhana
c065be656c
Implement min-free-disk as a subcommand, deprecate flag
9 years ago
Harshavardhana
5b2fa33bdb
Implementing min-free-disk
9 years ago
Harshavardhana
a8a935f5fd
Improve disk code to return back disk StatFS{} structure
...
```
StatFS {
Total int64
Free int64
FSType string
}
```
Provides more information in a cross platform way.
9 years ago
Harshavardhana
aee0845b2e
Add disk package
...
Implements
- Stat returns total and free disk space supported across platforms
- Type returns type of the filesystem underneath
9 years ago
Harshavardhana
1256ca86d0
Add fs separator
9 years ago
Harshavardhana
2ec679a089
If directory already removed, return nil and move on
9 years ago
Harshavardhana
d534fc5a4f
Implement delete bucket properly with proper error handlings
9 years ago
Harshavardhana
c9af01d807
Enhance listing further, this time handle cases related to common prefixes
9 years ago
Harshavardhana
0eb7f078f9
Implement Bucket ACL support
9 years ago
Harshavardhana
762b798767
Migrate this project to minio micro services code
9 years ago
Harshavardhana
3318cba132
Add windows support for minhttp library
9 years ago
Harshavardhana
7fea9cb550
Add rpc signature handler
9 years ago
Harshavardhana
11048708bb
Implement GetBucketACL - fixes #893
9 years ago
Anand Babu (AB) Periasamy
b52697e6ad
new task model minio server
9 years ago
Harshavardhana
a060b158c8
Add quick.CheckVersion() to verify config version quickly before unmarshalling the full struct
...
This is needed during migration where we would need to verify the underlying version number
in a quick way.
9 years ago
Harshavardhana
ab5ea997ab
Make erasure Encode and Decode atomic to avoid races
9 years ago
Harshavardhana
1b42398e8b
Canonicalize all the incoming input values, now PresignedPostPolicy works with minio-go
9 years ago
Harshavardhana
d5ce2f6944
Make erasure matrix type not optional choose automatically
...
Remove option of providing Technique and handling errors based on that
choose a matrix type automatically based on number of data blocks.
INTEL recommends on using cauchy for consistent invertible matrices,
while vandermonde is faster we should default to cauchy for large
data blocks.
9 years ago