ragflow/rag
Song Fuchang 8362ab405c
Fix: don't modify S3 file name when not using prefix_path (#7152)
### What problem does this PR solve?

Hello, I encountered a problem when trying to use a S3 backend
(seaweedfs) for storage in RAGFlow: when calling
`STORAGE_IMPL.get("bucket", "key")`, the actual request sent to S3 is
`bucket/bucket/key`, causing a `NoSuchKey` error.

I compared the code in `s3_conn.py` to `minio_conn.py` and
`oss_conn.py`, then decided to remove the `else` branch in
`use_prefix_path` method, and it works. I didn't configure `prefix_path`
or `bucket` in `s3` section of the `service_conf.yaml`.

I think this is a bug, but not sure.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
2025-04-21 11:55:50 +08:00
..
app fix bug chunking:expected string or bytes-like object (#7116) 2025-04-18 14:42:36 +08:00
llm Fix: local variable referenced before assignment (#6909) 2025-04-09 20:29:12 +08:00
nlp Fix: incorrect total chunks count in retrieval function after similarity filtering (#6741) (#6932) 2025-04-11 12:31:36 +08:00
res Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
svr feat: Recover pending tasks while pod restart. (#7073) 2025-04-19 16:18:51 +08:00
utils Fix: don't modify S3 file name when not using prefix_path (#7152) 2025-04-21 11:55:50 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
prompts.py Refa. (#7022) 2025-04-15 10:20:33 +08:00
raptor.py fix(nursery): Fix Closure Trap Issues in Trio Concurrent Tasks (#7106) 2025-04-18 18:00:20 +08:00
settings.py Fix: optimize setting config initialization to resolve Minio initialization error (#6282) 2025-03-20 10:45:40 +08:00