From 9beaabc8d1e0ac3a5c54c8202d3c690577bdbd39 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 15 May 2025 01:32:52 +0000 Subject: (김준회) drmUtils 안내 로그 추가 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drm/drmUtils.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'components') diff --git a/components/drm/drmUtils.ts b/components/drm/drmUtils.ts index df58f0bd..e0343535 100644 --- a/components/drm/drmUtils.ts +++ b/components/drm/drmUtils.ts @@ -4,7 +4,6 @@ * 2. 복호화 서버액션을 제공한다. * * decryptWithServerAction(file): 서버액션을 사용하여 복호화한 파일을 응답하는 함수 - * decryptWithRoute(file): 라우트를 사용하여 복호화한 파일을 응답하는 함수 (클라이언트용 함수는 drmClientUtils.ts에 구현됨) * */ @@ -50,14 +49,18 @@ export async function decryptWithServerAction(file: File): Promise fileName: file.name, fileSize: file.size, fileType: file.type, - remark: 'DTS 개발 서버라면 에러 발생이 정상입니다. (DRM 백엔드 없어서 CONNECTION_REJECTED 발생) 에러 발생시 원본 arrayBuffer를 그대로 리턴합니다.', + remark: ` + [정상 동작 안내] + DTS 개발 서버나 로컬 환경에서는 에러가 발생하는 것이 정상적인 동작입니다. + 이 경우 원본 파일의 arrayBuffer가 그대로 반환됩니다. + + [발생 가능한 에러 케이스] + 1. DRM 백엔드 서버가 없는 경우 - CONNECTION_REJECTED 발생 + 2. DRM 중앙 서버와 통신 불가한 경우 - PARENT CERT 속성 추가 불가로 인한 백엔드측 500 에러 + `, error }); return await file.arrayBuffer(); } } - -// decryptWithRoute 함수는 클라이언트용이므로 drmClientUtils.ts로 이동함 -// 클라이언트에서는 'components/drm/drmClientUtils'의 decryptWithRoute를 사용할 것 - -- cgit v1.2.3