P R
51a3d287bb
mc ilm list cell alignment for text ( #3291 )
2020-07-07 20:52:01 -07:00
Harshavardhana
fbb7d75c1c
support proper proxy for all transports ( #3290 )
...
fixes #3225
2020-07-07 17:07:49 -07:00
ebozduman
d811d416a5
Fixes copy with partial metadata failure ( #3282 )
2020-07-06 17:22:06 -07:00
ebozduman
5c713e5ecb
Adds support to preserve X-Amz-Meta-Mc-Attrs when os -> fs ( #3285 )
2020-07-03 15:31:27 -07:00
Anis Elleuch
712ff33319
cli: Load global flags in initBeforeRunningCmd ( #3283 )
...
app.Before receives a cli.Context but without flags parsed. There is no
point calling ctx.Bool() or ctx.IsSet() at that stage.
However, flags are parsed in commands, so minio initialization and
setting global variables (globalJSON, globalQuiet, etc..) can be moved
to the Before function of all commands.
Avoid setting command.Before for non leaf commands, otherwise Before
function will be called multiples times until it reaches the leaf
command.
2020-07-01 17:28:43 -07:00
Anis Elleuch
90d6e7df24
policy: Recalculate permission mode after setting a new one ( #3280 )
...
`mc policy set` can confuse users by showing that a bucket has 'none'
policy mode although issuing `mc policy get` will show it is `custom`
when the bucket already other policy statements for some sub-resources.
For better UX, mc will issue another request to get the real policy
mode.
2020-07-01 09:22:22 -07:00
poornas
b8570a9a0b
Fix mc cp regression for recursive copy ( #3278 )
...
Fixes #3267 . Revert commit dc430afe07
which attempted to preserve similar behavior across mc cp and mc
mirror, but introduces a regression for cp when wildcards are
specified.
2020-06-29 20:33:31 -07:00
Anis Elleuch
360d094828
s3: Use list object v1 in case of GCS ( #3274 )
2020-06-24 05:22:29 -07:00
Harshavardhana
08685bae6a
make sure active/active enables watch by default ( #3271 )
...
- effectively use context everywhere
- effectively look for source-mtime in all
variations
- `mc diff` should do metadata diff as well
2020-06-23 16:56:08 -07:00
Harshavardhana
4989d51e2c
fix: overwrite is implicit with active-active ( #3268 )
...
refactor lengthy options as mirrorOptions{} for
ease of readability and usage.
2020-06-22 23:41:24 -07:00
Harshavardhana
a62a539399
fix: support STS for admin commands ( #3264 )
2020-06-19 12:37:57 -07:00
ebozduman
d5b6931a1e
Apply global context for all apis ( #3240 )
2020-06-16 16:55:31 -07:00
poornas
397f41c71c
Fix mc cp when legal-hold or retention is set ( #3257 )
...
- Send Content-MD5 header if default retention is set on the bucket
- legal-hold needs to be case insensitive
2020-06-16 12:13:35 -07:00
Harshavardhana
707f46c32b
rename multi-master to active-active ( #3255 )
2020-06-15 18:16:31 -07:00
Anis Elleuch
133dd1f7da
add helpers for repeated code in bucket and object info ( #3251 )
...
Use bucketInfo2ClientContent() and objectInfo2ClientContent()
extensively to avoid code duplication.
2020-06-12 07:40:49 -07:00
Klaus Post
bdefdc0169
cp: Fix Windows paths ( #3250 )
...
Paths without `/` separator were not trimmed correctly.
Fixes #3241
Regression originating from #3115
2020-06-10 09:31:59 -07:00
Anis Elleuch
c51e3b3ec9
Return 1 as exit code when the cmd is unknown ( #3249 )
2020-06-09 08:52:04 -07:00
Harshavardhana
88223f96be
simplify FS put behavior for partial files ( #3246 )
2020-06-08 12:26:03 -07:00
Harshavardhana
fa520cbd1a
enable golang-lint CI run and -race tests ( #3247 )
2020-06-08 05:55:10 -07:00
Federico Pellegrin
0e27dd4ed4
Fix policy command flags order online help and partially doc ( #3244 )
2020-06-05 01:09:38 -07:00
kannappanr
2403e7a744
Check if destination and source are same ( #3234 )
...
Fixes #3229
2020-05-27 20:15:08 -07:00
Anis Elleuch
ea03e61fac
Avoid annoying error when alias has a leading slash ( #3236 )
...
```
mc config host list
mc config host add
mc config host remove
mc admin prometheus generate
```
The above mc commands generate an annoying error message complaining
about the leading slash in the alias argument.
Although alias does not support any slash or backslash, we allow the
user to enter it for convenience and the code will just clean it before
using it.
2020-05-27 14:23:31 -07:00
poornas
f55e9c1997
Add admin bucket quota command to manage quota ( #3179 )
2020-05-26 22:56:53 -07:00
kannappanr
7664bb2c8d
mirror: check if bucket exists before creating it ( #3233 )
...
Fixes #3228
2020-05-26 20:04:20 -07:00
kannappanr
09f832f597
copyobject: Do not ignore storage class in the target ( #3232 )
...
Fixes #3230
2020-05-24 14:23:28 -07:00
Anis Elleuch
4cc297ba4e
diff: Disable comparing modtimes when multimaster context is not found ( #3226 )
2020-05-21 23:50:29 -07:00
Harshavardhana
bf731558cd
remove panic on double close watch channel ( #3223 )
2020-05-19 14:31:24 -07:00
Anis Elleuch
949dd282f9
fix copy issue when the source is not seekable ( #3216 )
...
The downloaded data will be stored in [file].part.minio
first and then renamed to [file]
The code also does not behave correctly when the source
reader is not seekable. the reader is wrapped by a reader
hook and then tested if it is seekable or not, though the
reader hook is always seekable.
2020-05-18 20:05:46 -07:00
P R
61b74e90bf
mc ilm fix some functionality changes ( #3221 )
2020-05-18 19:57:08 -07:00
Harshavardhana
3b479cf92e
refactor cleanup ilm command to make it more maintainable ( #3220 )
2020-05-15 16:54:34 -07:00
Bala FA
09c31c4ab2
add bucket tagging support ( #3182 )
2020-05-15 12:10:50 -07:00
Anis Elleuch
71196b1013
completion: Complete path starting with ~/ ( #3217 )
...
posener/complete library does not support paths starting
with a tilde. This commit implements a workaround for that.
2020-05-15 08:12:47 -07:00
P R
72c8e92459
Add ilm command. ( #3097 )
2020-05-14 08:55:21 -07:00
César Nieto
a6d82862cd
make WatchOptions and WatchObject fields public ( #3218 )
2020-05-12 10:42:34 -07:00
ebozduman
672390b86a
fix a simple typo #3159
2020-05-09 21:33:26 -07:00
Harshavardhana
2e586e6b9d
support session tokens as part of ENV ( #3213 )
2020-05-07 15:21:12 -07:00
P R
ad0bc4c33d
progress bar update on obj write failure ( #3195 )
...
Fixes #3193
2020-05-07 10:28:27 -07:00
ebozduman
a75dca16bd
fix: cp preserve ownership issue ( #3202 )
2020-05-07 09:00:48 -07:00
Bala FA
4e3b501528
add --storage-class flag to pipe command. ( #3204 )
...
Fixes #3157
2020-05-06 23:06:01 -07:00
Harshavardhana
dc2ad27429
fix mirror crash if source is deleted ( #3206 )
2020-05-05 23:55:35 -07:00
Harshavardhana
b99c313366
cleanup legal-hold/retention and update docs ( #3197 )
2020-05-04 20:09:36 -07:00
kannappanr
e13751f5d5
doc: Remove example related to object locked bucket ( #3201 )
...
mv does not support this command for object locked buckets.
2020-05-04 10:09:49 -07:00
Bala FA
ca650e227a
fix: create empty probe error to fatalIf() ( #3199 )
...
Fixes #3198
2020-05-04 07:58:28 -07:00
Harshavardhana
df8bb795ba
refactor watch mirror for performance ( #3196 )
2020-05-02 12:07:21 -07:00
Nitish Tiwari
138d7656ba
fix: Update to use minio-go with jsoniter ( #3191 )
...
Also remove unused args in doMirror()
2020-04-24 23:56:51 -07:00
Anis Elleuch
2018319125
sql: Adapt the code to the change in minio-go SQL API ( #3161 )
2020-04-24 09:34:51 -07:00
Harshavardhana
c8c5c15249
fix auto-complete for missing commands ( #3189 )
2020-04-23 20:11:35 -07:00
Chloe Kudryavtsev
32d8ef24ef
feat: allow fetching arbitrary object puburls ( #3043 )
...
This fix should be backward-compatible, since strings do not need
to be initialized by default, and JSON explicitly allows it to be omitted
when empty.
2020-04-22 18:36:41 -07:00
ebozduman
f82a7b13c1
fix: copy filesytem to objectstore regression ( #3183 )
2020-04-22 18:28:50 -07:00
BigUstad
49c2beec79
check object stat first before continuing with sql select call. ( #3188 )
2020-04-22 18:28:30 -07:00