diff --git a/troubleshooting/251014_skill-rag-file_sshfs_allow_other_해결.md b/troubleshooting/251014_skill-rag-file_sshfs_allow_other_해결.md index b273f86..6828266 100644 --- a/troubleshooting/251014_skill-rag-file_sshfs_allow_other_해결.md +++ b/troubleshooting/251014_skill-rag-file_sshfs_allow_other_해결.md @@ -185,13 +185,15 @@ volumes: - `file_hash` (64자) + `_` + URL인코딩된 한글 파일명 → 150자 초과 - SSHFS 파일시스템의 파일명 길이 제한 -**해결 방안**: +**해결 방안** (커밋 dfe6978): ```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"{document.id}{file_ext}") +# 변경 후 (upload.py:73-87, 106-107) +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`로 고유성 보장 - Slack Lists 업로드 시 DB에서 원본명 조회하여 title 사용 -**테스트**: +**재현 테스트**: ```bash # 긴 파일명 쓰기 실패 재현 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 ``` -**영향 범위**: -- skill-rag-file/app/api/upload.py:80-83 수정 필요 -- coldmail workflow PDF 첨부파일 처리 재테스트 필요 +**구현 완료** (커밋 dfe6978): +- ✅ skill-rag-file/app/api/upload.py:73-87,106-107 수정 완료 +- ✅ import uuid 추가 (upload.py:5) +- ✅ coldmail workflow PDF 첨부파일 재테스트 대기 ---