Resize volume API validation errors are not displayed in the UI
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ả
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
- Open the Volumes page.
- Select a volume and choose Resize Volume.
- Enter an invalid size, such as 2.5.
- Submit the request.
- 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.
after the fix:
- 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/cloudstack
-
create-kubernetes-binaries-iso.sh builds the ISO without setting a volume ID on EL8 based os's Đang mởbug component:kubernetes
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
apache/cloudstack#14180 ·
-
bug component:projects component:UI
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
apache/cloudstack#14070 · 5 bình luận ·
-
component:backup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/cloudstack#14013 ·
-
KVM agent fails to connect to Ceph RBD storage pool after upgrading Ceph client to Tentacle 20.2.4 Đang mởbug component:ceph
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/cloudstack#13989 · 3 bình luận ·
-
component:UI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/cloudstack#13944 · 3 bình luận ·
Tất cả issue của apache/cloudstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#157 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cryptomator/hub#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1120 ·