Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MalformedPolicy (0.06 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    		Code:           "AllAccessDisabled",
    		Description:    "All access to this resource has been disabled.",
    		HTTPStatusCode: http.StatusForbidden,
    	},
    	ErrPolicyInvalidVersion: {
    		Code:           "MalformedPolicy",
    		Description:    "The policy must contain a valid version string",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingFields: {
    		Code:           "MissingFields",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top