Merge pull request #3206 from quay/fix-unicode-schemas

Fix unicode manifests in the backfill
This commit is contained in:
Joseph Schorr 2018-08-16 13:24:17 -04:00 committed by GitHub
commit e13baa9041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 200 additions and 8 deletions

View file

@ -280,8 +280,9 @@ class V2Protocol(RegistryProtocol):
if options.manifest_content_type is not None:
manifest_headers['Content-Type'] = options.manifest_content_type
tag_or_digest = tag_name if not options.push_by_manifest_digest else manifest.digest
self.conduct(session, 'PUT',
'/v2/%s/manifests/%s' % (self.repo_name(namespace, repo_name), tag_name),
'/v2/%s/manifests/%s' % (self.repo_name(namespace, repo_name), tag_or_digest),
data=manifest.bytes,
expected_status=(put_code, expected_failure, V2ProtocolSteps.PUT_MANIFEST),
headers=manifest_headers)