Skip to content

Conversation

@sureshanaparti
Copy link
Contributor

@sureshanaparti sureshanaparti commented Dec 19, 2025

Description

This PR fixes the primary storage details display when the uuid has different pattern (eg. for pools with SolidFireShared provider).

Fixes #12305

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?

Able to see the primary storage details page for SolidFireShared pool in the UI (Infrastructure -> Primary storage and Click on the primary storage).

Also, to reproduce/test, you can update the uuid of any of the existing pool to ' /iqn.2010-01.com.solidfire:3p53.test-001.007/0' and access the primary storage details from the UI.

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

@sureshanaparti
Copy link
Contributor Author

@blueorangutan ui

@blueorangutan
Copy link

@sureshanaparti a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the primary storage details page display issue when UUIDs contain special characters (such as colons in SolidFireShared provider pools) by properly encoding datastore IDs in router paths using encodeURIComponent.

  • Applies URL encoding to storage pool and image store IDs in router links
  • Ensures consistent encoding across multiple Vue components
  • Fixes navigation issues for storage pools with non-standard UUID patterns

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ui/src/views/storage/SnapshotZones.vue Encodes datastoreid in router links for both primary storage pools and image stores
ui/src/views/image/TemplateZones.vue Encodes datastoreId when linking to storage pools from template zones
ui/src/views/image/IsoZones.vue Encodes datastoreId when linking to storage pools from ISO zones
ui/src/components/view/VolumesTab.vue Encodes storageid in router links from volumes table
ui/src/components/view/ListView.vue Encodes both record.id and storageid in router links across list views
ui/src/components/view/InfoCard.vue Encodes storageid in both route resolution check and router link generation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.23%. Comparing base (47a6ac8) to head (7dd7402).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #12307      +/-   ##
============================================
- Coverage     16.23%   16.23%   -0.01%     
+ Complexity    13379    13377       -2     
============================================
  Files          5657     5657              
  Lines        498865   498865              
  Branches      60545    60545              
============================================
- Hits          81007    80992      -15     
- Misses       408821   408842      +21     
+ Partials       9037     9031       -6     
Flag Coverage Δ
uitests 4.00% <ø> (ø)
unittests 17.09% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/12307 (QA-JID-832)

@DaanHoogland DaanHoogland changed the title [UI] Fix primary storage details display when the uuid has different pattern (eg. for pools with SolidFireShared provider) [UI] Fix primary storage details display when the uuid has divergent pattern Dec 19, 2025
Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@vishesh92
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 16105

@sureshanaparti sureshanaparti force-pushed the ui-primary-storage-uuid-issue branch from fa48749 to 7dd7402 Compare December 22, 2025 05:46
@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16123

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Primary storage details not shown for the storage created with provider 'SolidFireShared', displays 404 error

4 participants