-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ParamValidationError for invalid bucket name when Config.parameter_validation is False #3234
Comments
Thanks for reaching out. This came up before in the Boto3 repo: boto/boto3#2891 As mentioned there:
|
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
How do we disable bucket name validation then? Our Ceph buckets are of the form "x:y" and we currently have to disable the checks by doing: >>> from botocore.handlers import validate_bucket_name
>>> client.meta.events.unregister("before-parameter-build.s3", validate_bucket_name) but this can't be done if we are using s3fs where the client object is internal and whose creation is deferred until needed. See fsspec/s3fs#893 |
Converting to a feature request — not sure if there's a good workaround for third-party use cases here. |
Describe the bug
Setting
parameter_validation=False
in botocore.config.Config does not disable validation of bucket names.Expected Behavior
expected boto to issue the request with the given bucket name
Current Behavior
client.create_bucket(Bucket='test;bucket')
raisesbotocore.exceptions.ParamValidationError
:Reproduction Steps
Possible Solution
avoid calling
validate_bucket_name()
whenConfig.parameter_validation
is FalseAdditional Information/Context
testing against s3-compatible Ceph server which optionally supports 'relaxed' bucket naming requirements
SDK version used
1.34.153
Environment details (OS name and version, etc.)
Fedora 40, python 3.12
The text was updated successfully, but these errors were encountered: