Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.9.2
-
Docker version 1.12
Description
When a Docker image doesn't contain any repoTag, then the `ImageToImage` function fails with
java.lang.IndexOutOfBoundsException: position (1) must be less than the number of elements that remained (1)
So the current implementation of listing Docker images fails when there is an image with empty repoTags field. (E.g. It happens after pulling a new "latest" tag of an image and the original image didn't have any other tags).
IMO the original intention was to throw NPE by this call in the ImageToImage.apply() method:
String description = checkNotNull(Iterables.getFirst(from.repoTags(), "image must have at least one repo tag"));
but it instead sets the description to "image must have at least one repo tag" and it fails later on splitting the value.