You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Late ContainerFetchException on wrong image name #5190
I composed a, at least for me, invalid image name neo4j:neo4j:4.4 and threw it into TC.
Obviously, the image could not be found and the error contained:
Somewhere between the creation of the DockerImageName and the output of RemoteDockerImage's toString()(?) the last bit got missed. I assume it's this part:
Would be helpful if the parsing in DockerImageName would be even more restrictive, if the name has an invalid pattern. (At least, I assume that this pattern is non-sense 😉 )
Trying to pull an image with such name using the Docker CLI leads to:
docker pull neo4j:neo4j:4.4
invalid reference format
So it seems to be sensible to be more restrictive on the image name as well (would be good to find a real specification here). Besides, your observation about wrong image name in the ContainerFetchException is also correct, thanks!
Activity
kiview commentedon Mar 31, 2022
Trying to pull an image with such name using the Docker CLI leads to:
So it seems to be sensible to be more restrictive on the image name as well (would be good to find a real specification here). Besides, your observation about wrong image name in the
ContainerFetchExceptionis also correct, thanks!gesellix commentedon Mar 31, 2022
A good reference is this one: https://github.com/distribution/distribution/blob/main/reference/reference.go
The google/re2j regex matcher helped me adopting the reference parser for the JVM.