application-upload via URL leaves database with a 'dummy' placeholder if download fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Andrei Grosu |
Bug Description
Brief Description
-----------------
When performing an application-upload with a HTTP URL, if the download fails (for example the URL link is invalid or the server responds with an error), the application database is left with a 'dummy' value 'app-name-
Steps to Reproduce
------------------
# make sure the URL is bad or, the server responds with an error
system application-upload http://
active False
app_version app-version-
created_at 2021-03-
manifest_file tarfile-placeholder
manifest_name manifest-
name app-name-
progress None
status uploading
updated_at None
system application-list
You will see an entry for an application 'app-name-
Any subsequent uploads from a failing URL will fail because the same 'app-name-
This might happen if these steps are automated.
Expected Behavior
------------------
Do not leave the 'dummy' placeholder if the download fails.
Actual Behavior
----------------
Leaves a 'app-name-
Reproducibility
---------------
100% reproducible.
Workaround
----------
Try to download the URLs locally and then use system application-upload from a local file path.
Alternatively explicitly delete the 'dummy' placeholder:
system application-delete app-name-
Changed in starlingx: | |
assignee: | nobody → Andrei Grosu (agrosu1) |
tags: | added: stx.containers |
stx.5.0 / medium - As per Bob Church, this should be fixed for stx.5.0