8000 `Replicas.get` accepts `schemes` as `str`, but `list_replicas` expects `schemes` as `list` · Issue #7739 · rucio/rucio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replicas.get accepts schemes as str, but list_replicas expects schemes as list #7739

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

Open
rdimaio opened this issue May 22, 2025 · 0 comments

Comments

@rdimaio
Copy link
Contributor
rdimaio commented May 22, 2025

Description

Replicas.get:

- name: schemes
in: query
description: The schemes of the replicas.
schema:
type: string

This breaks when properly type-checked, because it could be str:

for rfile in list_replicas(dids=dids, schemes=schemes, vo=vo):

By contrast, ListReplicas.post accepts schemes as a list:

schemes:
description: A list of schemes to filter the replicas.
type: array
items:
type: string

And this doesn't break when properly type-checked:

for rfile in list_replicas(dids=dids, schemes=schemes,

We should either:

  1. modify the API of Replicas.get so that schemes must be passed as a list, or:
  2. convert the schemes string into a list

Steps to reproduce

NA

Rucio Version

No response

Additional Information

No response

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

1 participant
0