v4.3.19-25: 탐정 앱 자체 WOPI 호스트로 NextCloud 없이 Collabora 직결
기존 col.applecherry.net Collabora 서버를 재사용하되, NextCloud(WebDAV 업로드/가져오기 왕복) 없이 홈클로 게이트웨이가 직접 WOPI 호스트 역할 수행 (CheckFileInfo/GetFile/PutFile). hwp는 사건 폴더 안에서 odt로 1회 변환 후 그 자리에서 바로 편집 — 타이핑하는 대로 사건 폴더에 즉시 저장되어 별도 "가져오기" 버튼이 필요 없어짐(dtFetchFromNextcloud 제거). config.json에 collabora.baseUrl/publicUrl 추가. Express 5의 res.sendFile 이슈(이미 known) 재발 → createReadStream으로 우회. 실기기(col.applecherry.net + 실제 사건 고소장.odt)로 전체 라운드트립 검증 완료. 부수: 사이드바 사건목록이 빠른조사/법률질문 버튼 늘어나며 눌리는 문제 — 잘 안쓰는 버튼 정리(19개→11개)로 완화 + .dt-cases min-height 안전장치. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -2604,6 +2604,8 @@ app.use((req, _res, next) => {
|
||||
if (req.path === '/api/kakao/webhook') return next();
|
||||
// 카카오 이미지 전송용 임시 공개 링크 — 카카오 서버가 직접 fetch (토큰 자체가 인증)
|
||||
if (req.path.startsWith('/api/kakao/img/')) return next();
|
||||
// Collabora Online이 WOPI 콜백으로 직접 호출 — 세션 쿠키가 없으므로 access_token 자체가 인증
|
||||
if (req.path.startsWith('/api/detective/wopi/')) return next();
|
||||
|
||||
const token = extractAuthToken(req);
|
||||
const session = token ? activeSessions.get(token) : undefined;
|
||||
|
||||
Reference in New Issue
Block a user