Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for checkRequestAuthType (0.46 sec)

  1. cmd/bucket-encryption-handlers.go

    	if objAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketEncryptionAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Check if bucket exists.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/bucket-versioning-handler.go

    	bucket := vars["bucket"]
    
    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketVersioningAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers.go

    	if objAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketPolicyAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Check if bucket exists.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  4. cmd/bucket-listobjects-handlers.go

    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.ListBucketVersionsAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    	var checkObjMeta metaCheckFn
    	if metadata {
    		checkObjMeta = func(name string, action policy.Action) (s3Err APIErrorCode) {
    			return checkRequestAuthType(ctx, r, action, bucket, name)
    		}
    	}
    	urlValues := r.Form
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle-handlers.go

    	// PutBucketLifecycle always needs a Content-Md5
    	if _, ok := r.Header[xhttp.ContentMD5]; !ok {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingContentMD5), r.URL)
    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketLifecycleAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Check if bucket exists.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 17:48:06 GMT 2023
    - 7K bytes
    - Viewed (0)
  6. cmd/listen-notification-handlers.go

    	}
    
    	vars := mux.Vars(r)
    	bucketName := vars["bucket"]
    
    	if bucketName == "" {
    		if s3Error := checkRequestAuthType(ctx, r, policy.ListenNotificationAction, bucketName, ""); s3Error != ErrNone {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    			return
    		}
    	} else {
    		if s3Error := checkRequestAuthType(ctx, r, policy.ListenBucketNotificationAction, bucketName, ""); s3Error != ErrNone {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    	if opts.VersionID != "" {
    		s3Error = checkRequestAuthType(ctx, r, policy.GetObjectVersionAttributesAction, bucket, object)
    		if s3Error == ErrNone {
    			s3Error = checkRequestAuthType(ctx, r, policy.GetObjectVersionAction, bucket, object)
    		}
    	} else {
    		s3Error = checkRequestAuthType(ctx, r, policy.GetObjectAttributesAction, bucket, object)
    		if s3Error == ErrNone {
    			s3Error = checkRequestAuthType(ctx, r, policy.GetObjectAction, bucket, object)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  8. cmd/s3-zip-handlers.go

    		return
    	}
    
    	getObjectInfo := objectAPI.GetObjectInfo
    
    	// Check for auth type to return S3 compatible error.
    	// type to return the correct error (NoSuchKey vs AccessDenied)
    	if s3Error := checkRequestAuthType(ctx, r, policy.GetObjectAction, bucket, zipPath); s3Error != ErrNone {
    		if getRequestAuthType(r) == authTypeAnonymous {
    			// As per "Permission" section in
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. cmd/bucket-handlers.go

    	}
    
    	// Make sure to update context to print ObjectNames for multi objects.
    	ctx = updateReqContext(ctx, objects...)
    
    	// Call checkRequestAuthType to populate ReqInfo.AccessKey before GetBucketInfo()
    	// Ignore errors here to preserve the S3 error behavior of GetBucketInfo()
    	checkRequestAuthType(ctx, r, policy.DeleteObjectAction, bucket, "")
    
    	deleteObjectsFn := objectAPI.DeleteObjects
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  10. cmd/object-multipart-handlers.go

    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    	object, err := unescapePath(vars["object"])
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutObjectAction, bucket, object); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Check if bucket encryption is enabled
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
Back to top