api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Impossible to generate requests with "%2F"

Open esoterra opened this issue 3 years ago • 2 comments

Bug description

It is not possible to generate requests containing %2F, the singly encoded / from the tester UI.

Reproduction steps

Steps to reproduce the behavior:

  1. Click an API Operation
  2. Click the "Test" heading
  3. Provide an input field (template parameter or query parameter) a. A value containing / b. A value containing %2F

The result of test 3.a is that the slash passes through and shows up in the trace as /. The result of test 3.b is that the %2F is re-encoded and shows up in the trace as %252F This makes it impossible to generate requests with parameters that singly-encode / as %2F.

Expected behavior

Either A. the / character should be encoded as %2F, B. the % character should not be re-encoded, or C. the encoding behavior of these fields should be user-controllable.

Is your portal managed or self-hosted?

Managed

API Management service name

Message kybrown for service details if needed.

esoterra avatar Jan 27 '22 19:01 esoterra

@Kylebrown9, thank you for opening this issue. We will triage it within the next few business days.

msftbot[bot] avatar Jan 27 '22 19:01 msftbot[bot]

@Kylebrown9, thank you for reporting the bug.

msftbot[bot] avatar Jan 27 '22 20:01 msftbot[bot]