mirror of
https://github.com/pgsty/minio.git
synced 2026-09-26 04:45:59 +03:00
fix: validate CORS state in replication status
Count only valid live CORS states in per-site summaries. Treat baselines and tombstones as absent, and diagnose malformed payloads or missing source timestamps.\n\nRefs: #77 Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -93,15 +93,16 @@ func testSiteReplicationStatusAccountsPerSiteAndSurvivesMalformedConfig(obj Obje
|
||||
CreatedAt: localMeta.Created,
|
||||
},
|
||||
remoteBucket: {
|
||||
Bucket: remoteBucket,
|
||||
CreatedAt: remoteBucketMeta.Created,
|
||||
Tags: encode(tagXML),
|
||||
Versioning: encode(versioningXML),
|
||||
ObjectLockConfig: encode(objectLockXML),
|
||||
SSEConfig: encode(sseXML),
|
||||
QuotaConfig: encode(quotaJSON),
|
||||
Policy: remotePolicy,
|
||||
CorsConfig: encode([]byte(testSiteReplicationCORSDoc)),
|
||||
Bucket: remoteBucket,
|
||||
CreatedAt: remoteBucketMeta.Created,
|
||||
Tags: encode(tagXML),
|
||||
Versioning: encode(versioningXML),
|
||||
ObjectLockConfig: encode(objectLockXML),
|
||||
SSEConfig: encode(sseXML),
|
||||
QuotaConfig: encode(quotaJSON),
|
||||
Policy: remotePolicy,
|
||||
CorsConfig: encode([]byte(testSiteReplicationCORSDoc)),
|
||||
CorsConfigUpdatedAt: remoteBucketMeta.Created,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user