Describe the bug
The DownloadArtifact function incorrectly reads from req.Body instead of resp.Body after executing the HTTP request.
Current implementation:
respBody, err := io.ReadAll(req.Body)
This causes the function to read the request payload rather than the server response body, which may lead to empty or invalid artifact content when using import-url functionality.
Expected behavior:
Microcks has discovered 'SUCCESS_FROM_SERVER'
Actual behavior:
Microcks has discovered ''
How to Reproduce?
No response
Microcks version or git rev
No response
Install method (docker-compose, helm chart, operator, docker-desktop extension,...)
No response
Additional information
No response
Describe the bug
The
DownloadArtifactfunction incorrectly reads from req.Body instead of resp.Body after executing the HTTP request.Current implementation:
respBody, err := io.ReadAll(req.Body)This causes the function to read the request payload rather than the server response body, which may lead to empty or invalid artifact content when using import-url functionality.
Expected behavior:
Microcks has discovered 'SUCCESS_FROM_SERVER'
Actual behavior:
Microcks has discovered ''
How to Reproduce?
No response
Microcks version or git rev
No response
Install method (
docker-compose,helm chart,operator,docker-desktop extension,...)No response
Additional information
No response