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

Request (.bru file) not loaded if there's a space in a query param name #3942

Open
2 tasks done
Shotster opened this issue Feb 4, 2025 · 0 comments · May be fixed by #2898, #3045 or #3178
Open
2 tasks done

Request (.bru file) not loaded if there's a space in a query param name #3942

Shotster opened this issue Feb 4, 2025 · 0 comments · May be fixed by #2898, #3045 or #3178
Assignees
Labels
bug Something isn't working

Comments

@Shotster
Copy link

Shotster commented Feb 4, 2025

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

If there's a space in the name of any query string parameter, the .bru file doesn't load, and the request doesn't appear in the UI.

  1. Save the attached .bru contents to a file inside a bruno directory and relaunch the app. Note that the request is not loaded.

  2. Using an external editor, change the space between sort descending to an underscore and relaunch the bruno app. Note that the request now appears.

Side Note

Why are QS params stored in 2 different places in the file? Why not store them in one place and then either encode or decode them at load time?

.bru file to reproduce the bug

meta {
  name: Test Request
  type: http
  seq: 1
}

get {
  url: https://mydomain.com?sort%20descending=yes%20affirmative
  body: none
  auth: none
}

params:query {
  sort descending: yes affirmative
}

Screenshots/Live demo link

There's nothing to show because the GET request doesn't appear in the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment