docs: SSHFS 긴 파일명 해결 방안 구현 완료 반영
- skill-rag-file 커밋 dfe6978 반영 - upload.py 수정 완료 표시 - coldmail workflow 재테스트 대기 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1b6a0b3140
commit
9e04b83707
@ -185,13 +185,15 @@ volumes:
|
|||||||
- `file_hash` (64자) + `_` + URL인코딩된 한글 파일명 → 150자 초과
|
- `file_hash` (64자) + `_` + URL인코딩된 한글 파일명 → 150자 초과
|
||||||
- SSHFS 파일시스템의 파일명 길이 제한
|
- SSHFS 파일시스템의 파일명 길이 제한
|
||||||
|
|
||||||
**해결 방안**:
|
**해결 방안** (커밋 dfe6978):
|
||||||
```python
|
```python
|
||||||
# 변경 전
|
# 변경 전 (upload.py:80-83)
|
||||||
storage_path = os.path.join(storage_dir, f"{file_hash}_{file.filename}")
|
storage_path = os.path.join(storage_dir, f"{file_hash}_{file.filename}")
|
||||||
|
|
||||||
# 변경 후
|
# 변경 후 (upload.py:73-87, 106-107)
|
||||||
storage_path = os.path.join(storage_dir, f"{document.id}{file_ext}")
|
doc_id = uuid.uuid4()
|
||||||
|
storage_path = os.path.join(storage_dir, f"{doc_id}{file_ext}")
|
||||||
|
document = TeamDocument(id=doc_id, ...)
|
||||||
```
|
```
|
||||||
|
|
||||||
**근거**:
|
**근거**:
|
||||||
@ -199,7 +201,7 @@ storage_path = os.path.join(storage_dir, f"{document.id}{file_ext}")
|
|||||||
- 디스크 파일명은 `document_id`로 고유성 보장
|
- 디스크 파일명은 `document_id`로 고유성 보장
|
||||||
- Slack Lists 업로드 시 DB에서 원본명 조회하여 title 사용
|
- Slack Lists 업로드 시 DB에서 원본명 조회하여 title 사용
|
||||||
|
|
||||||
**테스트**:
|
**재현 테스트**:
|
||||||
```bash
|
```bash
|
||||||
# 긴 파일명 쓰기 실패 재현
|
# 긴 파일명 쓰기 실패 재현
|
||||||
docker exec skill-rag-file python3 -c "
|
docker exec skill-rag-file python3 -c "
|
||||||
@ -209,9 +211,10 @@ with open(test_path, 'w') as f: f.write('test')
|
|||||||
# → OSError: [Errno 74] Bad message
|
# → OSError: [Errno 74] Bad message
|
||||||
```
|
```
|
||||||
|
|
||||||
**영향 범위**:
|
**구현 완료** (커밋 dfe6978):
|
||||||
- skill-rag-file/app/api/upload.py:80-83 수정 필요
|
- ✅ skill-rag-file/app/api/upload.py:73-87,106-107 수정 완료
|
||||||
- coldmail workflow PDF 첨부파일 처리 재테스트 필요
|
- ✅ import uuid 추가 (upload.py:5)
|
||||||
|
- ✅ coldmail workflow PDF 첨부파일 재테스트 대기
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user