Skip to content

Add all missing fields to ResponseItem and related classes.#326

Merged
marcuslinke merged 2 commits intodocker-java:masterfrom
llamahunter:fix-progress-detail-serializer
Sep 17, 2015
Merged

Add all missing fields to ResponseItem and related classes.#326
marcuslinke merged 2 commits intodocker-java:masterfrom
llamahunter:fix-progress-detail-serializer

Conversation

@llamahunter
Copy link

Fix types to match Go code.

fixes #322

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure that error can't exist without error details? Shouldn't be it ORed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If either is not null, its an error. Only when both are null (i.e. 'and') is it safe to return false.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this method should be pushed up to ResponseItem class. Then it should be used in BuildResponseItem.isBuildSuccessIndicated() and PullResponseItem.isPullSuccessIndicated() as pre-condition check.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such refactoring is exceeding the scope of this pull request, which is to get docker-java to stop rejecting valid ProgressDetail messages.

@marcuslinke marcuslinke merged commit 7ff1670 into docker-java:master Sep 17, 2015
@marcuslinke
Copy link
Contributor

@llamahunter Thanks for your effort!

@llamahunter llamahunter deleted the fix-progress-detail-serializer branch September 17, 2015 19:24
@KostyaSha
Copy link
Member

Ok... refactored the isErrorIndicated() method and updated build and pull response items.

Now it uses deprecated method that looks weird.

@KostyaSha
Copy link
Member

Where did you get doc that describes this responses? :(

@marcuslinke
Copy link
Contributor

@KostyaSha This is documented in the related issue #322

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.

jackson marshalling exception with ResponseItem.ProgressDetail

3 participants