Skip to content

Handle nonstandard token endpoint errors#1379

Merged
stevvooe merged 1 commit intodistribution:masterfrom
aaronlehmann:token-error
Jan 20, 2016
Merged

Handle nonstandard token endpoint errors#1379
stevvooe merged 1 commit intodistribution:masterfrom
aaronlehmann:token-error

Conversation

@aaronlehmann
Copy link
Copy Markdown

#1249 changed token fetching
to parse HTTP error response bodies as serialized errcodes. However,
Docker Hub's authentication endpoint does not return error bodies in
this format. To work around this, convert its format into
ErrCodeUnauthorized or ErrCodeUnknown.

Fixes #1373
See also moby/moby#19476

distribution#1249 changed token fetching
to parse HTTP error response bodies as serialized errcodes. However,
Docker Hub's authentication endpoint does not return error bodies in
this format. To work around this, convert its format into
ErrCodeUnauthorized or ErrCodeUnknown.

Signed-off-by: Aaron Lehmann <[email protected]>
@stevvooe
Copy link
Copy Markdown
Collaborator

LGTM

@stevvooe stevvooe added this to the Registry/2.3 milestone Jan 20, 2016
@tonistiigi
Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@dmcgowan
Copy link
Copy Markdown
Collaborator

LGTM

@codecov-io
Copy link
Copy Markdown

Current coverage is 53.68%

Merging #1379 into master will decrease coverage by -4.22% as of ec636bb

@@            master   #1379   diff @@
======================================
  Files          123     123       
  Stmts        11141   11155    +14
  Branches       778     707    -71
  Methods          0       0       
======================================
- Hit           6451    5989   -462
+ Partial        778     707    -71
- Missed        3912    4459   +547

Review entire Coverage Diff as of ec636bb


Uncovered Suggestions

  1. +0.29% via ...ge/driver/gcs/gcs.go#182...213
  2. +0.25% via ...ge/driver/gcs/gcs.go#85...111
  3. +0.22% via ...ge/driver/gcs/gcs.go#471...494
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

stevvooe added a commit that referenced this pull request Jan 20, 2016
Handle nonstandard token endpoint errors
@stevvooe stevvooe merged commit 182bddc into distribution:master Jan 20, 2016
@aaronlehmann aaronlehmann deleted the token-error branch January 20, 2016 23:29
aaronlehmann pushed a commit to aaronlehmann/docker that referenced this pull request Jan 20, 2016
tiborvass pushed a commit to tiborvass/docker that referenced this pull request Jan 26, 2016
aditirajagopal pushed a commit to aditirajagopal/docker that referenced this pull request Feb 8, 2016
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
Handle nonstandard token endpoint errors
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
Handle nonstandard token endpoint errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants