[PR #5070] [MERGED] fix(desktop): extend file-write permissions #5045

Closed
opened 2026-03-17 02:31:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/5070
Author: @CuriousCorrelation
Created: 5/13/2025
Status: Merged
Merged: 5/21/2025
Merged by: @AndrewBastin

Base: nextHead: fix-desktop-bin-file-permissions


📝 Commits (1)

  • 286671d fix(desktop): extend file-write permissions

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/hoppscotch-desktop/src-tauri/capabilities/default.json (+1 -0)

📄 Description

When trying to save non-text files, i.e. binary, etc. the call fails with Command plugin:fs|write_file not allowed by ACL.

This is due to capabilities config only allowing permission for writing text files, and none other.

This is part of the new Tauri v2 permissions framework.

Closes HFE-874
Closes #4934

Notes to reviewers:

Try something like GET https://www.filesampleshub.com/download/document/doc/sample2.doc.

Once there's a response, click "Download file" -> select a location -> save the file.

The download should fail on older version, and should successfully save response with this patch.


🔄 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/hoppscotch/hoppscotch/pull/5070 **Author:** [@CuriousCorrelation](https://github.com/CuriousCorrelation) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/21/2025 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `next` ← **Head:** `fix-desktop-bin-file-permissions` --- ### 📝 Commits (1) - [`286671d`](https://github.com/hoppscotch/hoppscotch/commit/286671dd325f2205a48691e8889e729d8af7c195) fix(desktop): extend file-write permissions ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-desktop/src-tauri/capabilities/default.json` (+1 -0) </details> ### 📄 Description When trying to save non-text files, i.e. binary, etc. the call fails with `Command plugin:fs|write_file not allowed by ACL`. This is due to capabilities config only allowing permission for writing text files, and none other. This is part of the new Tauri v2 permissions framework. Closes HFE-874 Closes #4934 #### Notes to reviewers: Try something like GET https://www.filesampleshub.com/download/document/doc/sample2.doc. Once there's a response, click "Download file" -> select a location -> save the file. The download should fail on older version, and should successfully save response with this patch. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:31:38 +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/hoppscotch#5045
No description provided.