Skip to content

fix-low: tell API v2 being turned off from a wrong password - #63

Merged
SteveGilvarry merged 1 commit into
ZoneMinder:mainfrom
nabbi:fix/v2-api-disabled
Oct 25, 2026
Merged

SteveGilvarry merged 1 commit into
ZoneMinder:mainfrom
nabbi:fix/v2-api-disabled

Conversation

@nabbi

@nabbi nabbi commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Impact: low (with OPT_USE_API off, login raises "Invalid username or password"; integrations ask for a new password)

Automated PR, tested in a zm-holodeck sandbox. An AI agent (Claude Opus 5.5) wrote this against a disposable
lab (ZoneMinder upstream master 1bdccda40, zm-php-api in place of CakePHP; simulated cameras) and ran the checks
there. Minimal human review before opening: please review it as you would any contributor's PR.

TL;DR

Fixes #62

🤖 Generated with Claude Code

With OPT_USE_API off ZoneMinder answers the login 401 "API Disabled",
which read as bad credentials. It now raises ZMConnectionError naming
the option, so callers don't start a reauth for a password that is fine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SteveGilvarry
SteveGilvarry merged commit b5de9be into ZoneMinder:main Oct 25, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API v2 turned off (OPT_USE_API) is reported as a wrong password

2 participants