Docker image pull errors are treated as success

Open Beginner friendly
#1,233 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, php
Domain
backend, devops

Research direction

Start at lib/DeployActions/DockerActions.php around lines 715–717 and read how the Docker image pull response is handled. Compare the JSON stream with the Docker message format linked in the issue to identify how failures are represented. Done when a pull that reports an error is treated as a failure; the issue does not name a test, so locate or add coverage for that behavior.

Written by the indexing model from the issue text.

Description

bug docker
Describe the bug

To be fair, the docker API to pull images is also not quite nice.
Even when the pull fails, it retuns code 200.
In the json stream of responses it has the actual error messages.
Format: https://github.com/moby/moby/blob/master/api/types/jsonstream/message.go

related line of code: https://github.com/nextcloud/app_api/blob/634729d75dbca75a76dada69962e5bf99154a149/lib/DeployActions/DockerActions.php#L715-L717

Steps/Code to Reproduce

/

Expected Results

/

Actual Results

/

Setup configuration

app_api = 36.0.0-dev.0
nextcloud = 36.0.0

Dominant language
PHP
Stars
202
Forks
30
Avg merge
3d 20h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/app_api

All issues in nextcloud/app_api

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.