-
Notifications
You must be signed in to change notification settings - Fork 190
[for minor release] Aggregate DataStore Accounting Requests #8714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: integration
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import importlib | ||
| from collections.abc import Sequence | ||
|
|
||
| # imports | ||
|
|
@@ -21,8 +20,6 @@ class ForwardDISET(OperationHandlerBase): | |
|
|
||
| There are fundamental differences in behavior between the forward diset | ||
| for DIPS service and the one for DiracX: | ||
| * dips call will be done with the server certificates and use the delegated DN field | ||
| * diracx call will be done with the credentials setup by request tasks | ||
| * dips call are just RPC call, they do not execute the logic of the client (that is anyway not relied upon for now) | ||
| * diracx calls will effectively call the client entirely. | ||
|
|
||
|
|
@@ -54,19 +51,7 @@ def __call__(self): | |
|
|
||
| # This is the DISET rpcStub | ||
| if isinstance(stub, Sequence): | ||
| # Ensure the forwarded request is done on behalf of the request owner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you remove this code?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because it is useless. In the |
||
| res = getDNForUsername(self.request.Owner) | ||
| if not res["OK"]: | ||
| return res | ||
| stub[0][1]["delegatedDN"] = res["Value"][0] | ||
| stub[0][1]["delegatedGroup"] = self.request.OwnerGroup | ||
|
|
||
| # ForwardDiset is supposed to be used with a host certificate | ||
| useServerCertificate = gConfig.useServerCertificate() | ||
| gConfigurationData.setOptionInCFG("/DIRAC/Security/UseServerCertificate", "true") | ||
| forward = disetExecuteRPCStub(stub) | ||
| if not useServerCertificate: | ||
| gConfigurationData.setOptionInCFG("/DIRAC/Security/UseServerCertificate", "false") | ||
| # DiracX stub | ||
| elif isinstance(stub, dict): | ||
| forward = diracxExecuteRPCStub(stub) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.