[PR #1130] [MERGED] fix: disable encrypted pdfs #1413

Closed
opened 2026-02-26 19:33:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1130
Author: @dguyen
Created: 4/30/2024
Status: Merged
Merged: 5/3/2024
Merged by: @dguyen

Base: mainHead: fix/disable-encrypted-pdfs


📝 Commits (6)

📊 Changes

10 files changed (+60 additions, -23 deletions)

View changed files

📝 apps/marketing/src/app/(marketing)/singleplayer/client.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/documents/upload-document.tsx (+15 -6)
📝 apps/web/src/app/(dashboard)/templates/new-template-dialog.tsx (+2 -2)
📝 packages/api/v1/implementation.ts (+2 -2)
📝 packages/ee/server-only/stripe/webhook/on-early-adopters-checkout.ts (+2 -2)
📝 packages/lib/constants/feature-flags.ts (+1 -0)
📝 packages/lib/server-only/document/seal-document.ts (+2 -2)
📝 packages/lib/server-only/document/send-document.tsx (+2 -2)
📝 packages/lib/universal/upload/put-file.ts (+30 -3)
📝 packages/trpc/server/singleplayer-router/router.ts (+2 -2)

📄 Description

Description

Currently if you complete a pending encrypted document, it will prevent the document from being sealed due to the systems inability to decrypt it.

This PR disables uploading any documents that cannot be loaded as a temporary measure.

Note
This is a client side only check

Changes Made

  • Disable uploading documents that cannot be parsed
  • Refactor putFile to putDocumentFile
  • Add a flag as a backup incase something goes wrong

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1130 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 4/30/2024 **Status:** ✅ Merged **Merged:** 5/3/2024 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `fix/disable-encrypted-pdfs` --- ### 📝 Commits (6) - [`541c026`](https://github.com/documenso/documenso/commit/541c026727ecf142c948358a88254f7e69f090e0) fix: disable encrypted pdf uploads - [`aafc61a`](https://github.com/documenso/documenso/commit/aafc61a09bd0c008071f5d6fe89c2c449d9489f5) fix: refactor - [`6f758b4`](https://github.com/documenso/documenso/commit/6f758b4f3ea25278f3b90662a4b6b27001c9b9cd) fix: add error message - [`353a945`](https://github.com/documenso/documenso/commit/353a945755f487c38b02d98f2990a731318d6fd6) fix: refactor - [`1e12e23`](https://github.com/documenso/documenso/commit/1e12e2307ef993468dfb425367dd93a8a7b04f48) fix: add fallback - [`67966dc`](https://github.com/documenso/documenso/commit/67966dc98817f6d1336970f4248333ce050f4e06) Merge branch 'main' into fix/disable-encrypted-pdfs ### 📊 Changes **10 files changed** (+60 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `apps/marketing/src/app/(marketing)/singleplayer/client.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/documents/upload-document.tsx` (+15 -6) 📝 `apps/web/src/app/(dashboard)/templates/new-template-dialog.tsx` (+2 -2) 📝 `packages/api/v1/implementation.ts` (+2 -2) 📝 `packages/ee/server-only/stripe/webhook/on-early-adopters-checkout.ts` (+2 -2) 📝 `packages/lib/constants/feature-flags.ts` (+1 -0) 📝 `packages/lib/server-only/document/seal-document.ts` (+2 -2) 📝 `packages/lib/server-only/document/send-document.tsx` (+2 -2) 📝 `packages/lib/universal/upload/put-file.ts` (+30 -3) 📝 `packages/trpc/server/singleplayer-router/router.ts` (+2 -2) </details> ### 📄 Description ## Description Currently if you complete a pending encrypted document, it will prevent the document from being sealed due to the systems inability to decrypt it. This PR disables uploading any documents that cannot be loaded as a temporary measure. **Note** This is a client side only check ## Changes Made - Disable uploading documents that cannot be parsed - Refactor putFile to putDocumentFile - Add a flag as a backup incase something goes wrong --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:33:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1413
No description provided.