insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Spaces in a query parameter are not taken into account

Open amanfromfrance opened this issue 1 year ago • 1 comments

Expected Behavior

When typing a string that contains spaces as the value of a query parameter, it is expected that the string is exactly what has been typed in.

For example, if the query parameter is used to pass a geographical address to the API method and I type the following address:

Rue de la Rigourdière, 35510 Cesson-Sévigné

Then it is expected that the value of the query parameter is this address:

image

Actual Behavior

However it is not the current behaviour: spaces are not taken into account and the query parameter value looks like the print screen below after typing all the characters on the keyboard:

image

One has to either go back/up into the string using the mouse pointer and/or using the backspace key multiple times in order to make Insomnia accept one single space. Which is pretty annoying.

This behaviour appeared recently but could be observed at least in the previous release.

Reproduction Steps

  1. Add a query parameter
  2. Type a string that contains spaces
  3. Confirm that all spaces are missing from the string

Is there an existing issue for this?

Additional Information

Insomnia Help information:

  • Version: Insomnia 10.1.0
  • Build date: 16/10/2024
  • OS: Windows_NT x64 10.0.19045
  • Electron: 31.4.0
  • Node: 20.16.0
  • Node ABI: 125
  • V8: 12.6.228.30-electron.0
  • Architecture: x64

Windows System information:

  • Edition: Windows 10 Entreprise
  • Version: 22H2
  • Installed: ‎05/‎05/‎2022
  • Build: 19045.4894
  • Windows Feature Experience Pack 1000.19060.1000.0

Insomnia Version

10.1.0

What operating system are you using?

Windows

Operating System Version

Windows_NT x64 10.0.19045

Installation method

Download from insomnia.rest

Last Known Working Insomnia version

No response

amanfromfrance avatar Oct 17 '24 06:10 amanfromfrance

I'm facing the same issue after update. This is a serious bug which is hampering much. Please fix the issue.

Shahriar-Sazid avatar Oct 19 '24 00:10 Shahriar-Sazid

Here same, OS: Manjaro Linux x86_64, GNOME 47.2. Insomnia version: 10.2.0

brunogabriel avatar Dec 09 '24 21:12 brunogabriel

Still here on arch / Endevouros with KDE Plasma

FlorianEagox avatar Dec 10 '24 00:12 FlorianEagox

It seems related to #7739

notjaywu avatar Dec 25 '24 07:12 notjaywu

Same behaviour for body>Multipart

Image

Every time I need a "space" I have to copy and paste it from another place 🤦

How could it be possible that a problem like this remain open for over a 6 months!?

camacici avatar Apr 02 '25 09:04 camacici

Version 11.0.2, Windows x64, also happening to me. This is incredibly frustrating, spaces just get eaten. I can sometimes make it allow me to enter a space by clicking on the UI elements first, but entering in any query parameters that include spaces is very annoying.

jmyoung avatar Apr 15 '25 22:04 jmyoung

I'm glad I'm not the only one having this issue... and at the same time it's also sad to see that more than 6 months later it hasn't been solved.

But at least it's been acknowledged as now the status is set to verified, that's a good start!

amanfromfrance avatar Apr 16 '25 05:04 amanfromfrance

Thanks for the reporting. We are looking into this issue. For now, you can use Bulk Edit as a workaround.

Image Image

notjaywu avatar Apr 17 '25 06:04 notjaywu

Thanks @notjaywu

In Body > Form Data/Multipart there isn't the "Bulk edit" functionality. I've checked the version, it's 11.0.2, the lastest.

Image

camacici avatar Apr 17 '25 07:04 camacici

This issue stems from a bug in react-aria. I've submitted an issue to them, and I'm looking for a workaround to solve it. https://github.com/adobe/react-spectrum/issues/8104

yaoweiprc avatar Apr 17 '25 09:04 yaoweiprc