Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for StatusBadRequest (0.08 sec)

  1. cmd/bucket-policy-handlers_test.go

    		// Expecting StatusBadRequest (400).
    		{
    			bucketName:         bucketName,
    			bucketPolicyReader: bytes.NewReader(fmt.Appendf(nil, bucketPolicyTemplate, bucketName, bucketName)),
    
    			policyLen:          maxBucketPolicySize + 1,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    		},
    		// Test case - 3.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  2. cmd/tier.go

    		Code:       "XMinioAdminTierTypeUnsupported",
    		Message:    "Specified tier type is unsupported",
    		StatusCode: http.StatusBadRequest,
    	}
    
    	errTierBackendNotEmpty = AdminError{
    		Code:       "XMinioAdminTierBackendNotEmpty",
    		Message:    "Specified remote backend is not empty",
    		StatusCode: http.StatusBadRequest,
    	}
    
    	errTierInvalidConfig = AdminError{
    		Code:       "XMinioAdminTierInvalidConfig",
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  3. cmd/post-policy_test.go

    			secretKey:          "",
    			malformedBody:      false,
    		},
    		// Bad case malformed input.
    		{
    			objectName:         "test",
    			data:               []byte("Hello, World"),
    			expectedRespStatus: http.StatusBadRequest,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			malformedBody:      true,
    		},
    	}
    
    	for i, testCase := range testCasesV4 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    			expectedContent: encodeResponse(getAPIErrorResponse(ctx,
    				getAPIError(ErrInvalidObjectName),
    				getGetObjectURL("", bucketName, "../../etc"), "", "")),
    			expectedRespStatus: http.StatusBadRequest,
    		},
    		// Test case - 8.
    		// Case with strange components but returning error as not found.
    		{
    			bucketName: bucketName,
    			objectName: ". ./. ./etc",
    			byteRange:  "",
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  5. cmd/server_test.go

    	c.Assert(err, nil)
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    	c.Assert(err, nil)
    	c.Assert(response.StatusCode, http.StatusBadRequest)
    	verifyError(c, response, "KeyTooLongError", "Your key is too long", http.StatusBadRequest)
    
    	// make object name as unsupported
    	longObjName = fmt.Sprintf("%0256d", 1)
    	buffer = bytes.NewReader([]byte("hello world"))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 118.1K bytes
    - Viewed (0)
  6. cmd/bucket-handlers_test.go

    		{
    			bucket:             bucketName,
    			prefix:             "",
    			keyMarker:          "",
    			uploadIDMarker:     "",
    			delimiter:          "",
    			maxUploads:         "-1",
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusBadRequest,
    			shouldPass:         false,
    		},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 39.8K bytes
    - Viewed (0)
  7. cmd/handler-utils.go

    		}
    
    		writeErrorResponse(r.Context(), w, APIError{
    			Code: "BadRequest",
    			Description: fmt.Sprintf("An unsupported API call for method: %s at '%s'",
    				r.Method, r.URL.Path),
    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    	}
    }
    
    // gets host name for current node
    func getHostName(r *http.Request) (hostName string) {
    	if globalIsDistErasure {
    		hostName = globalLocalNodeName
    	} else {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.3K bytes
    - Viewed (1)
  8. cmd/admin-handlers-site-replication.go

    				adminLogIf(ctx, err)
    			}
    		}
    		if err != nil {
    			if errors.Is(err, io.EOF) {
    				w.WriteHeader(http.StatusNoContent)
    			} else {
    				w.WriteHeader(http.StatusBadRequest)
    			}
    			break
    		}
    	}
    }
    
    // SiteReplicationNetPerf - everything goes to io.Discard
    // [POST] /minio/admin/v3/site-replication/netperf
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. cmd/batch-handlers.go

    			Code: "InvalidBucketState",
    			Description: fmt.Sprintf("The source '%s' has versioning enabled, target '%s' must have versioning enabled",
    				r.Source.Bucket, r.Target.Bucket),
    			HTTPStatusCode: http.StatusBadRequest,
    		}
    	}
    
    	r.clnt = c
    	return nil
    }
    
    // Type returns type of batch job, currently only supports 'replicate'
    func (j BatchJobRequest) Type() madmin.BatchJobType {
    	switch {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.5K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    	if isInternal && !opts.Internal {
    		return false
    	}
    
    	// Filter non-errors.
    	if isHTTP && opts.OnlyErrors && trcInfo.HTTP.RespInfo.StatusCode < http.StatusBadRequest {
    		return false
    	}
    
    	return true
    }
    
    func extractTraceOptions(r *http.Request) (opts madmin.ServiceTraceOpts, err error) {
    	if err := opts.ParseParams(r); err != nil {
    		return opts, err
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
Back to top