The HTTP Servlet catalog function sendRedirectTo() does not redirect the response to the specified URL.

book

Article ID: KB0085848

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
Description
=========
In TIBCO BusinessEvents 5.1.1 - HF6, The HTTP Servlet catalog function sendRedirectTo() does not redirect the response to the specified URL.

Environment
=========
TIBCO BusinessEvents Version 5.1.1 HF 6

Symptoms
========
The HTTP Servlet catalog function sendRedirectTo() does not redirect the response to the specified URL.

Cause
=====
This is due to a defect in Tomcat version bundled in this release.

Resolution
========
Defect exists to correct the behavior in a future release.

Workaround
==========
To achieve the redirection, replace [redirectURL] in the following code snippet by the new URL you want to redirect to:
String htmlData = "&lthtml>&lthead>&ltmeta http-equiv=\"refresh\" content=\"0;url=[redirectURL]\"></head></html>";
HTTP.Servlet.Response.setResponseHeader(servletResponse, "Content-type", "text/html");
HTTP.Servlet.Response.setResponseStatusCode(servletResponse,200);
HTTP.Servlet.Response.setResponseContent(asyncContextObject, htmlData, false);
Symptoms:

Cause:

Issue/Introduction

The HTTP Servlet catalog function sendRedirectTo() does not redirect the response to the specified URL.