-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
X-Registry-Auth header sent to Docker Engine API contains field "authHeader" #42910
Conversation
@1328032567 thank you for making your first contribution to Spring Boot. To validate the auth header would not be included, I've changed the assertion of the "full" sample to be strict. See d4010d3. |
Alright, though you did't merge my branch(what a pity) but also used my modification. And finally I understand the true meaning of |
I did merge it, see 351018e. If you're worried about this not being recognized as a contribution of yours, See the tags next to your name on this page.
Nothing was validating that the auth header is gone. By using a strict assertion ( |
oh, I try to look through the doc for |
Overview of Changes
@JsonIgnore
on variableauthHeader
to avoid auto-serialization.com.fasterxml.jackson.annotation.JsonIgnore
to make annotation valid../gradlew checkstyleMain
and./gradlew format
to fix style error.Related Issues
Fixed #42905
Type of Change
Impact
Now when class
DockerRegistryUserAuthentication
andDockerRegistryTokenAuthentication
use methodcreateAuthHeader()
would't add"authHeader" : null
field.Test
I've already test the class
DockerRegistryUserAuthentication
andDockerRegistryTokenAuthentication
methodgetAuthHeader()
, but only write rough test code not create a new branch to test. Do I need create a new branch?Effect of Test
Use decode tools to display the original string.Expected Result:
it works as expected.
Note
If anything I did worked not as expected, plz contact with me. Finally, looking forward to your reply.