Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MalformedPolicy (0.09 sec)

  1. cmd/bucket-policy-handlers.go

    		return
    	}
    
    	bucketPolicy, err := policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyBytes), bucket)
    	if err != nil {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "MalformedPolicy",
    			HTTPStatusCode: http.StatusBadRequest,
    			Description:    err.Error(),
    		}, r.URL)
    		return
    	}
    
    	// Version in policy must not be empty
    	if bucketPolicy.Version == "" {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top