-
Notifications
You must be signed in to change notification settings - Fork 55
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
Error when trying to upload file with custom name containing slashes #336
Comments
It looks like you are using generic rucio schema: https://github.com/rucio/rucio/blob/master/lib/rucio/common/schema/generic.py#L59 The pattern : cms schema: https://github.com/rucio/rucio/blob/master/lib/rucio/common/schema/cms.py#L55-L63 And you can enable schema as:
You can add your schema using policy package as described in: https://rucio.cern.ch/documentation/operator/policy_packages/ |
What is the reason the default schema is so restrictive? I think for a service like Rucio, it would make more sense to have the defaults be permissive and allow specific restrictions to be applied via policies. It seems a bit weird to me to have a custom policy to allow more filenames. One reason would be unit tests, as the issues show, there were issues with filenames that Rucio allows in principle but not in its default configuration. |
That two large experiments need to allow this also clearly shows that this is a common use case |
In the meantime, we created our policy plugin allowing slashes in the However, uploading fails with the error:
Seeing that the rucio server container has the option "RUCIO_HTTPD_ENCODED_SLASHES", I tried enabling that and now it works. |
While uploading files now works, uploading datasets fails with a strange error:
Although |
Here is a simpler test using the CLI:
|
It seems the reason is that the server uses Why are there two implementations of this? |
With the help of @cserf, I figured out that
Taking the SCOPE_NAME_REGEXP from the
|
So I guess this is about documentation mainly now. Since this is mostly the necessary configuration for getting rucio and dirac to collaborate, it's not really obvious if such a documentation should live in the dirac or the rucio docs. The required rucio configuration could go here and link to the required dirac configuration there? |
I would add it to the Rucio doc and then link to the important parts of the DIRAC doc. @maxnoe if you could add a PR for this, this would be very helpful. I will move the issue to the documentation repo |
Description
Searching around a bit, there are a couple of issues related to lfns containing slashes, but it these seem to be resolved, so I was expecting that this is supported now:
rucio upload
to accept alternate LFNs rucio#377 : explicitly mentions the wish to haverucio upload --name <custom name containing slashes>
However, in a simple test setup, like the integration tests, this does not work.
Steps to reproduce
In the docker based test setup, run:
Rucio Version
Current master, also tested with 33.6 and 34.0
Additional Information
No response
The text was updated successfully, but these errors were encountered: