Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double backslash at end of Environment JSON key freezes entire app, corrupts collection #7286

Open
1 task done
j1mmie opened this issue Apr 20, 2024 · 0 comments
Open
1 task done
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@j1mmie
Copy link

j1mmie commented Apr 20, 2024

Expected Behavior

Double-backslash at end of environment JSON key should be valid

Actual Behavior

Double-backslash at end of environment JSON key freezes entire app and corrupts collection

Reproduction Steps

  1. Create a new "Request collection". Name it anything
  2. Click the cog icon near "Base environment"
  3. Enter the following JSON:
{
  "What": "dafuq"
}
  1. Click after the letter t in What to move the cursor there. Type in -\\, resulting in the following JSON:
{
  "What-\\": "dafuq"
}

Note that shortly after typing the two backslashes, the app will freeze

Is there an existing issue for this?

Additional Information

Screencap: https://imgur.com/jD6c4S4

This corrupts the collection. Whenever the collection is loaded again, the app freezes. On macOS, the "unresponsive app" warning dialog shows.

Sometimes "\" alone will not freeze the app. Sometimes there must be a \ somewhere else in the string, or a - immediately before it. I'm not sure what other characters or patterns cause this.

One way to fix it is to manually edit insomnia.Environment.db to remove the backslashes. Then the collection will load just fine

Insomnia Version

8.6.1

What operating system are you using?

macOS

Operating System Version

macOS Sonoma 14.2.1 (23C71)

Installation method

homebrew

Last Known Working Insomnia version

No response

@j1mmie j1mmie added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

1 participant