Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow uppercase characters in image reference hostname #20209

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

aaronlehmann
Copy link
Contributor

NOTE: This is a version of #20175 against master. Master needs a separate PR because it vendors a different branch of distirbution.

This PR makes restores the pre-Docker 1.10 behavior of allowing
uppercase characters in registry hostnames.

Note that this only applies to hostnames, not remote image names.
Previous versions also prohibited uppercase letters after the hostname,
but Docker 1.10 extended this to the hostname itself.

  • Vendor updated docker/distribution.
  • Add a check to "normalize" that rejects remote names with uppercase
    letters.
  • Add test cases to TestTagValidPrefixedRepo and
    TestTagInvalidUnprefixedRepo

Fixes: #20056

This PR makes restores the pre-Docker 1.10 behavior of allowing
uppercase characters in registry hostnames.

Note that this only applies to hostnames, not remote image names.
Previous versions also prohibited uppercase letters after the hostname,
but Docker 1.10 extended this to the hostname itself.

- Vendor updated docker/distribution.

- Add a check to "normalize" that rejects remote names with uppercase
  letters.

- Add test cases to TestTagValidPrefixedRepo and
  TestTagInvalidUnprefixedRepo

Fixes: moby#20056

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@calavera
Copy link
Contributor

LGTM

@thaJeztah
Copy link
Member

LGTM (restarted windowsTP4)

@GordonTheTurtle
Copy link

Job: Docker-PRs-WoW-TP4 FAILED:

---
360970.
+ ec=125
+ set +x

----------------------------------
ERROR: Failed to build test binary
----------------------------------



-----------------------------------------------
ERROR: Failed with exitcode 125 at Thu Feb 11 14:47:01 CUT 2016.
-----------------------------------------------


INFO: Tidying up at end of run
INFO: Nuking /d/CI
INFO: Zapped successfully
INFO: End of cleanup
INFO: Ended at Thu Feb 11 14:47:02 CUT 2016 (0m 57s)
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe D:\temp\hudson3021314734244628309.sh
+ set +e
+ set +x
INFO: End of cleanup
Notifying endpoint 'HTTP:https://leeroy.dockerproject.org/notification/jenkins'
---

cpuguy83 added a commit that referenced this pull request Feb 11, 2016
Allow uppercase characters in image reference hostname
@cpuguy83 cpuguy83 merged commit acd8bac into moby:master Feb 11, 2016
@aaronlehmann aaronlehmann deleted the upper-case-hostnames branch February 11, 2016 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow uppercase characters in image reference hostname
6 participants