HTTP Redirect Policy forces "/" slash on empty path
search cancel

HTTP Redirect Policy forces "/" slash on empty path

book

Article ID: 446206

calendar_today

Updated On:

Products

VMware Cloud Director VMware NSX Advanced Load Balancer

Issue/Introduction

  • After creating a HTTP Redirect Policy in Cloud Director(VCD) the path value appears in NSX Advanced Load Balancer(NSX ALB) with a "/" character in the path.
  • The "Path" field had been left empty during creation to ensure that the original request URL is preserved during the redirect.
  • Requests are being incorrectly redirected to the root directory.

Environment

  • VMware Cloud Director 10.6.1.2
  • VMware NSX Advanced Load Balancer

Cause

This issue occurs as the VCD UI sends the path value to NSX ALB as any empty string like follows even if nothing is typed in the field:

path: ""

The double quotes are then normalized into a "/" slash character in NSX ALB.

Resolution

This is a known issue which will be resolved in a future release.

Workaround:

  1. Login directly to the NSX ALB interface.
  2. Navigate to Applications > Virtual Services.
  3. Click the Edit icon beside the Virtual Service.
  4. Navigate to Policies > HTTP Request.
  5. Edit the specific policy and  remove the "/" character from the path field in the redirect policy.
  6. Save the change.

    Note: Any edits to the policy within the VCD UI will append the "/" character to the path in the policy once again.