Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkPostPolicy (0.58 sec)

  1. cmd/postpolicyform.go

    	encrypt.SseCustomerKey:       true,
    	encrypt.SseCustomerKeyMD5:    true,
    }
    
    // checkPostPolicy - apply policy conditions and validate input values.
    // Note that content-length-range is checked in the API handler function PostPolicyBucketHandler.
    // formValues is the already-canonicalized form values from the POST request.
    func checkPostPolicy(formValues http.Header, postPolicyForm PostPolicyForm) error {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. cmd/postpolicyform_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			postPolicyForm, err := parsePostPolicyForm(bytes.NewReader(policyBytes))
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			errStr := ""
    			err = checkPostPolicy(tt.fv.Header, postPolicyForm)
    			if err != nil {
    				errStr = err.Error()
    			}
    			if errStr != tt.wantErr {
    				t.Errorf("test: '%s', want error: '%s', got error: '%s'", tt.name, tt.wantErr, errStr)
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    			errAPI.Description = fmt.Sprintf("%s '(%s)'", errAPI.Description, err)
    			writeErrorResponse(ctx, w, errAPI, r.URL)
    			return
    		}
    
    		// Make sure formValues adhere to policy restrictions.
    		if err = checkPostPolicy(formValues, postPolicyForm); err != nil {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErrWithErr(ErrAccessDenied, err), r.URL)
    			return
    		}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.9K bytes
    - Viewed (0)
Back to top