openhab / openhab-android

openHAB client for Android
https://play.google.com/store/apps/details?id=org.openhab.habdroid
Eclipse Public License 2.0
598 stars 317 forks source link

Some icons aren't loaded anymore #3733

Open mueller-ma opened 2 months ago

mueller-ma commented 2 months ago

Actual behaviour

Some icons aren't loaded anymore in Sitemaps and notifications. My guess is that the original fetch was unsuccessful and that this error has been cached.

mueller-ma commented 1 month ago

I noticed that myopenhab.org sometimes returns http code 200 for an icon and a valid svg content type, but the content length is 0. In that case, change to http code to 500 to avoid caching.

https://github.com/openhab/openhab-android/pull/3743 went too far and made valid requests without body to fail, see https://github.com/openhab/openhab-android/issues/3759