Skip to content

Encoded urls are not handled properly #29357

@lgblaumeiser

Description

@lgblaumeiser

Describe the bug
Observed in vault version 1.18.1, not observed with version 1.16.1 where this works as expected

To Reproduce
Steps to reproduce the behavior:

  1. Run the following rest call: "https://server-url/v1%2Fauth%2Ftoken%2Flookup-self"
  2. Observe that not the requested json information is returned but a redirect message with html body

Expected behavior
The same information returned as if the call would be "https://server-url/v1/auth/token/lookup-self"

Environment:
Based on helm chart 0.29.0 in a Kind Kubernetes cluster

Vault server configuration file(s):
nothing special, is only set up in a test environment, but in dev mode

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUsed to indicate a potential bugui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions