dmwm / das2go

Go implementation of Data Aggregation System (DAS) for CMS experiment
MIT License
2 stars 3 forks source link

Sanitize dataset name before passing it to the ReqMgr2 REST APIs #28

Closed amaltaro closed 3 years ago

amaltaro commented 4 years ago

Valentin, as discussed in this issue: https://github.com/dmwm/das2go/issues/27 we should sanitize the user data before making a call to the reqmgr2 REST APIs.

For instance, if you are requesting ReqMgr2 data, provided an input or output dataset, you need to make sure that the user provided a valid dataset name (not a block, not a LFN, not any other string not matching standard lexicon).