Krishna Srinivas
c06b9abc15
bucket-handlers: do not unescape marker as gorilla layer would have already done it. ( #1495 ) ( #1510 )
8 years ago
Krishna Srinivas
a5d31d4254
XL/ListObjects: use string.TrimSuffix instead of Trim. ( #1498 ) ( #1509 )
8 years ago
karthic rao
20ca65c793
Cleanup: mispell fixes
8 years ago
karthic rao
0b4bbe6d9e
Adding XL Object layer validation for existing unit tests of single node ( #1499 )
...
object layer.
Adding isBucketExist check for GetObjectInfo in the XL layer.
8 years ago
Krishna Srinivas
48d3be36da
XL/ListObjects: Fix ordering issue during listing if the files were uploaded as multipart uploads. ( #1498 ) ( #1506 )
...
i.e if two files "tmp" and "tmp.1" are uploaded as multipart we would list ""tmp.1"" before ""tmp"" as "tmp.1/" < "tmp/"
8 years ago
Harshavardhana
5133ea50bd
xl/fs: Make i/o operations atomic. ( #1496 )
8 years ago
Harshavardhana
17868ccd7f
handlers: overhaul entire writErrorResponse, simplify. ( #1472 )
8 years ago
Harshavardhana
ba5805e60a
bucketPolicy: Do not use regexes, just do prefix matches. ( #1497 )
...
AWS arn supports wildcards and this is flat namespace, simple
prefix matching is fine.
Fixes #1481
Fixes #1482
8 years ago
Harshavardhana
ca097de96c
xl/fs: Add initObjectLayer function. ( #1494 )
...
Fixes #1493
8 years ago
Bala FA
658a595d7a
xl-erasure: RenameFile should support quorum. ( #1487 )
...
Fixes #1463
8 years ago
Krishna Srinivas
247e835d7b
object: move go-routine listing from posix to objectLayer. ( #1491 )
8 years ago
Harshavardhana
46680788f9
xl/fs: cleanup '/.minio/tmp' directory on each initialization. ( #1490 )
8 years ago
Harshavardhana
ad40036cba
posix: filepath shouldn't be used anymore use path.Join ( #1486 )
8 years ago
Harshavardhana
82fbe908a3
object: DeleteBucket should return proper error for BucketNotEmpty. ( #1489 )
...
Fixes #1488
8 years ago
Harshavardhana
f145e1042f
quick/config: No need to use Data() with type assertion. ( #1480 )
...
Since input to quick.New() is a pointer the unmarshalled value
internally already has the value, subsequent type assertions
are not needed.
Thanks to Bala for finding this behavior.
Fixes #1475
8 years ago
Rajiv Makhijani
9dccbd6478
New Dockerfile for building & running minio inside Docker (inc. autobuild support) ( #1473 ) ( #1485 )
8 years ago
karthic rao
82113b747c
Resource matching fix to overcome issues with regular expression based match ( #1476 )
8 years ago
Rajiv Makhijani
a5959789d5
Make minimum file space percent a constant ( #1484 )
8 years ago
Harshavardhana
6988ed9257
xl/getObjectInfo: Returns back proper size, modTime and md5Sum. ( #1479 )
...
Fixes #1469
8 years ago
Rajiv Makhijani
321aefa026
Add Response for PostPolicyBucketHandler ( #1477 ) ( #1483 )
8 years ago
Harshavardhana
dd417e5476
fs: Handle cases of PutObject for an existing prefix. ( #1478 )
8 years ago
Bala FA
da3a53376c
server: save and compare multiple disks are used ( #1474 )
...
When server is run with multiple disks which uses xl interface where
order and count of disks are important, this patch saves such disks
configuration and compares in next run if there is a mismatch.
Fixes #1458
8 years ago
Harshavardhana
e4d89d8156
xl/deleteObject: Support deleting special multipart object. ( #1470 )
...
Fixes #1452
8 years ago
Harshavardhana
d0e854afb7
xl/fs: Bring in ".minio/tmp" directory support. ( #1464 )
...
All transactions happen through this directory inside ".minio/temp".
Adding this allows us to remove any temporary files which were not
committed before.
Fixes #1462
Fixes #1444
8 years ago
Harshavardhana
6f1811ee4d
config: Migration should save region properly. ( #1468 )
...
Fixes #1466
8 years ago
Yurii
bba5468368
minio: Replace 'bucket already exists' error by 'bucket already owned by you'. ( #1465 )
...
S3 API returns BucketAlreadyExists error when some another user has such bucket.
If user that creates the bucket already has it, s3 returns BucketAlreadyOwnedByYou.
As minio has only one user, it should behave accordingly.
Otherwise it causes failures in the applications that ignore creation of already existing bucket in the account, but fail when bucket name is used by someone else.
8 years ago
Harshavardhana
7ae40eb1bb
minhttp: Remove probe usage, move to golang error. ( #1459 )
...
Fixes #1454
8 years ago
Harshavardhana
ad8e27a963
xl: Rename 'xl.json' to 'file.json' ( #1461 )
...
Fixes #1460
8 years ago
Harshavardhana
ac7a7cec20
bucket-policy: Delete policy should remove policy properly. ( #1456 )
8 years ago
Harshavardhana
afd59c45dc
xl/fs: Move few functions into common code. ( #1453 )
...
- PutObject()
- PutObjectPart()
- NewMultipartUpload()
- AbortMultipartUpload()
Implementations across both FS and XL object layer
share common implementation.
8 years ago
Harshavardhana
3bf3d18f1f
rpc/client: Implement RenameFile properly. ( #1443 )
8 years ago
Harshavardhana
8102a4712a
xl/metadata: Keep the json erasure tag consistent. ( #1447 )
...
Currently the on-disk json has "Erasure" we should
keep it consistent name and move to lower case instead.
8 years ago
karthic rao
2393a3a0be
XL non-recursive fix ( #1450 )
8 years ago
Harshavardhana
d006129fb5
xl/vol: Add healing and quorum support for StatVol, MakeVol.
...
Fixes #1437
8 years ago
Harshavardhana
7caa82f32f
xl/fs: Rename minioMetaVolume to minioMetaBucket. ( #1442 )
8 years ago
Krishna Srinivas
286de4de2c
XL - fixes mostly related to multipart listing. ( #1441 )
...
* XL/Multipart: Use json.NewDecoder to decode read stream.
* XL/Multipart: fix recursive and non-recursive listing.
* XL/Multipart: Create object part with md5sum later using RenameFile.
* XL/Multipart: ListObjectParts should list parts in order.
previously: uploadID.10.md5sum < uploadID.2.md5sum
fix : uploadID.00010.md5sum > uploadID.00002.md5sum
* XL/Multipart: Keep the size of each part in the multipart metadata file to avoid stats on the parts.
* XL/Multipart: fix listing bug which was showing size of the multipart uploaded objects as 0.
8 years ago
Harshavardhana
ba7a55c321
xl: ReedSolomon code fix small file erasure bug. ( #1431 )
...
For files less than 'dataBlocks', erasure encoding would fail
with short data due to a bug in the implementation itself.
Relax the error return, even a single byte can be properly
erasure coded without issues.
Fixes #1413
8 years ago
Harshavardhana
e05aa762a9
fs: Create object part with md5sum later using RenameFile. ( #1440 )
...
Fixes #1340 .
8 years ago
Krishna Srinivas
0c27d8e5b1
XL/Multipart: maintain the parts info in multipart.json after complete-multipart-upload. ( #1436 )
8 years ago
Harshavardhana
443ec37765
xl: Add disk usages properly for ListVols() and StatVol(). ( #1435 )
8 years ago
Bala FA
d5df8b8b8d
xl: remove unused err return in listFileVersions() ( #1434 )
8 years ago
Harshavardhana
ac2933c799
windows: Enable erasure test for windows. ( #1432 )
...
Fixes #1363
8 years ago
Bala FA
84afec9ae0
xl: fix DeleteFile() removing meta data files without updating it ( #1433 )
...
Fixes #1428 #1427
8 years ago
Harshavardhana
27c50a70cc
obj: support object names with curly braces. ( #1429 )
...
Example files like
```
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox@ubuntu.com.xpi
Song's Son.ogg
```
Should be supported.
8 years ago
Bala FA
a978975eea
xl: add quorum support for DeleteFile() ( #1426 )
...
Fixes #1396
8 years ago
Harshavardhana
dc45ea3946
log: Fix file logging, enable it properly. ( #1424 )
...
Fixes #1419
8 years ago
Harshavardhana
9eb56f0676
xl/healFile: Handle errors and continue ( #1425 )
...
Fixes #1354
8 years ago
Harshavardhana
10a010c1ad
xl/fs: Object layer - keep common functions into single place. ( #1423 )
8 years ago
Harshavardhana
a9935f886c
vendor: update reedsolomon package with new perm improvements. ( #1422 )
8 years ago
Harshavardhana
4e34e03dd4
xl/fs: Split object layer into interface. ( #1415 )
8 years ago