Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Resize volume API validation errors are not displayed in the UI

Đang mở Phù hợp với người mới
#14,222 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
90/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Mở ResizeVolume.vue và theo dõi cách xử lý lỗi của yêu cầu resize, sau đó so sánh với helper $notifyError(error) dùng chung. Kiểm thử luồng resize với kích thước không hợp lệ từ trang Volumes; hoàn tất khi thông báo xác thực từ backend xuất hiện đối với các response dành riêng cho command như resizevolumeresponse.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
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
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 20 giờ
Pull request đã merge (30 ngày)
27

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/cloudstack

Tất cả issue của apache/cloudstack

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.