From 9e04b8370702ac229e33651907247c586157fb17 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 14 Oct 2025 23:41:39 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20SSHFS=20=EA=B8=B4=20=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EB=AA=85=20=ED=95=B4=EA=B2=B0=20=EB=B0=A9=EC=95=88=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20=EC=99=84=EB=A3=8C=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - skill-rag-file 커밋 dfe6978 반영 - upload.py 수정 완료 표시 - coldmail workflow 재테스트 대기 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- ...skill-rag-file_sshfs_allow_other_해결.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) 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 첨부파일 재테스트 대기 ---