MediaWriter
MediaWriter copied to clipboard
Unable to download an image from a custom URL defined in releases.json
I wanted to test FMW download feature more quickly, and so I wanted to download from my localhost instead of the internet. I downloaded releases.json and added:
{"link": "http://127.0.0.1:8000/Fedora-Workstation-Live-x86_64-36-1.5.iso", "subvariant": "Workstation", "version": "36", "arch": "x86_64", "variant": "Workstation", "sha256": "80169891cb10c679cdc31dc035dab9aae3e874395adc5229f0fe5cfcc111cc8c", "size": "2018148352"},
But turns out this doesn't work, the image download is immediately marked as failed. In the log I see:
W@13163ms: Error QNetworkReply::ContentNotFoundError reading from QUrl("http://ftp.fi.muni.cz/pub/linux/centos-stream/Fedora-Workstation-Live-x86_64-36-1.5.iso") : "Error transferring http://ftp.fi.muni.cz/pub/linux/centos-stream/Fedora-Workstation-Live-x86_64-36-1.5.iso - server replied: Not Found"
W@13167ms: Computed SHA256 hash of "/home/kparal/Downloads/Fedora-Workstation-Live-x86_64-36-1.5.iso.part" - "d13fb7e20ee361598d306336c5d9dbfb260ab7e8e2d85166b16097dd9d4ea9a7" does not match expected "80169891cb10c679cdc31dc035dab9aae3e874395adc5229f0fe5cfcc111cc8c"
So it seems that FMW is always trying to download the image from mirrors, even if it is a direct URL that it should use verbatim.
My releases.json
:
releases.json.zip
Full FMW log: fmw-log.txt
mediawriter-4.9.99-2.fc36.x86_64
Maybe a similar issue to https://github.com/FedoraQt/MediaWriter/issues/264?
Partly. If the GUI supported that option, I'd use it. But editing releases.json
is good for QA for verification that things will work correctly once a new Fedora release is public. releases.json
supports hash and size verification, variant definition (so that we can see if the correct fields get populated in FMW), which the GUI change proposed in #264 wouldn't have.
So I don't care much about #264, but I'd like custom URLs in releases.json
to work for the purpose of Fedora QA :-)