Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isErrInvalidRange (0.23 sec)

  1. cmd/httprange_test.go

    		var err1, err2 error
    		var rs *HTTPRangeSpec
    		var o, l int64
    		rs, err1 = parseRequestRangeSpec(irs)
    		if err1 == nil {
    			o, l, err2 = rs.GetOffsetLength(resourceSize)
    		}
    		if isErrInvalidRange(err1) || (err1 == nil && isErrInvalidRange(err2)) {
    			continue
    		}
    		t.Errorf("Case %d: Expected errInvalidRange but: %v %v %d %d %v", i, rs, err1, o, l, err2)
    	}
    }
    
    func TestHTTPRequestRangeToHeader(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. cmd/object-api-errors.go

    // isErrMethodNotAllowed - Check if error type is MethodNotAllowed.
    func isErrMethodNotAllowed(err error) bool {
    	var methodNotAllowed MethodNotAllowed
    	return errors.As(err, &methodNotAllowed)
    }
    
    func isErrInvalidRange(err error) bool {
    	if errors.Is(err, errInvalidRange) {
    		return true
    	}
    	_, ok := err.(InvalidRange)
    	return ok
    }
    
    // ReplicationPermissionCheck - Check if error type is ReplicationPermissionCheck.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    				continue
    			}
    			gopts.Set(xhttp.Range, h)
    		}
    
    		objInfo, err := tgt.StatObject(ctx, t.TargetBucket, object, gopts)
    		if err != nil {
    			perr = err
    			if isErrInvalidRange(ErrorRespToObjectError(err, bucket, object)) {
    				return nil, oi, proxyResult{Err: err}
    			}
    			continue
    		}
    
    		tags, _ := tags.MapToObjectTags(objInfo.UserTags)
    		oi = ObjectInfo{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    					if !isErrBucketNotFound(proxyGetErr) && !isErrObjectNotFound(proxyGetErr) && !isErrVersionNotFound(proxyGetErr) &&
    						!isErrPreconditionFailed(proxyGetErr) && !isErrInvalidRange(proxyGetErr) {
    						replLogIf(ctx, fmt.Errorf("Proxying request (replication) failed for %s/%s(%s) - %w", bucket, object, opts.VersionID, perr))
    					}
    				}
    				if reader != nil && proxy.Proxy && perr == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top