Skip to content

Resize volume API validation errors are not displayed in the UI #14222

Description

@sathvikaragi

problem

When resizing a volume with an invalid value, such as a negative size, the backend returns a validation error, but the UI does not display it.
ResizeVolume.vue expects the error under errorresponse. For known commands such as resizeVolume, CloudStack returns it under resizevolumeresponse. Accessing the wrong response key hides the original validation message.

versions

The versions of ACS, hypervisors, storage, network etc..

checked on 4.23

The steps to reproduce the bug

  1. Open the Volumes page.
  2. Select a volume and choose Resize Volume.
  3. Enter an invalid size, such as 2.5.
  4. Submit the request.
  5. Observe that the backend validation error is not displayed in the UI at all.

What to do about it?

Replace the hardcoded error-response lookup in ResizeVolume.vue with the common $notifyError(error) helper. This helper finds and displays errortext regardless of the command-specific response key.

even after clicking on okay I see no error for it.

Image

after the fix:

Image Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions