You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Masaori Koshiba (JIRA)" <ji...@apache.org> on 2016/09/08 03:22:20 UTC

[jira] [Resolved] (TS-4797) Backslash-escape is not allowed in rewriting rules

     [ https://issues.apache.org/jira/browse/TS-4797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Masaori Koshiba resolved TS-4797.
---------------------------------
    Resolution: Fixed

> Backslash-escape is not allowed in rewriting rules
> --------------------------------------------------
>
>                 Key: TS-4797
>                 URL: https://issues.apache.org/jira/browse/TS-4797
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Plugins
>            Reporter: Masaori Koshiba
>             Fix For: 7.0.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> I noticed that backslash-escape in quoted-string is not allowed in header-rewrite plugin rules. IIRC, this is allowed in 5.3.x.
> e.g.
> {noformat}
> cond %{SEND_RESPONSE_HDR_HOOK}
> add-header Public-Key-Pins "pin-sha256=\"UgXZQmS15cJoBeWTvbmCE+PGw5/oHV00e+MMyuXr0YQ=\"; pin-sha256=\"eYKlKmvqHnR4CsglcYuNzvro7rrmFINrje5nSAxnEsc=\"; max-age=600; includeSubDomains" [L]
> {noformat}
> I got below error
> {noformat}
> 20160830.16h19m34s [header_rewrite] malformed line "add-header Public-Key-Pins "pin-sha256=\"UgXZQmS15cJoBeWTvbmCE+PGw5/oHV00e+MMyuXr0YQ=\"; pin-sha256=\"eYKlKmvqHnR4CsglcYuNzvro7rrmFINrje5nSAxnEsc=\"; max-age=600; includeSubDomains" [L]" ignoring...
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)