mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Refactor bucket delete and bucket policy (#5580)
This commit adds the bucket delete and bucket policy functionalities to the browser. Part of rewriting the browser code to follow best practices and guidelines of React (issues #5409 and #5410) The backend code has been modified by @krishnasrinivas to prevent issue #4498 from occuring. The relevant changes have been made to the code according to the latest commit and the unit tests in the backend. This commit also addresses issue #5449.
This commit is contained in:
committed by
Harshavardhana
parent
416841869a
commit
a6adef0bdf
@@ -62,14 +62,9 @@ func cloneHeader(h http.Header) http.Header {
|
||||
}
|
||||
|
||||
// Convert url path into bucket and object name.
|
||||
func urlPath2BucketObjectName(u *url.URL) (bucketName, objectName string) {
|
||||
if u == nil {
|
||||
// Empty url, return bucket and object names.
|
||||
return
|
||||
}
|
||||
|
||||
func urlPath2BucketObjectName(path string) (bucketName, objectName string) {
|
||||
// Trim any preceding slash separator.
|
||||
urlPath := strings.TrimPrefix(u.Path, slashSeparator)
|
||||
urlPath := strings.TrimPrefix(path, slashSeparator)
|
||||
|
||||
// Split urlpath using slash separator into a given number of
|
||||
// expected tokens.
|
||||
|
||||
Reference in New Issue
Block a user