ragflow/rag/utils
Syed Shahmeer Ali ddaed541ff
Fix S3 client initialization with signature_version and addressing_style (#9911)
### What problem does this PR solve?

Moved `signature_version` and `addressing_style` parameters to a
`Config` object from `botocore.config`
`signature_version` is now passed as `Config(signature_version='v4')`
`addressing_style` is now passed as `Config(s3={'addressing_style':
'path'})`
The `Config` object is then passed to `boto3.client()` via the `config`
parameter



## Changes Made
- Modified `rag/utils/s3_conn.py` in the `__open__()` method
- Updated parameter handling logic to use `config_kwargs` dictionary
- Maintained backward compatibility for configurations without these
parameters



## Related Issue
Fixes #9910


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Syed Shahmeer Ali <ashahmeer73@gmail.com>
2025-09-05 09:58:30 +08:00
..
__init__.py
azure_sas_conn.py
azure_spn_conn.py
doc_store_conn.py
es_conn.py Fix: add ES re-connect once request timeout. (#8678) 2025-07-07 09:22:25 +08:00
infinity_conn.py Fix kb isolation infinity conn (#9913) 2025-09-04 21:14:56 +08:00
mcp_tool_call_conn.py Feat: init dataflow. (#9791) 2025-08-28 18:40:32 +08:00
minio_conn.py
opendal_conn.py fix: add missing env vars and default values of service_conf.yaml (#9289) 2025-08-07 10:41:05 +08:00
opensearch_conn.py Bug fix: OpenSearch chunk update some api error (#9032) 2025-07-25 09:57:24 +08:00
oss_conn.py
redis_conn.py Fix typo (#9766) 2025-08-27 18:56:40 +08:00
s3_conn.py Fix S3 client initialization with signature_version and addressing_style (#9911) 2025-09-05 09:58:30 +08:00
storage_factory.py
tavily_conn.py