Zigbee device icons cannot be loaded in authenticated setup (>= 4.1.9)
agross opened this issue · 3 comments
agross commented
Describe the bug
I have 2 instances of the adapter installed on a single ioBroker installation. One instance is for guests, accessible only from inside my network. Another one is the authenticated instance for me.
With anonymous access allowed:
$ curl https://gast.ogd.therightstuff.de/adapter/zigbee/img/philips_hue_lst002.png
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
The authenticated site:
$ curl https://lovelace.ogd.therightstuff.de/adapter/zigbee/img/philips_hue_lst002.png
File img/philips_hue_lst002.png not found: TypeError: Cannot read properties of undefined (reading 'toLowerCase')
This line is logged (with level debug
):
Trying to send file img/philips_hue_lst002.png for zigbee.admin
The same setup works in 4.1.8. I suspect 34c2f9e is the issue. I think the root cause might be that these images are requested by the browser without supplying an authentication token.
Versions:
- Adapter version: 4.1.9
- JS-Controller version: latest
- Node version: 18
- Operating system: docker
Garfonso commented
Hrgn... ok... stupid oversight. ;-)
Could you check the latest git version? (i.e. 8c65dea )
agross commented
Yep, that commit started working again.