Skip to content

Conversation

@dleischnig
Copy link

@dleischnig dleischnig commented May 31, 2017

As ObjectMapper expects all propeties of json content to match AuthConfig it fails on any other
like "credStore" or "HttpHeaders". As only "auths" is used the json is mapped to ObjectNode so
we can remove any other property. The content of this filtered node can be used as source for
unmarshalling AuthConfig.


This change is Reviewable

As ObjectMapper expects all propeties of json content to match AuthConfig it fails on any other
like "credStore" or "HttpHeaders". As only "auths" is used the json is mapped to ObjectNode so
we can remove any other property. The content of this filtered node can be used as source for
unmarshalling AuthConfig.
@dleischnig dleischnig force-pushed the fix-806-invalid-auth-config branch from 866b5c4 to 881b5d2 Compare May 31, 2017 14:13
@codecov-io
Copy link

Codecov Report

Merging #851 into master will increase coverage by 0.05%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #851      +/-   ##
==========================================
+ Coverage   71.63%   71.69%   +0.05%     
==========================================
  Files         306      306              
  Lines        6643     6649       +6     
  Branches      500      501       +1     
==========================================
+ Hits         4759     4767       +8     
+ Misses       1591     1590       -1     
+ Partials      293      292       -1
Impacted Files Coverage Δ
...ava/com/github/dockerjava/core/AuthConfigFile.java 63% <88.88%> (+2.36%) ⬆️
...ava/netty/handler/FramedResponseStreamHandler.java 93.1% <0%> (+3.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08ac9b6...881b5d2. Read the comment docs.

@KostyaSha
Copy link
Member

picked via #868

@KostyaSha KostyaSha closed this Jun 29, 2017
@KostyaSha KostyaSha added this to the 3.0.12 milestone Jun 29, 2017
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.

3 participants