Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 161 for errcode (4.45 sec)

  1. cmd/signature-v4-utils_test.go

    	// calling the function being tested.
    	errCode := checkMetaHeaders(signedHeadersMap, r)
    	if errCode != ErrNone {
    		t.Fatalf("Expected the APIErrorCode to be %d, but got %d", ErrNone, errCode)
    	}
    
    	// Add new metadata in inputHeader
    	inputHeader.Set("X-Amz-Meta-Clone", "fail")
    	// calling the function being tested.
    	errCode = checkMetaHeaders(signedHeadersMap, r)
    	if errCode != ErrUnsignedHeaders {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  2. cmd/sts-errors.go

    	"github.com/minio/minio/internal/logger"
    )
    
    // writeSTSErrorResponse writes error headers
    func writeSTSErrorResponse(ctx context.Context, w http.ResponseWriter, errCode STSErrorCode, err error) {
    	stsErr := stsErrCodes.ToSTSErr(errCode)
    
    	// Generate error response.
    	stsErrorResponse := STSErrorResponse{}
    	stsErrorResponse.Error.Code = stsErr.Code
    	stsErrorResponse.RequestID = w.Header().Get(xhttp.AmzRequestID)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. cmd/signature-v4.go

    	if err != ErrNone {
    		return err
    	}
    
    	cred, _, s3Err := checkKeyValid(r, pSignValues.Credential.accessKey)
    	if s3Err != ErrNone {
    		return s3Err
    	}
    
    	// Extract all the signed headers along with its values.
    	extractedSignedHeaders, errCode := extractSignedHeaders(pSignValues.SignedHeaders, r)
    	if errCode != ErrNone {
    		return errCode
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. cmd/auth-handler.go

    // Verify if request has valid AWS Signature Version '4'.
    func isReqAuthenticated(ctx context.Context, r *http.Request, region string, stype serviceType) (s3Error APIErrorCode) {
    	if errCode := reqSignatureV4Verify(r, region, stype); errCode != ErrNone {
    		return errCode
    	}
    
    	clientETag, err := etag.FromContentMD5(r.Header)
    	if err != nil {
    		return ErrInvalidDigest
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  5. cmd/s3-zip-handlers.go

    				if toAPIError(ctx, err).Code == "NoSuchKey" {
    					s3Error = ErrNoSuchKey
    				}
    			}
    		}
    		errCode := errorCodes.ToAPIErr(s3Error)
    		w.Header().Set(xMinIOErrCodeHeader, errCode.Code)
    		w.Header().Set(xMinIOErrDescHeader, "\""+errCode.Description+"\"")
    		writeErrorResponseHeadersOnly(w, errCode)
    		return
    	}
    
    	// Validate pre-conditions if any.
    	opts.CheckPrecondFn = func(oi ObjectInfo) bool {
    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)
  6. cmd/bucket-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	prefix, keyMarker, uploadIDMarker, delimiter, maxUploads, encodingType, errCode := getBucketMultipartResources(r.Form)
    	if errCode != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(errCode), r.URL)
    		return
    	}
    
    	if maxUploads < 0 {
    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)
  7. cmd/api-errors.go

    type errorCodeMap map[APIErrorCode]APIError
    
    func (e errorCodeMap) ToAPIErrWithErr(errCode APIErrorCode, err error) APIError {
    	apiErr, ok := e[errCode]
    	if !ok {
    		apiErr = e[ErrInternalError]
    	}
    	if err != nil {
    		apiErr.Description = fmt.Sprintf("%s (%s)", apiErr.Description, err)
    	}
    	if globalSite.Region != "" {
    		if errCode == ErrAuthorizationHeaderMalformed {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  8. cmd/admin-handlers.go

    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.HealAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	hip, errCode := extractHealInitParams(mux.Vars(r), r.Form, r.Body)
    	if errCode != ErrNone {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(errCode), r.URL)
    		return
    	}
    
    	// Analyze the heal token and route the request accordingly
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  9. cmd/bucket-replication.go

    				errs[idx] = err
    			} else {
    				tagSlc[idx] = tgs.ToMap()
    			}
    		}(idx, tgt)
    	}
    	wg.Wait()
    	for idx, err := range errs {
    		errCode := minio.ToErrorResponse(err).Code
    		if err != nil && errCode != "NoSuchKey" && errCode != "NoSuchVersion" {
    			return nil, proxyResult{Err: err}
    		}
    		if err == nil {
    			tgs, _ = tags.MapToObjectTags(tagSlc[idx])
    		}
    	}
    	if len(errs) == 1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  10. docs/en/docs/how-to/async-sql-encode-databases.md

    You can also use <a href="https://github.com/encode/databases" class="external-link" target="_blank">`encode/databases`</a> with **FastAPI** to connect to databases using `async` and `await`.
    
    It is compatible with:
    
    * PostgreSQL
    * MySQL
    * SQLite
    
    In this example, we'll use **SQLite**, because it uses a single file and Python has integrated support. So, you can copy this example and run it as is.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top