1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
kannappanr
b885d13060 Windows stat: Compare URLs in windows style path (#2774)
Convert user provided URL into windows style to compare in statURL

Fixes #2772
2019-07-25 17:37:52 -07:00
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
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
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
70dcf20d74 Pass down encrypt-key handling across command validators (#2483)
Currently even if the command supports encrypted objects,
the syntax verification would fail on them in certain
cases. Since syntax validation of source/targets doesn't
use the parsed encrypt key pairs.  This PR fixes this
behavior.
2018-07-12 11:13:51 -07:00
poornas
0ede95b65e add encrypt option to cp, mirror,pipe,stat, cat and rm commands (#2400) 2018-03-08 17:18:41 +05:30
poornas
722ee94165 fix missing metadata in stat cmd (#2348)
mc stat without --r is missing metadata for stat on objectname
2018-01-10 11:07:21 -08:00
poornas
9da492975c correct stat behavior and message (#2344)
fix empty stat listing when bucket has only a single object and
cleanup dead code.
2018-01-05 14:18:35 -08:00
poornas
2d221ba8da stat: fix output to show bucket in stat listing (#2340)
Show stat of all buckets at site level, and mimic
mc ls behavior in stat output.
2017-12-25 16:19:24 +05:30
poornas
ab6b2a83ac Add new stat sub command (#2275) 2017-10-31 13:56:40 -07:00