OCI images don't display all fields

Summary

With the 11.8 release, we began shipping the container registry 2.7.1 with support for OCI images.

When an OCI image is pushed, the size and Tag ID fields do not display in the container_registry page, we instead get null bytes and a blank field respectively.

Steps to reproduce

Given a Dockerfile:

FROM fedora:29

CMD [ "/bin/sh" ]

Build and push with buildah

$ buildah bud -f Dockerfile -t registry.gitlab.com/ibaum/ocitest/test-image:oci .
$ buildah push --creds USERNAME:PASSWORD registry.gitlab.com/ibaum/ocitest/test-image:oci

Build and push with docker

$ docker build -f Dockerfile -t registry.gitlab.com/ibaum/ocitest/test-image:docker .
$ docker login registry.gitlab.com
...
$ docker push registry.gitlab.com/ibaum/ocitest/test-image:docker

The docker image will have a valid size, and Tag ID. The buildah image will have null bytes and a blank field.

Example Project

https://gitlab.com/ibaum/ocitest

What is the current bug behavior?

Image size is display as null bytes Tag ID is blank

What is the expected correct behavior?

Image size should be a valid size Tag ID should be a valid SHA

Relevant logs and/or screenshots

From: https://gitlab.com/ibaum/ocitest/container_registry Screen_Shot_2019-03-07_at_5.46.07_PM

Output of checks

This bug happens on GitLab.com

Edited by Ian Baum