Skip to content
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

Use quote_plus for rule client #3135

Closed
ericvaandering opened this issue Nov 26, 2019 · 1 comment
Closed

Use quote_plus for rule client #3135

ericvaandering opened this issue Nov 26, 2019 · 1 comment
Assignees

Comments

@ericvaandering
Copy link
Contributor

Motivation

rucio list-rules-history "cms:/ttZJets_13TeV_madgraphMLM/RunIISummer16NanoAODv5-Nano1June2019_102X_mcRun2_asymptotic_v7-v1/NANOAODSIM#8c635224-3900-4ad1-83cf-d1036546ae63"
2019-11-26 17:16:16,670 ERROR expected string or buffer

Modification

Martin Barisits 10:29 AM
I think this is due to missing quote_plus on

path = self.RULE_BASEURL + '/' + scope + '/' + name + '/history'

Maybe you can try to do this similar to

def add_did(self, scope, name, type, statuses=None, meta=None, rules=None, lifetime=None, dids=None, rse=None):

quote_plus around scope and name

@ericvaandering
Copy link
Contributor Author

We have not seen problems with slashes in a long time

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

No branches or pull requests

2 participants