From 5966a11f7e8450aac2fb4128abab5b7a9f9c107c Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 24 Mar 2026 22:32:09 +0200 Subject: [PATCH] fix(rgi): download via user's eTerra browser session (not server-side) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Server credentials can list RGI applications and docs but can't download files (confirmOnView returns false — only the current actor/deponent has download permission). Download now opens the eTerra URL directly in the user's browser, which uses their existing eTerra session cookie. Flow: 1. Hidden iframe calls confirmOnView 2. After 500ms, opens downloadFile URL in new tab Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/(modules)/rgi-test/page.tsx | 31 ++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/src/app/(modules)/rgi-test/page.tsx b/src/app/(modules)/rgi-test/page.tsx index 4edc431..7173a63 100644 --- a/src/app/(modules)/rgi-test/page.tsx +++ b/src/app/(modules)/rgi-test/page.tsx @@ -294,16 +294,33 @@ function IssuedDocsPanel({ - + + ))}