-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
bugSomething isn't workingSomething isn't workingneed testingNeeds to be tested before merging onto productionNeeds to be tested before merging onto production
Description
Is there an existing issue for this?
N/A
Current behavior
Switching Environments during an active request will completely overwrite all (both current and initial) environment variable values with the values from the Environment that has been selected before. This is a critical data loss issue - user data in environments can be accidentally corrupted by switching environments at the wrong time.
Expected Behavior
Environment variable values should never be updated during request execution.
Steps to reproduce
- Create two Environments A and B with the same variable
test-variableand set it toABCin Environment A andDEFin Environment B.
Here is how it looks in the Database
- Select Environment B.
- Now send some kind of request that uses the variable from the environment and does not immediately respond. To test I have sent a simple GET request to koreanbuilds.net as it gave me 5 seconds during which I switched to Environment A.
Now check the contents of Environment A, test-variable is now overwritten with DEF
We can confirm the same by looking into the database
Hoppscotch Version
Server: Self hosted 2025.6.1
Client: MacOS Desktop 2025.6.1
Interceptor
N/A
Browsers Affected
N/A
Operating System
MacOS
Additional Information
N/A
botondtalos, arber-ma, ahadjikrastev, ogormans-stack, erdemadacal-ma and 2 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneed testingNeeds to be tested before merging onto productionNeeds to be tested before merging onto production