CMD 3 for a camera (the editor's "Set credentials" button) set
status "ok" before the ONVIF check. When the check failed (wrong
credentials, unreachable camera, unusable reply), the page saw "ok",
reloaded the list and never showed the message. The two failure
branches now set status "error", so the reason is shown.
Tested through the real ajax_asm.php / web.php login (users table and
session id) with the editor's request (UID, SID, CID=5, UU, PP, AU,
CMD=3):
- camera unreachable: error, "GetCapabilities: Communication error
(Failed to connect to ... port 8080 ...)"
- fake camera, good: ok, credentials and stream stored
- fake camera, HTML 401 page: error, "GetVideoSources: Communication
error (HTTP 401: reply is not a SOAP envelope)"
- wrong SID: redirected (302)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16