feat: 문서 상세 조회 및 HWP/HWPX 업로드 지원 - #91
Merged
Merged
Conversation
…il-hwp # Conflicts: # src/test/java/com/fowoco/server/worker/WorkerDocumentSecurityIntegrationTest.java
chaeliki
marked this pull request as ready for review
August 6, 2026 13:44
Contributor
|
파일을 업로드해서 저장하고 file_id를 발급한다
이제 업로드 후 초안 작성을 해주다보니 검증방식에서 서버에서와 아래랑 위랑 차이가 있습니다
FileService에 .hwpx 전용 분기를 추가하고, HwpSignatureValidator와 같은 위치에 HwpxSignatureValidator를 만들어 다음 내용을 검사하면 좋을 듯 합니다
+) 위 검증 방식이 생기다보니 415 거절 테스트도 추가 될 것 같아요 이 작업을 한 후에 나중에 " 데모에서 업로드 후 자동 편집·변환까지 보여줄 경우 " 에 대한 후속작업이 편해질 것 같습니다..! 물론 지금 바로 승인해도 업로드 기능에는 지장이 없기에 위 내용도 같이 후속작업으로 하면 되기에 승인하겠습니다 !! 저는 이슈 새로 파서 같이 후속작업으로 넘기는걸 추천하고 싶습니다 1! |
hywznn
approved these changes
Aug 6, 2026
hywznn
reviewed
Aug 6, 2026
This was referenced Aug 7, 2026
10 tasks
10 tasks
3 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
Closes #80
fowoco/client PR #174, #228에서 fowoco/server의 통합 문서함 API(#13)를
실제 화면에 연동하며 발견된 문제들을 해결합니다.
GET /documents 응답에 version이 없어 DocumentDetailPage의 확인/반려
버튼이 실제 API를 호출하지 못하고 있었고, 단건 조회 API가 없어 프론트가
전체 목록에서 직접 찾아야 했습니다. 또한 POST /files가 HWP/HWPX를
지원하지 않아 관련 업로드 UI(#158)가 데모 상태로 남아있었습니다.
완료된 범위
FileHeader 스트림의 signature("HWP Document File")를 직접 검증
(Apache POI POIFS 사용)
검증
OLE 아닌 파일, 빈 파일)
실제 업로드로 확인
참고