Skip to content

SDK-369-bwi-issue-with-error-handling - #370

Open
Yaron-A wants to merge 4 commits into
masterfrom
SDK-369-bwi-issue-with-error-handling
Open

Yaron-A wants to merge 4 commits into
masterfrom
SDK-369-bwi-issue-with-error-handling

Conversation

@Yaron-A

@Yaron-A Yaron-A commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Note

Low Risk
Narrow change to exception message formatting on the admin modify failure path; no change to successful modify behavior or API calls.

Overview
Administrators.modify now surfaces portal validation text when a modify fails with an HTTP transport error that includes a portal msg (e.g. reusing the current password), instead of only reporting Could not modify user: {ref}.

A new _modify_failure_message helper appends that msg for HTTPError subclasses; other failures keep the previous generic message. Changelog 2.20.48 documents the fix (SDK-369), and a unit test asserts the raised CTERAException includes the portal message without leaking the password value from error fields.

Reviewed by Cursor Bugbot for commit e883b88. Configure here.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Reviewed changes have no unresolved blocking issues.

Pull request overview

Updates administrator modification failures to include portal validation messages while preserving generic handling for other errors.

Changes:

  • Added HTTP error message formatting.
  • Added tests for validation, fallback, and password secrecy.
  • Documented SDK-369 in the changelog.
File summaries
File Description
tests/ut/core/admin/test_users.py Tests updated failure behavior.
docs/source/UserGuides/Miscellaneous/Changelog.rst Documents SDK-369.
cterasdk/core/admins.py Formats portal messages for HTTP failures.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants