You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2013/12/02 19:00:38 UTC

[jira] [Commented] (TS-2410) EffectiveUrl infected if TSHttpTxnCacheLookupUrlGet called after TSCacheUrlSet

    [ https://issues.apache.org/jira/browse/TS-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836735#comment-13836735 ] 

James Peach commented on TS-2410:
---------------------------------

Thanks for digging into this [~yzlai]. {{TSHttpTxnCacheLookupUrlGet()}} breaks the usual API conventions. Since you spent time looking at this, would you be able to add some simple documentation?

> EffectiveUrl infected if TSHttpTxnCacheLookupUrlGet called after TSCacheUrlSet
> ------------------------------------------------------------------------------
>
>                 Key: TS-2410
>                 URL: https://issues.apache.org/jira/browse/TS-2410
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cache
>            Reporter: Ethan Lai
>         Attachments: infect_cacheurl.cc
>
>
> I'm trying to write a plugin to change CacheUrl for some reason.
> It works fine if I only call TSCacheUrlSet().
> However, if TSHttpTxnCacheLookupUrlGet() was called after TSCacheUrlSet(), EffectiveUrl will be changed to the new CacheUrl.
> Scenario without calling TSHttpTxnCacheLookupUrlGet:
>    Origin Request URL: http://www.example.com/a
>    CacheUrl: http://www.example.com/abc
>    Expect Request URL: [Same as Origin Request URL]
>    Effective URL: [Same as Origin Request URL]
> Scenario with calling TSHttpTxnCacheLookupUrlGet:
>    Origin Request URL: http://www.example.com/a
>    CacheUrl: http://www.example.com/abc
>    (Calling TSHttpTxnCacheLookupUrlGet() here)
>    Expect Request URL: [Same as Origin Request URL]
>    Effective URL: http://www.example.com/abc



--
This message was sent by Atlassian JIRA
(v6.1#6144)