Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for ETag (0.02 sec)

  1. cmd/object-handlers-common.go

    	// We must not use the http.Header().Set method here because some (broken)
    	// clients expect the ETag header key to be literally "ETag" - not "Etag" (case-sensitive).
    	// Therefore, we have to set the ETag directly as map entry.
    	if objInfo.ETag != "" && !delete {
    		w.Header()[xhttp.ETag] = []string{`"` + objInfo.ETag + `"`}
    	}
    
    	// Set the relevant version ID as part of the response header.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. cmd/object-api-utils_test.go

    		{[]CompletePart{{ETag: "wrong-md5-hash-string"}}, "0deb8cb07527b4b2669c861cb9653607-1", ""},
    
    		// Single CompletePart with valid MD5 hash string.
    		{[]CompletePart{{ETag: "cf1f738a5924e645913c984e0fe3d708"}}, "10dc1617fbcf0bd0858048cb96e6bd77-1", ""},
    
    		// Multiple CompletePart with valid MD5 hash string.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. internal/hash/reader.go

    func (r *Reader) ActualSize() int64 { return r.actualSize }
    
    // ETag returns the ETag computed by an underlying etag.Tagger.
    // If the underlying io.Reader does not implement etag.Tagger
    // it returns nil.
    func (r *Reader) ETag() etag.ETag {
    	if t, ok := r.src.(etag.Tagger); ok {
    		return t.ETag()
    	}
    	return nil
    }
    
    // MD5Current returns the MD5 checksum of the content
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. cmd/erasure-healing-common.go

    		etag = commonETag(etags, quorum)
    
    		if etag != "" { // allow this fallback only if a non-empty etag is found.
    			for index, e := range etags {
    				if partsMetadata[index].IsValid() && e == etag {
    					onlineDisks[index] = disks[index]
    				} else {
    					onlineDisks[index] = nil
    				}
    			}
    			return onlineDisks, modTime, etag
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. cmd/api-response.go

    // generates CopyObjectResponse from etag and lastModified time.
    func generateCopyObjectResponse(etag string, lastModified time.Time) CopyObjectResponse {
    	return CopyObjectResponse{
    		ETag:         "\"" + etag + "\"",
    		LastModified: amztime.ISO8601Format(lastModified.UTC()),
    	}
    }
    
    // generates CopyObjectPartResponse from etag and lastModified time.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. cmd/encryption-v1.go

    			if _, ok := crypto.IsEncrypted(batch[i].UserDefined); ok {
    				ETag, err := etag.Parse(batch[i].ETag)
    				if err != nil {
    					return err
    				}
    				if SSES3SinglePartObjects[i] {
    					ETag, err = etag.Decrypt(keys[0][:], ETag)
    					if err != nil {
    						return err
    					}
    					keys = keys[1:]
    				}
    				batch[i].ETag = ETag.Format().String()
    			}
    		}
    		objects = objects[N:]
    	}
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  7. cmd/erasure-multipart.go

    				PartNumber: part.PartNumber,
    				GotETag:    part.ETag,
    			}
    			return oi, invp
    		}
    		expPart := currentFI.Parts[partIdx]
    
    		// ensure that part ETag is canonicalized to strip off extraneous quotes
    		part.ETag = canonicalizeETag(part.ETag)
    		expETag := tryDecryptETag(objectEncryptionKey, expPart.ETag, kind == crypto.S3)
    		if expETag != part.ETag {
    			invp := InvalidPart{
    				PartNumber: part.PartNumber,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  8. cmd/object-api-multipart_test.go

    					}
    					//  Asserting the ETag in the PartInfo.
    					if actualMetaData.ETag != expectedResult.Parts[j].ETag {
    						t.Errorf("Test %d: %s: Part %d: Expected Etag to be \"%s\", but instead found \"%s\"", i+1, instanceType, j+1, expectedResult.Parts[j].ETag, actualMetaData.ETag)
    					}
    				}
    			}
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
  9. docs/site-replication/run-ssec-object-replication.sh

    rep_obj3_etag=$(echo "${stat_out3_rep}" | jq '.etag')
    rep_obj3_size=$(echo "${stat_out3_rep}" | jq '.size')
    rep_obj3_md5=$(echo "${stat_out3_rep}" | jq '.metadata."X-Amz-Server-Side-Encryption-Customer-Key-Md5"')
    
    # Check the etag and size of replicated SSEC objects
    if [ "${rep_obj1_etag}" != "${src_obj1_etag}" ]; then
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 08:03:58 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. docs/site-replication/run-replication-with-checksum-header.sh

    	PART_ETAG=$(echo "${UPLOAD_PART_OUT}" | jq '.ETag')
    	if [ "${idx}" == 10 ]; then
    		PARTS="${PARTS}{\"ETag\": ${PART_ETAG}, \"ChecksumSHA256\": \"${PART_CHKSUM}\", \"PartNumber\": ${idx}}"
    	else
    		PARTS="${PARTS}{\"ETag\": ${PART_ETAG}, \"ChecksumSHA256\": \"${PART_CHKSUM}\", \"PartNumber\": ${idx}},"
    	fi
    done
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 08:02:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top