[18.09] Fix panic in display only case for license#1408
Merged
andrewhsu merged 2 commits intodocker:18.09from Oct 2, 2018
Merged
[18.09] Fix panic in display only case for license#1408andrewhsu merged 2 commits intodocker:18.09from
andrewhsu merged 2 commits intodocker:18.09from
Conversation
Prior refactoring passes missed a corner case. Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com>
Contributor
Author
|
I'd like to try to build some unit test coverage for this, but the current structure is making this a bit challenging... I'll see what I can do, but if we're under the gun to get beta1.9 cut, we should consider merging this and revisit the unit coverage in a follow-up. |
Codecov Report
@@ Coverage Diff @@
## 18.09 #1408 +/- ##
==========================================
+ Coverage 54.12% 54.21% +0.09%
==========================================
Files 290 290
Lines 19303 19306 +3
==========================================
+ Hits 10447 10466 +19
+ Misses 8192 8173 -19
- Partials 664 667 +3 |
Contributor
Author
|
Slightly more invasive, but now with unit coverage for the specific failure mode - confirmed running the new test case without the fix hits the panic. |
Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com>
Contributor
|
I'm able to reproduce the panic without this PR: And verify this PR fixes the issue: |
thaJeztah
added a commit
that referenced
this pull request
Nov 14, 2018
Fix panic in display only case for license - forward port #1408 to master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prior refactoring passes missed a corner case.
Signed-off-by: Daniel Hiltgen daniel.hiltgen@docker.com