Commit Graph
380 Commits
Author SHA1 Message Date
Harshavardhana aa3c9f58df Remove port 9000 for play.min.io (#2817)
Most corporate environments block port 9000,
since we already allow access from port 80 and
port 443 just default to https port instead.
2019-07-10 21:16:45 +01:00
Anis Elleuch df9320134b autocompletion: Add control flag and a prompt (#2812)
*) Add --no-autocompletion to disable the automatic install of
the auto completion
*) Add a prompt to ask for permission to install automatic
auto completion when not installed yet
2019-07-04 22:40:56 -07:00
Harshavardhana 6003da8daa update command with json flag shouldn't throw prompt (#2809) 2019-06-27 15:43:14 -07:00
Krishnan Parthasarathi 8b33b2809c Improve next action suggestion in mc admin config set (#2810) 2019-06-27 12:15:21 -07:00
Ashish Kumar Sinha 56309a4999 mc command cleanup (#2783) 2019-06-27 14:47:08 +05:30
Anis Elleuch 2d691508c2 Show background heal stats in mc admin heal (#2808) 2019-06-26 15:14:20 -07:00
Harshavardhana 98e88c2ff0 Add proper JSON status field for API compatibility (#2807) 2019-06-26 10:51:17 -07:00
poornas 675618574a Change short trace message display format (#2798)
to abridge function name,time format and
add client ip in the output
2019-06-24 15:43:23 -07:00
Harshavardhana d97cfaa55d Fix trace formatting (#2805) 2019-06-19 15:11:03 -07:00
Harshavardhana a12c507bec Update minio-go to v6.0.29 (#2799) 2019-06-15 10:12:32 -07:00
poornas ca26dac8e2 Add mc admin trace command. (#2655) 2019-06-11 16:25:33 -07:00
Harshavardhana 5d0a9c0803 Make sure to preserve region specific URLs (#2791)
This is to ensure that restricted access
to certain buckets is allowed on certain
regions.

This is a continuation of last commit
2019-06-11 13:59:10 -07:00
Harshavardhana e978c71b7c Add staticcheck based builds (#2788)
Additionally this PR also supports
multi-platform builds to avoid cross
platform build issues.
2019-06-03 11:22:31 -07:00
Harshavardhana f4bb0b8850 Update minio-go to latest release v6.0.26 (#2782) 2019-05-29 08:27:18 -07:00
Andreas Auernhammer 88a3c2b1e1 remove admin-credential command (#2767)
This commit removes the admin credentials command
to fix the build since github.com/minio/minio
ae002aa7241bd35d5fd9b47e8b62df2176ad2ab1 removes
the admin API for updating the admin credentials.
2019-05-05 22:32:41 -07:00
Ashish Kumar Sinha f0f156aca8 Skip error upon deletion of non existing object and force flag (#2765)
On the similar lines of standard linux  rm command.
mc retruns exit status as 0 and skips the error message when --force argument is used.
2019-05-02 10:18:15 -07:00
Harshavardhana b1aa2232ef Disable http2.0 for now until upstream bugs are fixed (#2764) 2019-05-01 15:42:36 -07:00
Ashish Kumar Sinha 4b4555b811 Policy list: Return error if policy doesn't exist (#2760) 2019-04-25 13:41:46 -07:00
poornas ecdeb3934d Remove Insufficient permission error from ignored errors (#2755)
Remove Insufficient permission error from ignored list of errors.

Fixes #2752 -  When mirror fails due to insufficient
permissions of user on a bucket, this should be
displayed
2019-04-22 12:22:21 -07:00
fgma abceea8fa1 fix crash when parsing empty/invalid MC_HOST_* env variable (#2757) 2019-04-22 21:53:31 +05:30
ebozduman 83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
kannappanr 68a9eeae18 Fix: do not check if object listed equals object being removed (#2748)
List within the statURL function considers object name as a prefix
and lists objects that have the same prefix.
currently, it errors out if the object is a subset of another object.

This PR will fix this.

Fixes #2746
2019-04-16 20:44:57 -07:00
kannappanr 5729a01e69 doc: Document top command (#2672) 2019-04-10 15:48:45 -07:00
kannappanr ea469140d5 Display request header in anonymous mode (#2733)
Currently if authorization header is missing, then request is not displayed
This resulted in just the response being displayed, in anonymous mode.

This PR fixes that issue.
2019-04-05 14:04:16 -07:00
Harshavardhana 7805774cf3 Instead of rename use moveFile for cross device renames (#2738) 2019-04-03 12:19:53 -07:00
poornas 8ae04b41b0 mirror: fix 0 byte files not getting mirrored (#2739)
Fixes: #2737
2019-04-03 08:15:17 -07:00
Harshavardhana b27cd5ada8 Make csv-input optional for default cases (#2741)
Fixes #2740
2019-04-03 18:31:23 +05:30
Tufan Barış YILDIRIM a1355e50e2 Documented --json for diff command (#2736) 2019-03-31 20:01:44 -07:00
kannappanr 2ad65c0799 ls: Remove space between size and unit (#2735)
With the move to go.mod, the latest humanize package is being used.
This introduces a space between size and the unit. Manually removing the space
to make it consistent with the older mc releases.
2019-03-29 15:02:26 -07:00
Harshavardhana c34dec5495 Set correct compressionType for compression select request (#2730) 2019-03-28 10:52:13 -07:00
Harshavardhana ba92305de0 Migrate to go1.12, deprecate vendor directory (#2727) 2019-03-27 10:08:19 -07:00
poornas 0a790a1a2e ls: consistent output while listing directories on file system (#2723) 2019-03-21 19:19:11 -07:00
Harshavardhana 3ea090fe18 Fix rm to behave properly deleting prefixes (#2720) 2019-03-20 13:08:36 -07:00
poornas 0490231b34 For non-canned policies, show policy status as custom (#2716) 2019-03-19 09:11:16 +05:30
Anis Elleuch 030aa5aba5 Add normal/deep scan flag to admin heal cmd (#2692) 2019-03-15 15:40:51 -07:00
kannappanr 09d04326dc Deprecate MC_HOSTS_ env variable (#2718)
MC_HOSTS_ env variable will be replaced with MC_HOST_ as it is more
appropriate

MC_HOSTS_ will be removed in the near future.
2019-03-14 17:29:07 -07:00
Sidhartha Mani cfb25fe81b mc admin info changes (#2712) 2019-03-14 18:20:29 +05:30
Anis Elleuch affc127af0 mirror: Return non-zero exit code for errors occuring during mirror (#2705)
An error, such as, `Bad Request` when copying an object without supplied
keys is not reflected in the exit code.

This commit simplifies a bit the mirror code. It makes mirror before and
after starting to send the status to mj.status.
2019-03-12 16:36:14 -07:00
Anis Elleuch a498b9b3a2 rm: Force removing an object when it is encrypted without key specified (#2700)
Currently, a single remove HEAD an object, but this latter can return
400 Bad Request when the object is encrypted and the user doesn't specify
any encryption key.

So when HEAD fail, this PR will use GET listing to find the object and
remove it if existent.

We can avoid calling HEAD in the first place and use only listing, but this
has some penality on the server.
2019-03-12 14:03:59 -07:00
poornas e684b48cfe Add --dangerous flag for mc rb sitewide removal (#2709)
Also fix mc rb bug while deleting folders on file system
2019-03-11 22:27:35 -07:00
poornas 5b585c4759 Additional flags for mc sql command (#2687)
add sql select options
change flag names and remove parquet option
add csv-output-header option
2019-03-11 22:23:45 -07:00
Ashish Kumar Sinha 2e612b23d6 Add metadata in mc copy (#2671)
Example : mc cp --attr key1=value1,key2=value2 
play/mybucket/burningman2011/ ~/latest/
2019-03-11 12:47:28 +05:30
Anis Elleuch 4a130c60a8 rb: Fix removing an empty bucket when passed as argument (#2703)
rb was relying on client.List() to find all elements that needs to be
removed. However it doesn't include 'alias/bucket' in the listing
when 'alias/bucket' itself is passed as an argument in rb command.

This PR will always attempt to delete the passed argument as this is
what the user wants in the first place.

This PR also fixes teardown() in functional-tests.sh to remove
the bucket using rb instead rm since rm does not remove buckets
anymore.
2019-03-08 17:07:06 +05:30
Ashish Kumar Sinha 1761b338f9 OlderThan & NewerThan configured for Days, Hours and Minutes (#2614)
Previously OlderThan and NewerThan was configured for day
which has been changed to Days, Hours and minutes.

Also, changed the `flag` in `find` command to be `newer-than` and `older-than` to be consistent with other commands.
2019-03-03 20:18:34 -08:00
poornas c63c5732e9 Fix policy set error (#2701)
When policy is being set,json does not need to be indented - it
is causing a policy has invalid resource error
2019-03-02 10:38:16 -08:00
poornas dba70c0b92 Stat: display Expires header if present (#2697) 2019-03-01 13:03:53 -08:00
Sidhartha Mani c75abbb3f9 use colorjson for all other mc outputs (#2683)
- Update to MarshalIndent instead of Marshal
- Allow unmarshalling
2019-02-28 14:33:13 -08:00
Harshavardhana 19e14db50a Avoid ListBuckets to keep Stat() ops on bucket simpler (#2699)
Due to multi-user feature on Minio and mc adoption in
many different restrictive environments, most users disable
access to ListBuckets() calls. We can avoid such network
operations as they only add marginal value.
2019-02-28 14:23:47 -08:00
Anis Elleuch a3203d4fe7 complete: Add support of rb completion (#2689)
Add completion for rb command:
- Support filesystem paths
- S3 paths only supports this format: `alias/bucket/`, for that s3Complete{}
has deepLevel parameter to configure maximum path deep level.
2019-02-20 14:35:23 -08:00
poornas e538599e2f Add mc rb command to remove empty bucket (#2662)
Change mc rm --recursive behavior to
delete objects in bucket but not the
bucket itself.

Fixes #2635
2019-02-16 20:12:38 -08:00