We have a custom software repository setup in our environment that works well with prefetching .txt and .exe files within a begin prefetch block or by just using the prefetch command. I archived a folder using BFarchive and named it ActivClient.tmp and placed this file in our software repository. When I try to prefetch it within a prefetch block or with the nohash prefetch command, I get the error below:
Download error: "Unexpected HTTP response: 404 Not Found"
Download requested on server:
URL: https://bfrepo/ActivClient/ActivClient_720155.tmp
Hash: (sha1)a58e5f450a7ff7c083984aa476a8f87752bf7764
Size:
Next retry: 4 minutes. Retry now
When I change the extension of the file from .tmp to .zip, then it prefetches and downloads the zipped folder successfully. Are there restrictions on downloading any file that has .tmp extension? If not, how do i prefetch files that were archived using BFarchive that has a .tmp extension using the prefetch command?
Ok, it is on the repository server. So, not sure why it won’t download the file with .tmp extension. Is the extension of a BFarchive file .tmp or something else?
I don’t know that there’s a fixed extension, but by convention we often use tye “.bfa” extension.
The 404 Not Found is a response coming from your web server hosting the file; it may be that whatever web service that is, is configured to not allow downloads of .tmp files. I guess that coukd be a reasonable security measue in some environments in case you had some CGI script on a site that was generating .tmp files.
You could always try downloading the file ina browser first to diagnose any limitations on the repository website.