]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Difference in "path" value observed when rgw user level export created... 68541/head
authorDnyaneshwari Talwekar <dtalwekar@li-4c4c4544-0038-3510-8056-b5c04f473234.ibm.com>
Wed, 22 Apr 2026 09:50:18 +0000 (15:20 +0530)
committerDnyaneshwari Talwekar <dtalwekar@li-4c4c4544-0038-3510-8056-b5c04f473234.ibm.com>
Wed, 22 Apr 2026 12:32:00 +0000 (18:02 +0530)
Fixes: https://tracker.ceph.com/issues/75425
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/models/nfs.fsal.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.ts

index cbdc44f3ca8c2c8fd67dbacb5ac6b05cca71b209..c8755e00dec5eb5d6a35a04933ee8b9f691c1ed5 100644 (file)
@@ -1,3 +1,5 @@
+export const RGW_USER_EXPORT_PATH = '/';
+
 export enum SUPPORTED_FSAL {
   CEPH = 'CEPH',
   RGW = 'RGW'
index 57458174dac60b984d96498978302c3377fd599f..dee02d762c59b32d0de64264187e98babcf64d73 100644 (file)
@@ -12,7 +12,7 @@ import _ from 'lodash';
 import { forkJoin, Observable, of } from 'rxjs';
 import { catchError, debounceTime, distinctUntilChanged, map, mergeMap } from 'rxjs/operators';
 
-import { SUPPORTED_FSAL } from '~/app/ceph/nfs/models/nfs.fsal';
+import { RGW_USER_EXPORT_PATH, SUPPORTED_FSAL } from '~/app/ceph/nfs/models/nfs.fsal';
 import { Directory, NfsService } from '~/app/shared/api/nfs.service';
 import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
 import { RgwSiteService } from '~/app/shared/api/rgw-site.service';
@@ -657,7 +657,7 @@ export class NfsFormComponent extends CdForm implements OnInit {
       if (requestModel.rgw_export_type === 'bucket') {
         delete requestModel.fsal.user_id;
       } else {
-        requestModel.path = '';
+        requestModel.path = RGW_USER_EXPORT_PATH;
       }
     } else {
       delete requestModel.fsal.user_id;
index 42934a3d62592756596abaca3fdbdebcd67eba2f..2bf3825bdd7b47d52e2d7a0bcc70c8744bfe783b 100644 (file)
@@ -23,7 +23,7 @@ import { AuthStorageService } from '~/app/shared/services/auth-storage.service';
 import { TaskListService } from '~/app/shared/services/task-list.service';
 import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';
 import { getFsalFromRoute, getPathfromFsal } from '../utils';
-import { SUPPORTED_FSAL } from '../models/nfs.fsal';
+import { RGW_USER_EXPORT_PATH, SUPPORTED_FSAL } from '../models/nfs.fsal';
 import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
 import { DeletionImpact } from '~/app/shared/enum/delete-confirmation-modal-impact.enum';
 
@@ -113,7 +113,9 @@ export class NfsListComponent extends ListWithDetails implements OnInit, OnDestr
         `/${prefix}/nfs/edit/${getNfsUri()}`,
         {
           rgw_export_type:
-            this.fsal === SUPPORTED_FSAL.RGW && !_.isEmpty(this.selection?.first()?.path)
+            this.fsal === SUPPORTED_FSAL.RGW &&
+            !_.isEmpty(this.selection?.first()?.path) &&
+            this.selection?.first()?.path !== RGW_USER_EXPORT_PATH
               ? RgwExportType.BUCKET
               : RgwExportType.USER
         }