You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Ethan Lai <yz...@yahoo.com> on 2013/12/02 09:50:27 UTC

Re: Request URL unexpectedly changed to CacheUrl if CacheUrl is Set then Get

Sorry, my mistake.

I should use TSUrlCreate() instead of TSHttpHdrUrlGet() to get url_loc.
Thus, mark this ticket as invalid.


Thanks,
-Ethan


2013/11/30 Ethan Lai <yz...@yahoo.com>

> Jira ticket [TS-2410] EffectiveUrl infected if TSHttpTxnCacheLookupUrlGet
> called after TSCacheUrlSet <https://issues.apache.org/jira/browse/TS-2410>filed
>
> Test plugin which shows EffectiveUrl
>
>    1. before CacheUrlSet
>    2. after CacheUrlSet
>    3. after TSHttpTxnCacheLookupUrlGet
>
> attached in ticket.
>
> EffectiveUrl = 'http://www.example.com/index.html' before CacheUrlSet
>> EffectiveUrl = 'http://www.example.com/index.html' after CacheUrlSet
>> EffectiveUrl = 'http://www.example.com/index.html*+infected*' after
>> TSHttpTxnCacheLookupUrlGet
>
>
>
> Thanks,
> -Ethan
>
>
> 2013/11/28 Ethan Lai <yz...@yahoo.com>
>
>> Guys,
>>
>> I'm writing a plugin to append some value to CacheUrl with specify HTTP
>> header.
>> It works fine if I only call TSCacheUrlSet().
>>
>> However, if I call TSHttpTxnCacheLookupUrlGet() thereafter, the request
>> URL will be modified to that CacheUrl I've set.
>>
>> IMHO, the original request URL should not be affected by CacheUrl,
>> especially if I just get it back.  Any ideas?
>>
>> 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]
>>    Actual Request URL: [Same as Origin Request URL]
>>
>> Scenario with calling TSHttpTxnCacheLookupUrlGet:
>>    Origin Request URL: http://www.example.com/a
>> *   CacheUrl: http://www.example.com/a <http://www.example.com/a>bc*
>>    Expect Request URL: [Same as Origin Request URL]
>> *   Actual Request URL: http://www.example.com/a
>> <http://www.example.com/a>bc*
>>
>> Thanks,
>> -Ethan
>>
>
>