Skip to content

CSTACKEX-309: enabling resize volume Api validation notification to s… - #103

Open
sathvikaragi wants to merge 2 commits into
mainfrom
bugfix/CSTACKEX-309
Open

sathvikaragi wants to merge 2 commits into
mainfrom
bugfix/CSTACKEX-309

Conversation

@sathvikaragi

@sathvikaragi sathvikaragi commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

…how up in UI

Description

When resizing a volume, backend API validation errors (e.g. invalid size value) are silently swallowed and never shown to the user.

This PR...

File: ui/src/views/storage/ResizeVolume.vue, lines 147–151

The .catch() handler uses this.$notification.error() with a hardcoded path error.response.data.errorresponse.errortext. However, the CloudStack API only uses errorresponse as the response key for unknown commands. For known commands like resizeVolume, it uses the command's own response name (resizevolumeresponse) as the key. So error.response.data.errorresponse is always undefined, causing a silent TypeError that swallows the error entirely.
$notifyError avoids this by using _.findKey() to find errortext regardless of what the key is named — which is why the same validation error shows correctly in UpdatePrimaryStorage.vue (which uses $notifyError) but not in ResizeVolume.vue.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Screenshot 2026-09-16 at 12 30 24 PM Screenshot 2026-09-16 at 1 07 53 PM Screenshot 2026-09-16 at 1 08 07 PM Screenshot 2026-09-16 at 1 08 24 PM

How did you try to break this feature and the system with this change?

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.

1 participant