Skip to content

fix (DMS): add getFileDetailsPublic to read_methods - #9002

Open
arrabito wants to merge 1 commit into
DIRACGrid:integrationfrom
arrabito:fix_getFileUserMetadataBulk
Open

arrabito wants to merge 1 commit into
DIRACGrid:integrationfrom
arrabito:fix_getFileUserMetadataBulk

Conversation

@arrabito

@arrabito arrabito commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

*DMS
FIX: add getFileDetailsPublic to read_methods in SecurityManagerBase and VOMSSecurityManager

@arrabito

arrabito commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

When using the newly introduced getFileUserMetadataBulk method we've got the following error:

│ 2026-12-04T09:35:50,395178Z DataManagement/FileCatalog [140623198774848] DEBUG: RPC to export_getFileUserMetadataBulk                                                                                                                   │
│ 2026-12-04T09:35:50,395380Z DataManagement/FileCatalog [140623198774848] NOTICE: Returning response ([::ffff:10.244.0.116]:56526)[dpps_group:test-user] (0.04 secs) ERROR: Operation type not known                                     │
│   File "/opt/dirac/lib/python3.12/threading.py", line 1032, in _bootstrap                                                                                                                                                               │
│     self._bootstrap_inner()                                                                                                                                                                                                             │
│   File "/opt/dirac/lib/python3.12/threading.py", line 1075, in _bootstrap_inner                                                                                                                                                         │
│     self.run()                                                                                                                                                                                                                          │
│   File "/opt/dirac/lib/python3.12/threading.py", line 1012, in run                                                                                                                                                                      │
│     self._target(*self._args, **self._kwargs)                                                                                                                                                                                           │
│   File "/opt/dirac/lib/python3.12/concurrent/futures/thread.py", line 93, in _worker                                                                                                                                                    │
│     work_item.run()                                                                                                                                                                                                                     │
│   File "/opt/dirac/lib/python3.12/concurrent/futures/thread.py", line 59, in run                                                                                                                                                        │
│     result = self.fn(*self.args, **self.kwargs)                                                                                                
│ 2026-12-04T09:35:50,395178Z DataManagement/FileCatalog [140623198774848] DEBUG: RPC to export_getFileUserMetadataBulk                                                                                                                   │
│ 2026-12-04T09:35:50,395380Z DataManagement/FileCatalog [140623198774848] NOTICE: Returning response ([::ffff:10.244.0.116]:56526)[dpps_group:test-user] (0.04 secs) ERROR: Operation type not known                                     │
│   File "/opt/dirac/lib/python3.12/threading.py", line 1032, in _bootstrap                                                                                                                                                               │
│     self._bootstrap_inner()                                                                                                                                                                                                             │
│   File "/opt/dirac/lib/python3.12/threading.py", line 1075, in _bootstrap_inner                                                                                                                                                         │
│     self.run()                                                                                                                                                                                                                          │
│   File "/opt/dirac/lib/python3.12/threading.py", line 1012, in run                                                                                                                                                                      │
│     self._target(*self._args, **self._kwargs)                                                                                                                                                                                           │
│   File "/opt/dirac/lib/python3.12/concurrent/futures/thread.py", line 93, in _worker                                                                                                                                                    │
│     work_item.run()                                                                                                                                                                                                                     │
│   File "/opt/dirac/lib/python3.12/concurrent/futures/thread.py", line 59, in run                                                                                                                                                        │
│     result = self.fn(*self.args, **self.kwargs)                                                                                                                                                                                         │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/private/Service.py", line 343, in _processInThread                                                                                                                     │
│     result = self._processProposal(trid, proposalTuple, handlerObj)                                                                                                                                                                     │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/private/Service.py", line 530, in _processProposal                                                                                                                     │
│     result = self._executeAction(trid, proposalTuple, handlerObj)                                                                                                                                                                       │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/private/Service.py", line 550, in _executeAction                                                                                                                       │
│     response = handlerObj._rh_executeAction(proposalTuple)                                                                                                                                                                              │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 121, in _rh_executeAction                                                                                                                     │
│     retVal = self.__doRPC(actionTuple[1])                                                                                                                                                                                               │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 252, in __doRPC                                                                                                                               │
│     return self.__RPCCallFunction(method, args)                                                                                                                                                                                         │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 293, in __RPCCallFunction                                                                                                                     │
│     uReturnValue = oMethod(*args)                                                                                                                                                                                                       │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py", line 475, in export_getFileUserMetadataBulk                                                                                  │
│     res = self.fileCatalogDB.getFileDetailsPublic(lfns, credDict)                                                                                                                                                                       │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/DB/FileCatalogDB.py", line 778, in getFileDetailsPublic                                                                                                      │
│     res = self._checkPathPermissions("getFileDetailsPublic", lfns, credDict)                                                                                                                                                            │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/DB/FileCatalogDB.py", line 1205, in _checkPathPermissions                                                                                                    │
│     res = self.securityManager.hasAccess(operation, list(lfns), credDict)                                                                                                                                                               │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/DB/FileCatalogComponents/SecurityManager/SecurityManagerBase.py", line 75, in hasAccess                                                                      │
│     return S_ERROR("Operation type not known")                                                                                           │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/private/Service.py", line 343, in _processInThread                                                                                                                     │
│     result = self._processProposal(trid, proposalTuple, handlerObj)                                                                                                                                                                     │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/private/Service.py", line 530, in _processProposal                                                                                                                     │
│     result = self._executeAction(trid, proposalTuple, handlerObj)                                                                                                                                                                       │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/private/Service.py", line 550, in _executeAction                                                                                                                       │
│     response = handlerObj._rh_executeAction(proposalTuple)                                                                                                                                                                              │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 121, in _rh_executeAction                                                                                                                     │
│     retVal = self.__doRPC(actionTuple[1])                                                                                                                                                                                               │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 252, in __doRPC                                                                                                                               │
│     return self.__RPCCallFunction(method, args)                                                                                                                                                                                         │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/Core/DISET/RequestHandler.py", line 293, in __RPCCallFunction                                                                                                                     │
│     uReturnValue = oMethod(*args)                                                                                                                                                                                                       │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py", line 475, in export_getFileUserMetadataBulk                                                                                  │
│     res = self.fileCatalogDB.getFileDetailsPublic(lfns, credDict)                                                                                                                                                                       │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/DB/FileCatalogDB.py", line 778, in getFileDetailsPublic                                                                                                      │
│     res = self._checkPathPermissions("getFileDetailsPublic", lfns, credDict)                                                                                                                                                            │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/DB/FileCatalogDB.py", line 1205, in _checkPathPermissions                                                                                                    │
│     res = self.securityManager.hasAccess(operation, list(lfns), credDict)                                                                                                                                                               │
│   File "/opt/dirac/lib/python3.12/site-packages/DIRAC/DataManagementSystem/DB/FileCatalogComponents/SecurityManager/SecurityManagerBase.py", line 75, in hasAccess                                                                      │
│     return S_ERROR("Operation type not known")  

which indicates the getFileDetailsPublic missing in the read_methods.

@fstagni
fstagni force-pushed the fix_getFileUserMetadataBulk branch from da7002b to 735e5fc Compare December 4, 2026 16:28

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant