Krishna Srinivas
8021061bd8
Implement BucketUpdater interface to call BucketMetaState methods. ( #3375 )
2016-11-30 13:37:38 -08:00
Anand Babu (AB) Periasamy
bc9509bc8a
edits on Limits
2016-11-30 01:58:31 -08:00
Krishna Srinivas
e3b4910b66
FS/CompleteMultipart: lock the namespace before renaming the appended tmp file. ( #3371 )
2016-11-29 23:26:36 -08:00
Harshavardhana
d056f19d07
api: Allow reconnection of policy/notification rpc clients. ( #3368 )
...
Since we moved out reconnection logic from net-rpc-client.go
we should do it from the top-layer properly and bring back
the code to reconnect properly in-case the connection is lost.
2016-11-29 22:39:32 -08:00
Harshavardhana
834007728c
fs: Do not print redundant md5Sum response header. ( #3369 )
...
For both GET and HEAD requests.
2016-11-29 16:47:01 -08:00
Krishnan Parthasarathi
a609a4126c
Vendorize recent fixes in dsync ( #3365 )
...
* Update 'i' only if lock grant read from buffered channel
2016-11-28 23:03:46 -08:00
Krishna Srinivas
bcd1a2308b
FS/Shutdown: cleanup and delete .minio.sys during Shutdown() ( #3360 )
2016-11-28 22:54:48 -08:00
koolhead17
694bad434c
docs: Modified the Docker doc to reflect distributed release image & ( #3362 )
...
modification.
2016-11-28 12:45:35 -08:00
Anis Elleuch
01f625824a
args: Honor config-dir & quiet wherever they are ( #3356 )
...
setGlobalsFromContext() is added to set global variables after parsing
command line arguments. Thus, global flags will be honored wherever
they are placed in minio command.
2016-11-28 12:15:36 -08:00
Bala FA
9ccfb70104
Minor cleanup. ( #3361 )
2016-11-28 12:14:24 -08:00
Harshavardhana
201a20ac02
handlers: Handle re-direction properly for S3 requests. ( #3355 )
...
Make sure all S3 signature requests are not re-directed
to `/minio`. This should be only done for JWT and some
Anonymous requests.
This also fixes a bug found from https://github.com/bji/libs3
```
$ s3 -u list
ERROR: XmlParseFailure
```
Now after this fix shows proper output
```
$ s3 -u list
Bucket Created
-------------------------------------------------------- --------------------
andoria 2016-11-27T08:19:06Z
```
2016-11-27 16:30:46 -08:00
Krishna Srinivas
f3322e94c8
FS: Skip creating fs.json for objects created by minio (ex. policy.json) ( #3353 )
2016-11-27 11:33:08 -08:00
Harshavardhana
46a6fde813
xl/fs: Fix initializing meta volume bug.
2016-11-25 18:17:53 -08:00
Anis Elleuch
fd1f09a66c
log: Enable loggers just after configuration load ( #3348 )
...
It would make sense to enable logger just after config initialisation.
That way, errorIf() and fatalIf() will be usable and can catch error
like invalid access and key errors.
2016-11-25 10:39:00 -08:00
Remco Verhoef
752ed7915b
Add windows services docs with nssm instead of sc.
2016-11-24 16:53:10 -08:00
Bala FA
d3064e40b3
isDocker() logs error than fatal error. ( #3347 )
2016-11-24 16:06:49 -08:00
Bala FA
39f9324616
Remove uncessary err != nil check. ( #3346 )
2016-11-24 15:22:33 -08:00
Aditya Manthramurthy
a822b8e782
docs: Fix command sample to be copy-pastable ( #3345 )
2016-11-24 11:38:19 -08:00
Harshavardhana
a6922f94ee
docs: Fix more formatting issues.
2016-11-23 20:25:05 -08:00
Harshavardhana
b4d57bf4c4
docs: Fix some formatting issues for rendering
2016-11-23 20:20:12 -08:00
Bala FA
0f2e493c9a
Use isErrIgnored() function wherever applicable. ( #3343 )
2016-11-23 20:05:04 -08:00
Nitish Tiwari
4ef2d8940c
Rename quick-start-guide.md to README.md ( #3344 )
2016-11-23 20:04:29 -08:00
Nitish Tiwari
96099a1e97
Added distributed Minio architecture images and quick start guide ( #3342 )
2016-11-23 19:30:23 -08:00
Harshavardhana
0e87f29de9
Disable heal message printing, comment it out as todo.
2016-11-23 17:54:29 -08:00
Harshavardhana
dd74e5a809
Revert "init: Honor config-dir flag when it is passed as global or local flag ( #3337 )"
...
This reverts commit e2ef95af7d
.
This is reverted since the previous patch caused crashes.
2016-11-23 17:31:36 -08:00
Harshavardhana
12c1abed98
Vendorize with bug fixes from minio browser. ( #3341 )
...
This patch brings in changes from miniobrowser repo.
- Bucket policy UI and functionality fixes by @krishnasrinivas
- Bucket policy implementation by @balamurugana
- UI changes and new functionality changing password etc. @rushenn
- UI and new functionality for sharing URLs, deleting files
@rushenn and @krishnasrinivas.
- Other misc fixes by @vadmeste @brendanashworth
2016-11-23 17:31:11 -08:00
Anis Elleuch
e2ef95af7d
init: Honor config-dir flag when it is passed as global or local flag ( #3337 )
...
setGlobalsFromContext() is added to sets global variable after parsing
command line arguments.
2016-11-23 17:13:40 -08:00
Harshavardhana
d711ff454e
logs: Do not log common successful errors. ( #3340 )
...
Errors like `BucketNotFound`, `BucketExists` shouldn't be logged.
Fixes #3229
2016-11-23 16:36:26 -08:00
Anis Elleuch
c667d20dfc
config-migrate: Fix buggy continuous re-migration of v9 to v10 config ( #3338 )
2016-11-23 15:53:55 -08:00
Harshavardhana
6efee2072d
objectLayer: Check for `format.json` in a wrapped disk. ( #3311 )
...
This is needed to validate if the `format.json` indeed exists
when a fresh node is brought online.
This wrapped implementation also connects to the remote node
by attempting a re-login. Subsequently after a successful
connect `format.json` is validated as well.
Fixes #3207
2016-11-23 15:48:10 -08:00
Harshavardhana
7a5bbf7a2e
Revert "Vendor update for dsync, fixing major go routine leak issue. ( #3308 )"
...
This reverts commit 273228fafa
.
2016-11-23 15:17:41 -08:00
Anis Elleuch
14cb3645a3
config/logger: remove syslogger and upgrade to config v10 which eliminates syslog config ( #3336 )
2016-11-23 15:00:53 -08:00
Krishna Srinivas
f4f512fedd
FS/multipart: Bug fix related to part path. Hold lock on part while appending. ( #3335 )
2016-11-23 12:50:09 -08:00
Nitish Tiwari
1983925dcf
Added distributed Minio architecture files. ( #3330 )
2016-11-23 11:36:52 -08:00
Anis Elleuch
22c98d3fa2
logger: Disassociate shared log config between console, file and syslog ( #3333 )
...
logurs is not helping us to set different log formats (json/text) to
different loggers. Now, we create different logurs instances and call
them in errorIf and fatalIf
2016-11-23 11:35:04 -08:00
Krishna Srinivas
01ae5bb39c
FS/multipart: Fix append-parts to use minioMetaTmpBucket. ( #3304 )
2016-11-23 03:04:04 -08:00
koolhead17
11faf3f16d
docs: Modified FreeBSD guide with official how to install golang link, ( #3293 )
2016-11-23 02:35:19 -08:00
Remco Verhoef
d3df6c711a
How to run Minio as a service on Windows ( #3327 )
2016-11-23 02:27:54 -08:00
Bala FA
ed6e781679
globals: make read only variables as constants. ( #3326 )
2016-11-22 20:13:20 -08:00
Bala FA
baf1c1638d
server: set maximum allowed request body. ( #3324 )
...
This patch sets the value as 5GiB + 64MiB. 5GiB is the maximum
allowed object size and 64MiB is for form data fields and headers.
2016-11-22 19:58:51 -08:00
Bala FA
825000bc34
Use humanize constants for KiB, MiB and GiB units. ( #3322 )
2016-11-22 18:18:22 -08:00
Bala FA
c1ebcbcda2
Remove usused code. ( #3321 )
2016-11-22 17:44:18 -08:00
Anis Elleuch
41a3a9e402
server: forbid zero port in address flag since it confuses clients and ( #3318 )
2016-11-22 17:01:15 -08:00
Bala FA
1d4ac4b084
Rename getUUID() into mustGetUUID() ( #3320 )
...
In case of UUID generation failure mustGetUUID() will panic than
infinitely trying in for loop.
2016-11-22 16:52:37 -08:00
Bala FA
71b357e4f2
Remove uploadIDChange structure. ( #3309 )
...
addUploadID() and removeUploadID() are wrappers to updateUploadJSON()
which is called with respective arguments.
2016-11-22 15:29:39 -08:00
Anis Elleuch
339c9019b9
Protect multipart directory from removing when it is empty ( #3315 )
2016-11-22 13:15:06 -08:00
Harshavardhana
dd93f808c8
web: Add more data for jsonrpc responses. ( #3296 )
...
This change adds more richer error response
for JSON-RPC by interpreting object layer
errors to corresponding meaningful errors
for the web browser.
```go
&json2.Error{
Message: "Bucket Name Invalid, Only lowercase letters, full stops, and numbers are allowed.",
}
```
Additionally this patch also allows PresignedGetObject()
to take expiry parameter to have variable expiry.
2016-11-22 11:12:38 -08:00
Anis Elleuch
4098025c11
Remove XL multipart tmp files when the latter is canceled ( #3214 )
...
XL multipart fails to remove tmp files when an error occurs during upload, this case covers the scenario where an upload is canceled manually by the client in the middle of job.
2016-11-21 16:34:57 -08:00
Bala FA
bef0a50bc1
Cleanup and fixes ( #3273 )
...
* newRequestID() (previously generateUploadID()) returns string than byte array.
* Remove unclear comments and added appropriate comments.
* SHA-256, MD5 Hash functions return Hex/Base64 encoded string than byte array.
* Remove duplicate MD5 hasher functions.
* Rename listObjectsValidateArgs() into validateListObjectsArgs()
* Remove repeated auth check code in all bucket request handlers.
* Remove abbreviated names in bucket-metadata
* Avoid nested if in bucketPolicyMatchStatement()
* Use ioutil.ReadFile() instead of os.Open() and ioutil.ReadAll()
* Set crossDomainXML as constant.
2016-11-21 13:51:05 -08:00
Anis Elleuch
71ada9d6f8
commitXLMetadata() expects src and dst buckets in its arguments ( #3307 )
2016-11-21 12:45:02 -08:00