Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for IncompleteBody (0.21 sec)

  1. cmd/object-api-errors.go

    func (e AllAccessDisabled) Error() string {
    	return "All access to this object has been disabled"
    }
    
    // IncompleteBody You did not provide the number of bytes specified by the Content-Length HTTP header.
    type IncompleteBody GenericError
    
    // Error returns string an error formatted as the given text.
    func (e IncompleteBody) Error() string {
    	return e.Bucket + "/" + e.Object + " has incomplete body"
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. cmd/api-errors_test.go

    )
    
    var toAPIErrorTests = []struct {
    	err     error
    	errCode APIErrorCode
    }{
    	{err: hash.BadDigest{}, errCode: ErrBadDigest},
    	{err: hash.SHA256Mismatch{}, errCode: ErrContentSHA256Mismatch},
    	{err: IncompleteBody{}, errCode: ErrIncompleteBody},
    	{err: ObjectExistsAsDirectory{}, errCode: ErrObjectExistsAsDirectory},
    	{err: BucketNameInvalid{}, errCode: ErrInvalidBucketName},
    	{err: BucketExists{}, errCode: ErrBucketAlreadyOwnedByYou},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 15:13:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    	if erasureErr != nil {
    		return ObjectInfo{}, toObjectErr(erasureErr, minioMetaBucket, key)
    	}
    
    	// Should return IncompleteBody{} error when reader has fewer bytes
    	// than specified in request header.
    	if n < data.Size() {
    		return ObjectInfo{}, IncompleteBody{Bucket: minioMetaBucket, Object: key}
    	}
    	var index []byte
    	if opts.IndexCB != nil {
    		index = opts.IndexCB()
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    	closeBitrotWriters(writers)
    	if err != nil {
    		return pi, toObjectErr(err, bucket, object)
    	}
    
    	// Should return IncompleteBody{} error when reader has fewer bytes
    	// than specified in request header.
    	if n < data.Size() {
    		return pi, IncompleteBody{Bucket: bucket, Object: object}
    	}
    
    	for i := range writers {
    		if writers[i] == nil {
    			onlineDisks[i] = nil
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  5. cmd/object-api-putobject_test.go

    		27: {bucketName: bucket, objName: object, inputData: nilBytes, inputDataSize: int64(len(nilBytes) + 1), expectedMd5: getMD5Hash(nilBytes), expectedError: IncompleteBody{Bucket: bucket, Object: object}},
    		28: {bucketName: bucket, objName: object, inputData: fiveMBBytes, expectedMd5: getMD5Hash(fiveMBBytes), expectedError: ioutil.ErrOverread},
    
    		// valid data with X-Amz-Meta- meta
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. cmd/api-errors.go

    		Code:           "PolicyTooLarge",
    		Description:    "Policy exceeds the maximum allowed document size.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrIncompleteBody: {
    		Code:           "IncompleteBody",
    		Description:    "You did not provide the number of bytes specified by the Content-Length HTTP header.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInternalError: {
    		Code:           "InternalError",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    			comp.Close()
    			pw.CloseWithError(err)
    			return
    		}
    		if on > 0 && on != cn {
    			// if client didn't sent all data
    			// from the client verify here.
    			comp.Close()
    			pw.CloseWithError(IncompleteBody{})
    			return
    		}
    		// Close the stream.
    		// If more than compMinIndexSize was written, generate index.
    		if cn > compMinIndexSize {
    			idx, err := comp.CloseIndex()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top