Skip to content

Issues relating to FILE_URL #237

@plwhite

Description

@plwhite

Describe the bug
Various problems related to specifying FILE_URL. These are pretty trivial to fix, so I am happy to submit a PR if you agree, though I have limited capacity to test it fully (beyond manual test in my environment).

To Reproduce
Specify a FILE_URL, and several things go wrong. There are workarounds for all these, and some are relatively cosmetic, but feel like they would be good to fix.

  • There is trace at

    logger.debug(f"FILE_URL: {config.FILE_URL}")
    , but it is debug level, so FILE_URL is not reported. That makes it seem to have been ignored.

  • desc=f"Downloading {os.path.basename(destination)}",
    logs the destination path when downloading. However, this is problematic, as the logs are of the local filename, yet imply that they are of the file actually being downloaded. Adding the URL to this log would make it far clearer what is going on (including in cases where the URL is constructed in code).

  • The download fails if FILE_URL is specified and SKIP_MD5_CHECK is not, as the code grabs the wrong md5 file. Better to mandate that SKIP_MD5_CHECK must be true if FILE_URL is set (or to change the md5 logic with an explicitly passed in md5 path).

Expected behavior
See above.

photon-docker configuration:

All that I did was explicitly set FILE_URL, and then found the issues above.

System Info

This was run on a linux VM, but that isn't relevant.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions