Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for errcode (0.07 sec)

  1. cmd/auth-handler_test.go

    	testCases := []struct {
    		Request *http.Request
    		ErrCode APIErrorCode
    	}{
    		{Request: mustNewRequest(http.MethodGet, "http://127.0.0.1:9000", 0, nil, t), ErrCode: ErrAccessDenied},
    		{Request: mustNewSignedRequest(http.MethodGet, "http://127.0.0.1:9000", 0, nil, t), ErrCode: ErrNone},
    		{Request: mustNewSignedV2Request(http.MethodGet, "http://127.0.0.1:9000", 0, nil, t), ErrCode: ErrAccessDenied},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. cmd/bucket-listobjects-handlers.go

    	if errCode != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(errCode), r.URL)
    		return
    	}
    
    	// Validate the query params before beginning to serve the request.
    	if s3Error := validateListObjectsArgs(prefix, marker, delimiter, encodingType, maxkeys); s3Error != ErrNone {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. 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
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K 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 region := globalSite.Region(); region != "" {
    		if errCode == ErrAuthorizationHeaderMalformed {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  8. 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  9. cmd/listen-notification-handlers.go

    		if s3Error := checkRequestAuthType(ctx, r, policy.ListenNotificationAction, bucketName, ""); s3Error != ErrNone {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    			return
    		}
    	} else {
    		if s3Error := checkRequestAuthType(ctx, r, policy.ListenBucketNotificationAction, bucketName, ""); s3Error != ErrNone {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    			return
    		}
    	}
    
    	values := r.Form
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. cmd/api-response.go

    			content.StorageClass = filterStorageClass(ctx, object.StorageClass)
    		} else {
    			content.StorageClass = globalMinioDefaultStorageClass
    		}
    		if tagErr == ErrNone {
    			content.UserTags = object.UserTags
    		}
    		if metaErr == ErrNone {
    			content.UserMetadata = &Metadata{}
    			switch kind, _ := crypto.IsEncrypted(object.UserDefined); kind {
    			case crypto.S3:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top