From e4c4d031679dfb9aed1c0965d2b1423661f07df2 Mon Sep 17 00:00:00 2001 From: Stefan Triller Date: Sun, 17 Dec 2023 06:58:34 +0100 Subject: [PATCH] [ipcamera] Fix Hikvision cameras stay offline when a 401 reply is given with no www-authenticate header (#15613) Signed-off-by: Stefan Triller --- .../openhab/binding/ipcamera/internal/MyNettyAuthHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/MyNettyAuthHandler.java b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/MyNettyAuthHandler.java index 096551c69..8eb729bc7 100644 --- a/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/MyNettyAuthHandler.java +++ b/bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/MyNettyAuthHandler.java @@ -160,8 +160,8 @@ public class MyNettyAuthHandler extends ChannelDuplexHandler { if (!authenticate.isEmpty()) { processAuth(authenticate, httpMethod, httpUrl, true); } else { - ipCameraHandler.cameraConfigError( - "Camera gave no WWW-Authenticate: Your login details must be wrong."); + ipCameraHandler.cameraCommunicationError( + "Camera gave no WWW-Authenticate: Your login details might be wrong. Trying to reconnect"); } } } else if (response.status().code() != 200) {