x_header CPL Substitution does not work with set()


<< Back to Knowledge Search

Solution

Overview

1. When you apply the following CPL, you will see that the value for My-Header is not inserted into the LOL2 HTTP Response Header :

define action my_rewrite
        set(response.x_header.LOL1, "test $(response.header.Cache-Control) test" )
        set(response.x_header.LOL2, "test $(response.x_header.My-Header) test")
end

<Proxy>
    action.my_rewrite(yes)

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Fri, 10 Feb 2012 06:22:31 GMT
Content-Type: image/png
Expires: Fri, 10 Feb 2012 07:22:31 GMT
Last-Modified: Fri, 06 Jan 2012 01:23:39 GMT
Cache-Control: max-age=0, s-maxage=3600, must-revalidate
X-My-Header: MyHeader
LOL1: test max-age=0,s-maxage=3600,must-revalidate test        <<<<< The value for the normal header is set
LOL2: test  test                                               <<<<< The value for the x_header is not set
Connection: close
Age: 0


2. The same problem affects request.x_header too

Cause
Resolution

This defect has been addressed in :

- SG 6.2.9.1 and newer SG 6.2.x versions

- SG 6.3.3.1 and newer SG 6.3.x versions

SG 6.4.x and newer SG 6.x versions are not affected by this.

Workaround
Additional Information
Bug Number
InQuira Doc IdKB5067
Attachment

Article Feedback

Hide Properties
First Published      10/01/2014
Last Modified      10/01/2014
Last Published      10/01/2014
Article Audience
Product      ProxySG
Software      SGOS 6.2, SGOS 6.3
Topic      Policy Management
Article Number      000017018
Summary     
Was this helpful?
Comments:
 
Previous MonthNext Month
SunMonTueWedThuFriSat