[
https://issues.apache.org/jira/browse/TS-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364446#comment-14364446
]
ASF GitHub Bot commented on TS-3447:
------------------------------------
GitHub user yzlai opened a pull request:
https://github.com/apache/trafficserver/pull/181
TS-3447 [buffer_upload plugin] set UrlPort if port number present in Host
header
...t header
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yzlai/trafficserver master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/181.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #181
----
commit 3ad5a4c1653f2c68472a959cfe9eff40f91356a7
Author: Ethan Lai <[email protected]>
Date: 2015-03-17T02:28:44Z
TS-3447 [buffer_upload plugin] set UrlPort if port number present in Host
header
----
> Failing to remap POST requests if buffer_upload plugin is enabled and Host
> header contains port number
> ------------------------------------------------------------------------------------------------------
>
> Key: TS-3447
> URL: https://issues.apache.org/jira/browse/TS-3447
> Project: Traffic Server
> Issue Type: Bug
> Components: Plugins
> Reporter: Ethan Lai
>
> We've experienced POST request mapping issues in some situation while
> buffer_upload plugin is enabled.
> After cross reference, we found that Host header with port value cannot be
> mapped correctly.
> Sample remap.config:
> {quote}
> map http://www.example.com/ http://127.0.0.1:8001/
> map http://www.example.com:8080/ http://127.0.0.1:8001/
> {quote}
> Sample plugin.config
> {quote}
> buffer_upload.so conf/trafficserver/buffer_upload/buffer_upload.config
> {quote}
> Sample buffer_upload.config
> {quote}
> use_disk_buffer 1
> convert_url 0
> chunk_size 1024
> url_list_file conf/trafficserver/buffer_upload/url_list.config
> base_dir var/buffer_upload_tmp
> subdir_num 100
> thread_num 10
> mem_buffer_size 51000
> {quote}
> Sample buffer upload url_list.config
> {quote}
> http://www.example.com/upload/upload.php
> {quote}
> Sample cmds & responses
> {quote}
> curl http://www.example.com/test.php -X POST -d 'blah'
> > map ok
> curl http://www.example.com:8080/test.php
> > map ok
> curl http://www.example.com:8080/test.php -X POST -d 'blah'
> > 404 Not Found! (Not Found on Accelerator)
> {quote}
> I've tried to correct this and will update with pull request shortly, thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)