Harshavardhana and GitHub
072fcf3ba6
fs: Make sure to validate bucket first in PutObject() ( #4427 )
...
Currently even when bucket doesn't exist we wrongly
return success, when an object is a directory prefix with
'/' as suffix and is of size 0.
This PR fixes this behavior.
2017-05-25 09:22:43 -07:00
Harshavardhana and GitHub
b78f6fbcc5
Do not send envVars in ServerInfo() ( #4422 )
...
Sending envVars along with access and secret
exposes the entire minio server's sensitive
information. This will be an unexpected
situation for all users.
If at all we need to look for things like if
credentials are set through env, we should
only have access to only this information
not the entire set of system envs.
2017-05-24 21:09:23 -07:00
samkevich and Harshavardhana
99ca8a2928
fix InvalidAccessKeyId error according to amazon documentation ( #4404 )
...
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
2017-05-23 20:07:52 -07:00
poornas and Dee Koder
9b3dd44607
Add dotnet library to minio startup message ( #4410 )
2017-05-23 13:57:27 -07:00
Krishnan Parthasarathi and Harshavardhana
3c5db69ffd
Treat 0.0.0.0 as local address in --address flag ( #4386 )
2017-05-23 12:07:39 -07:00
Krishna Srinivas and Harshavardhana
28c26a9e59
Generate random ETag if client does not provide MD5 for PutObjectPart ( #4385 )
...
fixes #4289
fixes #4290
2017-05-22 15:48:48 -07:00
luomeiqin and Harshavardhana
9d98bf1c0f
Bucket names can contain hyphen ( #4324 )
2017-05-19 07:30:00 -07:00
Harshavardhana and GitHub
1886d94e95
server/mux: Use constants provided by Go http ( #4360 )
2017-05-17 11:57:52 -07:00
Anis Elleuch and Harshavardhana
542f7ae42c
gateway: Reject endpoint pointing to local gateway ( #4310 )
...
Show an error when the user enters an endpoint url pointing
to the gateway server itself.
2017-05-16 21:13:29 -07:00
Harshavardhana and GitHub
59b3e0b79b
auth/rpc: Add RWMutex instead of Mutex for granular locking. ( #4352 )
...
Refer https://github.com/minio/minio/issues/4345
2017-05-16 14:34:56 -07:00
Aditya Manthramurthy and Harshavardhana
8975da4e84
Add new ReadFileWithVerify storage-layer API ( #4349 )
...
This is an enhancement to the XL/distributed-XL mode. FS mode is
unaffected.
The ReadFileWithVerify storage-layer call is similar to ReadFile with
the additional functionality of performing bit-rot checking. It
accepts additional parameters for a hashing algorithm to use and the
expected hex-encoded hash string.
This patch provides significant performance improvement because:
1. combines the step of reading the file (during
erasure-decoding/reconstruction) with bit-rot verification;
2. limits the number of file-reads; and
3. avoids transferring the file over the network for bit-rot
verification.
ReadFile API is implemented as ReadFileWithVerify with empty hashing
arguments.
Credits to AB and Harsha for the algorithmic improvement.
Fixes #4236 .
2017-05-16 14:21:52 -07:00
Frank and Harshavardhana
cae4683971
Make clearing of stale debug lock info independent of deleting map entry of lock itself. ( #4353 )
...
This is believed to address issue #4337 where stale information for debug locks in shown.
2017-05-16 07:19:17 -07:00
Krishna Srinivas and Harshavardhana
5db1e9f3dd
signature: use region from Auth header if server's region not configured ( #4329 )
2017-05-15 18:17:02 -07:00
Anis Elleuch and Harshavardhana
465274cd21
server-info: Change Error type to string ( #4346 )
...
Golang std error type doesn't marshal/unmarshal with json. So errors
are not actually being sent when a client calls ServerInfo() API.
2017-05-15 07:28:47 -07:00
Harshavardhana and GitHub
87fb911d38
Rename structs for azure and s3 gateway to be consistent. ( #4347 )
2017-05-15 00:52:33 -07:00
Harshavardhana and GitHub
155a90403a
fs/erasure: Rename meta 'md5Sum' as 'etag'. ( #4319 )
...
This PR also does backend format change to 1.0.1
from 1.0.0. Backward compatible changes are still
kept to read the 'md5Sum' key. But all new objects
will be stored with the same details under 'etag'.
Fixes #4312
2017-05-14 12:05:51 -07:00
Harshavardhana and GitHub
c63afabc9b
build/release: Generate sha256sums also without the release tag. ( #4318 )
...
Ref #4306
2017-05-12 21:40:22 -07:00
Anis Elleuch and Harshavardhana
f2ed149714
Add slack channel link to corrupted disk err msg ( #4270 )
2017-05-11 14:27:32 -07:00
Harshavardhana and GitHub
5a16dcf4cf
Add a graceful msg when CTRL+C is pressed. ( #4248 )
2017-05-11 14:27:18 -07:00
Krishna Srinivas and Harshavardhana
bb292e4e38
web-handler: Allow anonymous download of zip ( #4309 )
...
fixes #4230
2017-05-10 09:54:24 -07:00
Harshavardhana and GitHub
fa3f6d75b6
fs: Verify if parent is an object before i/o. ( #4304 )
...
PutObject() needs to verify and fail.
Fixes #4301
2017-05-09 17:46:46 -07:00
Harshavardhana and GitHub
298b470f69
fs/erasure: Ignore objects with / even for DeleteObject() ( #4303 )
...
Additionally GetObject() also returns errFileNotFound similar
to HeadObject().
Fixes #4302
2017-05-09 14:32:24 -07:00
Krishna Srinivas and Harshavardhana
fc774957fe
gateway: reject requests with unknown authorization ( #4297 )
2017-05-09 07:53:31 -07:00
Anis Elleuch and Harshavardhana
85bc6003e9
gateway-s3: Avoid x2 double quotes in ListParts ( #4295 )
...
ListParts response returns doubled double quotes in ETag field.
This commit cleans ETag when receiving it from minio client to
fix the issue.
2017-05-08 14:42:05 -07:00
Harshavardhana and GitHub
610dbe3479
config: Do not migrate config file if not needed. ( #4264 )
...
Also improve the error message returned by `pkg/quick`.
Fixes #4233
2017-05-06 10:16:59 -07:00
Harshavardhana and GitHub
76f4f20609
fs: Migrate object metadata to objects directory. ( #4195 )
...
Fixes #3352
2017-05-05 08:49:09 -07:00
Harshavardhana and GitHub
99ddd35343
docs: use IEC format such as iB everywhere. ( #4247 )
2017-05-05 08:28:08 -07:00
Remco Verhoef and Harshavardhana
01e9adc4b3
Implement anonymous uploads, fixes #4250 ( #4259 )
2017-05-04 20:03:56 -07:00
Harshavardhana and Dee Koder
df027a8f51
Webhook endpoints can fail, we must start the server. ( #4255 )
...
This PR fixes a regression introduced in #4060
2017-05-04 13:43:54 -07:00
Krishnan Parthasarathi and Harshavardhana
02910725c5
Make gateway help for s3/azure similar ( #4249 )
2017-05-04 10:38:48 -07:00
Remco Verhoef and Dee Koder
069cf9e8aa
Use s3.amazonaws.com as default endpoint, fixes #4240 ( #4242 )
2017-05-03 22:41:03 -07:00
Aditya Manthramurthy and Harshavardhana
2121b78ea7
Fix bug in JSON representation of object properties ( #4238 )
...
Introduced in #4003
2017-05-03 20:10:00 -07:00
Remco Verhoef and Dee Koder
5016649f47
Add s3 backend to help, fixes #4219 ( #4221 )
...
* Add s3 backend to help, fixes #4219
* Add samples for Gateway usage with S3
2017-05-03 17:55:30 -07:00
Bala FA and Harshavardhana
2b78444056
fix: ignore TLS handshake error. ( #4227 )
...
Fixes #4200
2017-05-03 03:23:15 -07:00
Karthic Rao and Harshavardhana
9b58a669e5
tests: Fix rare test crash ( #4175 )
...
Fix rare test crash by improving the randomness logic.
2017-05-02 23:54:22 -07:00
Krishna Srinivas and Harshavardhana
e5b2e25caf
gateway-s3: vendor-update minio-go ( #4220 )
2017-05-02 18:46:39 -07:00
Krishna Srinivas and Harshavardhana
4aa65910e5
gateway: Restore bucket policy functionality for Azure ( #4209 )
2017-05-02 12:27:25 -07:00
Harshavardhana and GitHub
8b272a3163
config: Improve config migrate messaging. ( #4216 )
...
Previous message
```
Migration from version ‘17’ to ‘18’ completed successfully.
```
For example didn't provide any meaningful insights.
This PR attempts to improve this message as below
```
Configuration file '/home/harsha/.minio/config.json' migrated from version '17' to '18' successfully.
```
Fixes #4199
2017-05-02 11:43:27 -07:00
Harshavardhana and GitHub
f0b5c0ec7c
windows: Support all REPARSE_POINT attrib files properly. ( #4203 )
...
This change adopts the upstream fix in this regard at
https://go-review.googlesource.com/#/c/41834/ for Minio's
purposes.
Go's current os.Stat() lacks support for lot of strange
windows files such as
- share symlinks on SMB2
- symlinks on docker nanoserver
- de-duplicated files on NTFS de-duplicated volume.
This PR attempts to incorporate the change mentioned here
https://blogs.msdn.microsoft.com/oldnewthing/20100212-00/?p=14963/
The article suggests to use Windows I/O manager to
dereference the symbolic link.
Fixes #4122
2017-05-02 02:35:27 -07:00
Remco Verhoef and Harshavardhana
44d53c9c67
cleanup and fix comments ( #4212 )
2017-05-01 14:44:31 -07:00
Krishna Srinivas and Harshavardhana
6cf6828a4c
gateway: Rename gateway files to have "gateway-" prefix ( #4207 )
2017-05-01 10:32:18 -07:00
Krishna Srinivas and Harshavardhana
01f04c717e
gateway: reject bad path segments in URL ( #4202 )
2017-04-28 17:17:18 -07:00
Krishna Srinivas and Harshavardhana
0d32b22359
gateway: Fix help message for gateway ( #4201 )
2017-04-28 16:42:16 -07:00
Anis Elleuch and Harshavardhana
d36dd80a8a
cors: Set Access-Control-Allow-Credentials to true ( #4185 )
...
This allow browsers to send credentials with preflighted requests.
2017-04-27 12:40:22 -07:00
Remco Verhoef and Harshavardhana
3a539ce660
Implement gateway S3 support ( #3940 )
2017-04-27 11:26:00 -07:00
Harshavardhana and GitHub
57c5c75611
web: Simplify and converge common functions in web/obj API. ( #4179 )
...
RemoveObject() in webAPI currently re-implements some part
of the code to remove objects combine them for simplicity
and code convergence.
2017-04-26 23:27:48 -07:00
Bala FA and Harshavardhana
cf1fc45142
Improve duration humanization. ( #4071 )
2017-04-26 03:38:35 -07:00
Harshavardhana and GitHub
48aa2ac392
server: Validate path for bad components in a handler. ( #4170 )
2017-04-24 18:13:46 -07:00
Frank and Harshavardhana
0d1e2ab509
Remove hardcoded min and max limit for erasure coding ( #4157 )
2017-04-24 10:00:33 -07:00
Anis Elleuch and Harshavardhana
83abad0b37
admin: ServerInfo() returns info for each node ( #4150 )
...
ServerInfo() will gather information from all nodes before returning
it back to the client.
2017-04-21 07:15:53 -07:00