insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Template tag syntax in Basic Auth password fails to render template

Open oedo808 opened this issue 4 years ago • 2 comments

Expected Behavior

Using a randomly generated password that results in syntax similar to below should work: {%} Or in reality a password generated like this example: <R+v?gQ9tqOX?x1$TTs{%[%-ZS[^o}U1HnrG7Jwu-%whf5

Actual Behavior

Discovered by accident using a randomly generated password but it appears to be rendering the password value as a template tag name, with similar syntax to this test. Tested and received the same in Windows 11 and macOS Big Sur 11.6 image

Reproduction Steps

  1. Create a new GET request, or modify an existing one
  2. Choose Basic Auth for authorization
  3. Enter any URL, user, and a password with {%}, alone or inside an example password and send the request

The important part of the password is {% with no space between (to match the tag template syntax I think) as it will result in the same error as long as there is a closing curly brace. Sending a request without the closing curly brace results in TypeError: Cannot read property 'type' of null

Insomnia_cYyGnthx1S

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2022.1.1

What operating system are you using?

macOS

Operating System Version

macOS Big Sur 11.6, Windows 11 22000.493

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

oedo808 avatar Mar 11 '22 15:03 oedo808

Hi @oedo808,

Have you tried this on our newest release, available here: https://github.com/Kong/insomnia/releases/tag/core%402022.5.0?

kreosus avatar Aug 08 '22 20:08 kreosus

@kreosus, yes I have and it works. Thanks!

oedo808 avatar Aug 09 '22 18:08 oedo808