Skip to content

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

Merged
asafn-ctera merged 4 commits into
masterfrom
SDK-369-bwi-issue-with-error-handling
Oct 12, 2026
Merged

asafn-ctera merged 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.

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.

Copilot review overview

🟢 Approval recommended

The focused implementation preserves fallback behavior and is adequately covered by tests.

Review effort: Balanced
Findings: None

@Yaron-A
Yaron-A marked this pull request as draft October 11, 2026 14:07
@Yaron-A
Yaron-A marked this pull request as ready for review October 11, 2026 14:07
@Yaron-A
Yaron-A force-pushed the SDK-369-bwi-issue-with-error-handling branch from ed4c805 to 8880414 Compare October 12, 2026 08:11
@Yaron-A
Yaron-A requested a review from asafn-ctera October 12, 2026 08:17
@asafn-ctera

Copy link
Copy Markdown
Contributor

merge this MR after Yaron synced with Saimon, and aligned the changes according to the code review.

@asafn-ctera
asafn-ctera merged commit b12c294 into master Oct 12, 2026
9 checks passed
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.

3 participants