Krishnan Parthasarathi
2745bf2f1f
Implement ServerConfig admin REST API ( #3741 )
...
Returns a valid config.json of the setup. In case of distributed
setup, it checks if quorum or more number of nodes have the same
config.json.
8 years ago
Anis Elleuch
70d825c608
doc: Small rewrite of bucket events notif intro ( #3775 )
8 years ago
Harshavardhana
6b68c0170f
For streaming signature do not save content-encoding in PutObject() ( #3776 )
...
Content-Encoding is set to "aws-chunked" which is an S3 specific
API value which is no meaning for an object. This is how S3
behaves as well for a streaming signature uploaded object.
8 years ago
Aditya Manthramurthy
0a905e1a8a
Fix rabbitmq reconnect problem ( #3778 )
8 years ago
Harshavardhana
9eb8e375c5
cli: Make sure to add --help flag for subcommands. ( #3773 )
...
--help is now back and prints properly with command
help template.
8 years ago
Harshavardhana
7ea1de8245
copyObject: Be case sensitive for windows only server. ( #3766 )
...
For case sensitive platforms we should honor case.
Fixes #3765
```
1) python s3cmd -c s3cfg_localminio put logo.png s3://testbucket/xyz/etc2/logo.PNG
2) python s3cmd -c s3cfg_localminio ls s3://testbucket/xyz/etc2/
2017-02-18 10:58 22059 s3://testbucket/xyz/etc2/logo.PNG
3) python s3cmd -c s3cfg_localminio cp s3://testbucket/xyz/etc2/logo.PNG s3://testbucket/xyz/etc2/logo.png
remote copy: 's3://testbucket/xyz/etc2/logo.PNG' -> 's3://testbucket/xyz/etc2/logo.png'
4) python s3cmd -c s3cfg_localminio ls s3://testbucket/xyz/etc2/
2017-02-18 10:58 22059 s3://testbucket/xyz/etc2/logo.PNG
2017-02-18 11:10 22059 s3://testbucket/xyz/etc2/logo.png
```
8 years ago
Anis Elleuch
54a18592e9
flags: Fix --version output ( #3772 )
8 years ago
Anis Elleuch
7e84c7427d
server-mux: Rewrite graceful shutdown mechanism ( #3771 )
...
Old code uses waitgroup Add() and Wait() in different threads,
which eventually can lead to a race.
8 years ago
Bala FA
d12f3e06b1
config-old: Use interface to avoid code repetition. ( #3769 )
8 years ago
Harshavardhana
0137ff498a
auth/rpc: Token can be concurrently edited protect it. ( #3764 )
...
Make sure we protect when we access `authToken` in authClient.
Fixes #3761
8 years ago
Harshavardhana
34d9a6b46a
Make sure client initializes to proper lock RPC path. ( #3763 )
...
Fixes a regression introduced in previous commit.
8 years ago
Harshavardhana
50b4e54a75
fs: Do not return reservedBucket names in ListBuckets() ( #3754 )
...
Make sure to skip reserved bucket names in `ListBuckets()`
current code didn't skip this properly and also generalize
this behavior for both XL and FS.
8 years ago
Harshavardhana
8816b08aae
Fix the systemd config path to the new URL
8 years ago
Harshavardhana
271e3ecde5
Fix tests from cli changes
8 years ago
Harshavardhana
611bd68739
cli: Add new features from CLI.
...
use `.HelpName` for template to pass down
proper command names. Also treat flags
to be optional in all of them.
8 years ago
Harshavardhana
25eeb88a8f
cli: Bring upstream changes to minio server.
8 years ago
Krishna Srinivas
3e770defae
browser: Update ui assets with new changes ( #3751 )
8 years ago
Krishna Srinivas
ae4656e699
browser: Remove currentPath prefix in object names from list result. ( #3750 )
8 years ago
Harshavardhana
f6a9e690bf
browser: Update ui assets with new changes.
8 years ago
Anis Elleuch
7f86a21317
admin: Add ServerInfo API() ( #3743 )
8 years ago
Harshavardhana
fb39c7c26b
sRPC/client: Properly trim storageRPCPath for actual disk path. ( #3749 )
...
Never print internal RPC endpoint paths.
8 years ago
Harshavardhana
13c3b9cbcb
main/cli: Don't print hidden flags/commands in help template. ( #3748 )
...
Always use .VisibleFlags and .VisibleCommands to not print
Hidden flags as expected from help template.
8 years ago
Bala FA
602dac8773
mainUpdate: refactor to handle quiet flag properly ( #3744 )
8 years ago
Dee Koder
c6e76160ad
Update README.md
8 years ago
Bala FA
a53b909fcd
mainVersion: Remove minio init and quiet handling ( #3739 )
8 years ago
Harshavardhana
22909c849e
objcache: Return io.ReaderAt to avoid Seeking and Reading. ( #3735 )
8 years ago
Bala FA
440866d26c
Move go version check into main() ( #3734 )
...
Previously the check was done in init(). This patch moves into main
for unit testable friendly function.
8 years ago
Krishna Srinivas
25b936c369
browser: Implement infinite scrolling for object listing. ( #3720 )
...
fixes #2831
8 years ago
Nitish Tiwari
8f66cfa316
Fix https://github.com/minio/minio/issues/3453 ( #3733 )
8 years ago
Bala FA
8912b6bf3b
trie: new package ( #3729 )
...
This implements a simple trie tree for minio server/tools.
This package borrows idea from
https://godoc.org/golang.org/x/text/internal/triegen .
8 years ago
Karthic Rao
a799351926
Fix macOS builds ( #3728 )
8 years ago
Harshavardhana
9df01035da
Remove XL references in public docs to Erasure. ( #3725 )
...
Ref #3722
8 years ago
Krishnan Parthasarathi
1ad96ee09f
Handle uptime for single-node instances differnt from distributed setup ( #3726 )
8 years ago
Harshavardhana
1b4bb94ac4
config: setter/getter for Notifier and Logger into its own struct. ( #3721 )
...
This is an attempt cleanup code and keep the top level config
functions simpler and easy to understand where as move the
notifier related code and logger setter/getter methods as part
of their own struct.
Locks are now held properly not globally by configMutex, but
instead as private variables.
Final fix for #3700
8 years ago
Andreas Auernhammer
f38222c0cc
update the blake2b implementation ( #3724 )
...
Fixes a performance bug caused by SSE-AVX register savings on amd64.
8 years ago
Anis Elleuch
c9b1468c3b
Presigend Post: Error out when File is not found ( #3723 )
...
Follow S3 behavior when no File is sent in the presigned
post request form.
8 years ago
Krishna Srinivas
6800902b43
web-handlers: Implement API to download files as a zip file. ( #3715 )
8 years ago
Krishnan Parthasarathi
e5773e11c6
Make minio server compile on OpenBSD, NetBSD, Solaris ( #3719 )
8 years ago
Nitish Tiwari
0c7694894b
Added spaces for formatting ( #3717 )
8 years ago
Krishnan Parthasarathi
ce9aa2f2b2
Add uptime to ServiceStatus ( #3690 )
8 years ago
Nitish Tiwari
7547f3c8a3
Added Webhook notification details ( #3706 )
8 years ago
Harshavardhana
31dff87903
Honor envs properly for access and secret key. ( #3703 )
...
Also changes the behavior of `secretKeyHash` which is
not necessary to be sent over the network, each node
has its own secretKeyHash to validate.
Fixes #3696
Partial(fix) #3700 (More changes needed with some code cleanup)
8 years ago
Anis Elleuch
fd72c21e0e
tests: Reduce two functions work to gain test time ( #3712 )
...
TestListObjectsHeal and TestFSShutdown takes around 3 min,
this PR reduces the number of created test objects
8 years ago
Harshavardhana
310bf5bd36
auth/rpc: Make auth rpc client retry configurable. ( #3695 )
...
Currently the auth rpc client defaults to to a maximum
cap of 30seconds timeout. Make this to be configurable
by the caller of authRPCClient during initialization, if no
such config is provided then default to 30 seconds.
8 years ago
Harshavardhana
a170e44689
Let hijacker and flusher interfaces to be reflected. ( #3709 )
...
Ideally here if the interface is not found it would
fail the server, as it should be because without these
we can't even have a working server in the first place.
Just like how it fails in master invariably inside Go
net/http code path.
Fixes #3708
8 years ago
Anis Elleuch
70e70446bb
signv4: Read always returns EOF when stream ends ( #3692 )
...
When EOF is reached, further calls of Read() doesn't return io.EOF
but continue to work as it expects to have more data, this PR fixes
the behavior
8 years ago
Krishna Srinivas
45d9cfa0c5
signature-v4: stringToSign and signingKey should use Scope's date. ( #3688 )
...
fixes #3676
8 years ago
Anis Elleuch
93fd269329
stats: Add network and http statisics ( #3686 )
...
Network: total bytes of incoming and outgoing server's data
by taking advantage of our ConnMux Read/Write wrapping
HTTP: total number of different http verbs passed in http
requests and different status codes passed in http responses.
This is counted in a new http handler.
8 years ago
Harshavardhana
6717a0b68c
Add consistency guarantees
8 years ago
Harshavardhana
533338bdeb
all/windows: Be case in-sensitive about pattern matching. ( #3682 )
...
Resource strings and paths are case insensitive on windows
deployments but if user happens to use upper case instead of
lower case for certain configuration params like bucket
policies and bucket notification config. We might not honor
them which leads to a wrong behavior on windows.
This is windows only behavior, for all other platforms case
is still kept sensitive.
8 years ago