From 459620170ab474991e6e7bdfc01140f0046bb5f4 Mon Sep 17 00:00:00 2001 From: Chirag Chandrashekhar Date: Tue, 10 Feb 2026 17:21:51 +0530 Subject: [PATCH] fix: validate folder and file names in SaveTransientRequest component (#7060) - Added validation for folder and file names to ensure they are not empty and conform to naming rules. - Display error messages using toast notifications for invalid names. --- .../bruno-app/src/components/SaveTransientRequest/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/bruno-app/src/components/SaveTransientRequest/index.js b/packages/bruno-app/src/components/SaveTransientRequest/index.js index 580e815d1..6617ed7ec 100644 --- a/packages/bruno-app/src/components/SaveTransientRequest/index.js +++ b/packages/bruno-app/src/components/SaveTransientRequest/index.js @@ -125,6 +125,11 @@ const SaveTransientRequest = ({ item: itemProp, collection: collectionProp, isOp return; } + if (!validateName(trimmedName)) { + toast.error(validateNameError(trimmedName)); + return; + } + const sanitizedFilename = sanitizeName(trimmedName); const itemToSave = latestItem.draft ? { ...latestItem, ...latestItem.draft } : { ...latestItem };