rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: MarkV on June 03, 2006, 03:44:25 PM
-
If for some reason a file with the name hfs.updateinfo.txt exists in HFS program folder, the update check does no longer work (Communication error).
If the local file's format is correct, it's even possible to show fake info!
(http://img187.imageshack.us/img187/4909/hfsforged5ji.jpg) (http://imageshack.us)
(http://img310.imageshack.us/img310/3107/hfsforged25oe.jpg) (http://imageshack.us)
8O 8O 8O
MarkV
-
that is not a bug, it is a feature :)
anyone reading the sources can see this
URL = 'http://www.rejetto.com/hfs/hfs.updateinfo.txt';
ON_DISK = 'hfs.updateinfo.txt';
...
// this let the developer to be not connected when testing the parsing
if fileExists(ON_DISK) then s:=loadFile(ON_DISK)
else s:=httpGet(URL);
it is not documented because only developers need it
-
But if the file accidently exists on disk, the updatechecker does not work and nobody knows why... well, except the developers.
MarkV
-
suggestions?
-
suggestion #1
limit this behaviour to betas only
-
It would be enough to mention in the update dialog if the info was parsed locally and not downloaded off the internet...
Or insert a warning before the update dialog:Attention! Update info has been read from local file. To resume normal operation of the updater, delete the file hfs.updateinfo.txt from the HFS program folder.
No need to disable, just inform...
MarkV
-
good point