Closed rrottmann closed 6 years ago
I cannot reproduce this, I wonder if you have somewhat older javascript cached in your browser?
With the current code the api/file/list command issued by the UI always sets sha256 accordingly, example:
2018/09/17 10:26:36 api.go:49: 127.0.0.1:55978 POST /api/file/list 2018/09/17 10:26:36 json.go:33: {"path":"/signal","sha256":false}
Please try again by flushing your browser cache first.
Thanks for pointing that out! It was in fact the cached file_manager.js from an older release that lacked the sha256 code. It's working perfectly fine now. I reflashed the SD card and reinstalled interlock but the url did not change and the browser tried to use the file from cache.
Issue
When compiling the current code according to the README.md Compiling section, the interlock application brings lots of missing attribute warnings:
System information
Go version:
Linux system: Fresh install of Raspbian Stretch Lite (2018-06-27-raspbian-stretch-lite.img)
Workaround (possible unsafe)
The following patch will get rid of the attribute warnings but I think the introduced checksums are supposed to be there and the fix is to be found somewhere else.