Anand Babu (AB) Periasamy
8e4cc8df00
Merge pull request #1687 from harshavardhana/mirror-remove
...
mirror: Implement '--remove' feature.
2016-04-18 18:29:18 -07:00
Anis Elleuch
94f4c4cd2d
Avoid removing session v7 json files by migrateSessionV5ToV6 ( #2 )
2016-04-18 17:47:39 -07:00
Harshavardhana
c4c99999bc
session: Add isRemoved() for session to avoid removing last removed files again.
2016-04-18 13:56:14 -07:00
Anis Elleuch
6abd3a4ed6
Avoid a possible crash when an error occurs while removing a file ( #1 )
2016-04-18 11:41:56 -07:00
Harshavardhana
9e94120d68
mirror: Implement '--remove' feature.
...
Fixes #1628
2016-04-17 12:21:43 -07:00
Anis Elleuch
ba088b8fc0
Move ioutils pkg from minio to mc and fix a sorting list bug ( #1688 )
...
* Move ioutils pkg from minio to mc
* Fix an important bug in sorting fs list in recursive mode
2016-04-17 12:20:48 -07:00
Anis Elleuch
98ac1817cb
Rewrite diff code ( #1681 )
2016-04-17 01:18:30 -07:00
Anand Babu (AB) Periasamy
65a31e34c9
check if sources exist ( #1685 )
2016-04-15 16:59:38 -07:00
Krishna Srinivas
264f1ef992
Merge pull request #1684 from harshavardhana/zip
...
release: Remove zip, tar.gz release builds.
2016-04-14 13:42:32 +05:30
Harshavardhana
b30bbc0e74
release: Remove zip, tar.gz release builds.
2016-04-13 23:48:58 -07:00
Krishna Srinivas
7a77686878
Merge pull request #1680 from harshavardhana/gofmt
...
url: isURLPrefixExists() should use non-recursive mechanism.
2016-04-12 12:24:04 +05:30
Harshavardhana
0c4200306b
url: isURLPrefixExists() should use non-recursive mechanism.
...
The reason is to avoid generating recursive requests while
we are only concerned about the top level prefix that if
it exists.
2016-04-11 20:44:36 -07:00
Harshavardhana
619b1b4e2a
url: There is no reason to split '?' delimiter. ( #1679 )
...
The reasoning is that we are not providing query
params through 'mc' and we don't need to handle it
specially. Since all paths are absolute with only
delimiter of '/' all other characters should be allowed
including '?'.
For this same reason now newURL is called newClientURL.
Fixes #1677
2016-04-11 18:20:56 -07:00
Sreeram Boyapati
57d22664f4
config: validate config.json file ( #1676 )
...
- Minio Client validates only config host add parameters
Not the config file. Use the same utils to validate config file
if HostURL is wrong.
/storage?googleapis?com for host /storage?googleapis?com is not valid. Could not parse it
if API is wrong.
S3v2iasdasd API for host https://www.google.com is not Valid. It is not part of any of the following APIs:
1. S3v4
2. S3v2
If the version is wrong.
Config version 9 does not match GlobalMCConfiguration 8.
Example:
mc: <ERROR> Config version 9 does not match GlobalMCConfiguration 8.
S3v2asda API for host httpsasdkasd is not Valid. It is not part of any of the following APIs:
1. S3v4
2. S3v2
URL httpsasdkasd for host httpsasdkasd is not valid. Could not parse it.
2016-04-10 21:28:17 -07:00
Anis Elleuch
38339b7cd9
Allow question mark in fs file names ( #1678 )
2016-04-10 15:28:03 -07:00
Anand Babu (AB) Periasamy
d5cb19aeab
allow caseless API signature in config ( #1675 )
2016-04-09 13:24:03 -07:00
karthic rao
3d04e56228
vendor: vendor updates for minio-go
2016-04-07 10:08:09 -07:00
Harshavardhana
3e8f7684f2
build: cmd/vet is deprecated fix the url.
2016-04-06 20:07:57 -07:00
Anand Babu (AB) Periasamy
c11527780a
implement OS specific file ignore list
2016-04-06 15:44:23 -07:00
Sreeram Boyapati
5a204741b9
config: intialize loadMcConfig later in the app
...
Go caches the McConfig earlier leading to having no effect on changing config-dir during initialization.
2016-04-05 14:33:34 -07:00
Krishna Srinivas
b23e8a77fc
Merge pull request #1665 from harshavardhana/mirror-fake
...
mirror: More fixes for quiet mode, make sure fake is honored.
2016-04-05 13:10:59 +05:30
Harshavardhana
e926266c62
mirror: More fixes for quiet mode, make sure fake is honored.
2016-04-04 17:25:15 -07:00
Harshavardhana
1eca4f8c0d
mirror: Make sure isFake is set to false properly.
2016-04-04 15:35:25 -07:00
Harshavardhana
edb1824006
mc: Simplify, conditional checks across codebase.
2016-04-04 14:58:36 -07:00
Anis Elleuch
6666262e51
Make --json and --quiet work as expected with mc mirror cmd
2016-04-04 11:42:46 -07:00
Harshavardhana
221ee6c26b
Merge pull request #1660 from vadmeste/fix_mirror_crash
...
Fix a crash when --fake is coupled with --quiet in mirror cmd
2016-04-02 10:55:47 -07:00
Anis ELLEUCH
d3d4afd223
Fix a crash when --fake is coupled with --quiet in mirror cmd
2016-04-02 15:10:53 +01:00
Krishna Srinivas
f55f64b5b9
Merge pull request #1659 from harshavardhana/version
...
mc: Fix Golang version handling.
2016-04-02 15:28:21 +05:30
Harshavardhana
69fbb9a87d
mc: Fix Golang version handling.
...
Migrate to a better go-version package to handle
version numbers. Default to 'go1.6' as minimum.
2016-04-02 02:51:27 -07:00
Harshavardhana
8e50e8e8c3
Merge pull request #1657 from vadmeste/fix_realpath_behavior
...
realpath() alternative implementation doesn't really work under linux and freebsd, use a simpler and more portable method
2016-04-01 13:27:14 -07:00
Anis Elleuch
8cdf71b539
realpath() doesn't really work under linux and freebsd, use a simpler and more portable method
2016-04-01 19:21:01 +01:00
Harshavardhana
e7f4b63212
docs: Update readme.md with new links.
RELEASE.2016-04-01T00-22-11Z
2016-03-31 17:53:35 -07:00
Anand Babu (AB) Periasamy
12adf3be32
Merge pull request #1656 from harshavardhana/rel-bz
...
release: Release binaries will have now .tar.gz and .zip extension.
2016-03-31 17:12:16 -07:00
Harshavardhana
087516a783
release: Release binaries will have now .tar.gz and .zip extension.
...
The reasoning behind is to preserve permissions of binaries.
2016-03-31 17:04:45 -07:00
Anand Babu (AB) Periasamy
1b2a2fc7f9
Merge pull request #1655 from harshavardhana/global
...
config: Handle aliases migration from v6 --> v7.
2016-03-31 15:42:20 -07:00
Harshavardhana
3e205dba15
config: Handle aliases migration from v6 --> v7.
...
Fixes #1652
2016-03-31 15:23:55 -07:00
Anand Babu (AB) Periasamy
ff874575e1
Merge pull request #1654 from harshavardhana/object-name
...
stat: Print proper error messages when bucket name is empty.
2016-03-31 15:22:48 -07:00
Harshavardhana
1e1516c968
stat: Print proper error messages when bucket name is empty.
...
Handle cases for situations for all commands where target bucket
name is not specified, indicate proper errors in this situation.
Fixes #1629
2016-03-30 18:46:20 -07:00
Harshavardhana
aeb6de996c
Merge pull request #1653 from krishnasrinivas/timeout-8-minute
...
ListObjects on a prefix with 10 million entries takes around 8 minutes.
2016-03-30 01:44:58 -07:00
Krishna Srinivas
82d87111fc
vendor: vendor update minio-go. Increase http client timeout to 8 minutes.
2016-03-30 14:07:24 +05:30
Anand Babu (AB) Periasamy
49953d53ed
Merge pull request #1622 from vadmeste/retrieve_secret_from_env
...
Retrieve secretKey from the environment first
2016-03-28 12:59:45 -07:00
Anis Elleuch
13a4133da5
Retrieve acessKey/secretKey from the environment first
2016-03-28 19:36:13 +01:00
Anand Babu (AB) Periasamy
a02ae19de2
Merge pull request #1651 from harshavardhana/buffer
...
pipe: Avoid double copy of buffers in minio-go
2016-03-27 20:25:33 -07:00
Harshavardhana
9617f22fcd
pipe: Avoid double copy of buffers in minio-go
...
Disallows multiple copies being referenced internally leads
to OOM conditions on certain low memory devices and systems.
Fixes #1641
2016-03-27 20:08:57 -07:00
Anand Babu (AB) Periasamy
e156d62e44
Merge pull request #1640 from harshavardhana/mc-access
...
access: Access policy command implemented.
2016-03-27 19:55:40 -07:00
Harshavardhana
f4e8352f5a
access: Access policy command implemented.
...
This patch implements as decided..
To set a bucket policy.
```
mc access readonly s3/<bucket>
mc access readwrite s3/<bucket>
mc access writeonly s3/<bucket>
mc access none s3/<bucket>
```
To get a bucket policy.
```
mc access s3/<bucket>
```
2016-03-27 19:49:54 -07:00
Harshavardhana
deb7f72be2
Merge pull request #1650 from sreeram-boyapati/config_tests
...
tests: add tests for 'mc cat' and 'mc config host'
2016-03-27 10:12:58 -07:00
Sreeram Boyapati
a5a57fa2be
tests: add tests for 'mc cat' and 'mc config host'
2016-03-27 21:06:40 +05:30
Harshavardhana
c3fb1d52f4
Update README.md
2016-03-23 13:09:45 -07:00
Harshavardhana
9820dce775
config: mcConfigVersion should be '8'
2016-03-22 02:42:31 -07:00