Repository: trafficserver
Updated Branches:
  refs/heads/master cce321c35 -> 178127544


TS-4157: Fix bad characters in traffic_via tests.
This closes #440.

Change use of : to ; as this character is safer to use on shared drives with 
different OS


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/17812754
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/17812754
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/17812754

Branch: refs/heads/master
Commit: 178127544cbb5b2d843896e787efb0fa9a7c13da
Parents: cce321c
Author: dragon512 <[email protected]>
Authored: Tue Jan 26 15:07:29 2016 -0600
Committer: Alan M. Carroll <[email protected]>
Committed: Mon Feb 1 14:47:32 2016 -0600

----------------------------------------------------------------------
 cmd/traffic_via/tests/[u c s f p eS:tNc  i p s ] | 14 --------------
 cmd/traffic_via/tests/[u c s f p eS;tNc  i p s ] | 14 ++++++++++++++
 cmd/traffic_via/tests/[uIcRs f p eN:t cCHi p s ] | 14 --------------
 cmd/traffic_via/tests/[uIcRs f p eN:t cCNi p s ] | 14 --------------
 cmd/traffic_via/tests/[uIcRs f p eN;t cCHi p s ] | 14 ++++++++++++++
 cmd/traffic_via/tests/[uIcRs f p eN;t cCNi p s ] | 14 ++++++++++++++
 cmd/traffic_via/tests/[uScMsSf pSeN:t cCMi p sS] | 14 --------------
 cmd/traffic_via/tests/[uScMsSf pSeN;t cCMi p sS] | 14 ++++++++++++++
 cmd/traffic_via/tests/[uScRs f p eN:t cCHi p s ] | 14 --------------
 cmd/traffic_via/tests/[uScRs f p eN;t cCHi p s ] | 14 ++++++++++++++
 cmd/traffic_via/traffic_via.cc                   |  2 +-
 11 files changed, 71 insertions(+), 71 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[u
 c s f p eS:tNc  i p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[u c s f p eS:tNc  i p s ] 
b/cmd/traffic_via/tests/[u c s f p eS:tNc  i p s ]
deleted file mode 100644
index 8195fd8..0000000
--- a/cmd/traffic_via/tests/[u c s f p eS:tNc  i p s ]  
+++ /dev/null
@@ -1,14 +0,0 @@
-Via header is [u c s f p eS:tNc  i p s ], Length is 26
-Via Header Details:
-Request headers received from client                   :unknown
-Result of Traffic Server cache lookup for URL          :no cache lookup
-Response information received from origin server       :no server connection 
needed
-Result of document write-to-cache:                     :no cache write 
performed
-Proxy operation result                                 :unknown
-Error codes (if any)                                   :server related error
-Tunnel info                                            :tunneling due to no 
forward
-Cache Type                                             :unknown
-Cache Lookup Result                                    :cache miss or no cache 
lookup
-ICP status                                             :no icp
-Parent proxy connection status                         :no parent proxy or 
unknown
-Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[u
 c s f p eS;tNc  i p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[u c s f p eS;tNc  i p s ] 
b/cmd/traffic_via/tests/[u c s f p eS;tNc  i p s ]
new file mode 100644
index 0000000..bc130d9
--- /dev/null
+++ b/cmd/traffic_via/tests/[u c s f p eS;tNc  i p s ]  
@@ -0,0 +1,14 @@
+Via header is [u c s f p eS;tNc  i p s ], Length is 26
+Via Header Details:
+Request headers received from client                   :unknown
+Result of Traffic Server cache lookup for URL          :no cache lookup
+Response information received from origin server       :no server connection 
needed
+Result of document write-to-cache:                     :no cache write 
performed
+Proxy operation result                                 :unknown
+Error codes (if any)                                   :server related error
+Tunnel info                                            :tunneling due to no 
forward
+Cache Type                                             :unknown
+Cache Lookup Result                                    :cache miss or no cache 
lookup
+ICP status                                             :no icp
+Parent proxy connection status                         :no parent proxy or 
unknown
+Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uIcRs
 f p eN:t cCHi p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uIcRs f p eN:t cCHi p s ] 
b/cmd/traffic_via/tests/[uIcRs f p eN:t cCHi p s ]
deleted file mode 100644
index 73a2f47..0000000
--- a/cmd/traffic_via/tests/[uIcRs f p eN:t cCHi p s ]  
+++ /dev/null
@@ -1,14 +0,0 @@
-Via header is [uIcRs f p eN:t cCHi p s ], Length is 26
-Via Header Details:
-Request headers received from client                   :IMS
-Result of Traffic Server cache lookup for URL          :in cache, fresh Ram 
hit (a cache "HIT")
-Response information received from origin server       :no server connection 
needed
-Result of document write-to-cache:                     :no cache write 
performed
-Proxy operation result                                 :unknown
-Error codes (if any)                                   :no error
-Tunnel info                                            :no tunneling
-Cache Type                                             :cache
-Cache Lookup Result                                    :cache hit
-ICP status                                             :no icp
-Parent proxy connection status                         :no parent proxy or 
unknown
-Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uIcRs
 f p eN:t cCNi p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uIcRs f p eN:t cCNi p s ] 
b/cmd/traffic_via/tests/[uIcRs f p eN:t cCNi p s ]
deleted file mode 100644
index 00a38f3..0000000
--- a/cmd/traffic_via/tests/[uIcRs f p eN:t cCNi p s ]  
+++ /dev/null
@@ -1,14 +0,0 @@
-Via header is [uIcRs f p eN:t cCNi p s ], Length is 26
-Via Header Details:
-Request headers received from client                   :IMS
-Result of Traffic Server cache lookup for URL          :in cache, fresh Ram 
hit (a cache "HIT")
-Response information received from origin server       :no server connection 
needed
-Result of document write-to-cache:                     :no cache write 
performed
-Proxy operation result                                 :unknown
-Error codes (if any)                                   :no error
-Tunnel info                                            :no tunneling
-Cache Type                                             :cache
-Cache Lookup Result                                    :conditional hit 
(client sent conditional, doc fresh in cache, returned 304)
-ICP status                                             :no icp
-Parent proxy connection status                         :no parent proxy or 
unknown
-Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uIcRs
 f p eN;t cCHi p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uIcRs f p eN;t cCHi p s ] 
b/cmd/traffic_via/tests/[uIcRs f p eN;t cCHi p s ]
new file mode 100644
index 0000000..ad67e0d
--- /dev/null
+++ b/cmd/traffic_via/tests/[uIcRs f p eN;t cCHi p s ]  
@@ -0,0 +1,14 @@
+Via header is [uIcRs f p eN;t cCHi p s ], Length is 26
+Via Header Details:
+Request headers received from client                   :IMS
+Result of Traffic Server cache lookup for URL          :in cache, fresh Ram 
hit (a cache "HIT")
+Response information received from origin server       :no server connection 
needed
+Result of document write-to-cache:                     :no cache write 
performed
+Proxy operation result                                 :unknown
+Error codes (if any)                                   :no error
+Tunnel info                                            :no tunneling
+Cache Type                                             :cache
+Cache Lookup Result                                    :cache hit
+ICP status                                             :no icp
+Parent proxy connection status                         :no parent proxy or 
unknown
+Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uIcRs
 f p eN;t cCNi p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uIcRs f p eN;t cCNi p s ] 
b/cmd/traffic_via/tests/[uIcRs f p eN;t cCNi p s ]
new file mode 100644
index 0000000..c7140d3
--- /dev/null
+++ b/cmd/traffic_via/tests/[uIcRs f p eN;t cCNi p s ]  
@@ -0,0 +1,14 @@
+Via header is [uIcRs f p eN;t cCNi p s ], Length is 26
+Via Header Details:
+Request headers received from client                   :IMS
+Result of Traffic Server cache lookup for URL          :in cache, fresh Ram 
hit (a cache "HIT")
+Response information received from origin server       :no server connection 
needed
+Result of document write-to-cache:                     :no cache write 
performed
+Proxy operation result                                 :unknown
+Error codes (if any)                                   :no error
+Tunnel info                                            :no tunneling
+Cache Type                                             :cache
+Cache Lookup Result                                    :conditional hit 
(client sent conditional, doc fresh in cache, returned 304)
+ICP status                                             :no icp
+Parent proxy connection status                         :no parent proxy or 
unknown
+Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uScMsSf
 pSeN:t cCMi p sS]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uScMsSf pSeN:t cCMi p sS] 
b/cmd/traffic_via/tests/[uScMsSf pSeN:t cCMi p sS]
deleted file mode 100644
index a69506f..0000000
--- a/cmd/traffic_via/tests/[uScMsSf pSeN:t cCMi p sS]  
+++ /dev/null
@@ -1,14 +0,0 @@
-Via header is [uScMsSf pSeN:t cCMi p sS], Length is 26
-Via Header Details:
-Request headers received from client                   :simple request (not 
conditional)
-Result of Traffic Server cache lookup for URL          :miss (a cache "MISS")
-Response information received from origin server       :connection opened 
successfully
-Result of document write-to-cache:                     :no cache write 
performed
-Proxy operation result                                 :served or connection 
opened successfully
-Error codes (if any)                                   :no error
-Tunnel info                                            :no tunneling
-Cache Type                                             :cache
-Cache Lookup Result                                    :cache miss (url not in 
cache)
-ICP status                                             :no icp
-Parent proxy connection status                         :no parent proxy or 
unknown
-Origin server connection status                        :connection opened 
successfully

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uScMsSf
 pSeN;t cCMi p sS]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uScMsSf pSeN;t cCMi p sS] 
b/cmd/traffic_via/tests/[uScMsSf pSeN;t cCMi p sS]
new file mode 100644
index 0000000..0940e12
--- /dev/null
+++ b/cmd/traffic_via/tests/[uScMsSf pSeN;t cCMi p sS]  
@@ -0,0 +1,14 @@
+Via header is [uScMsSf pSeN;t cCMi p sS], Length is 26
+Via Header Details:
+Request headers received from client                   :simple request (not 
conditional)
+Result of Traffic Server cache lookup for URL          :miss (a cache "MISS")
+Response information received from origin server       :connection opened 
successfully
+Result of document write-to-cache:                     :no cache write 
performed
+Proxy operation result                                 :served or connection 
opened successfully
+Error codes (if any)                                   :no error
+Tunnel info                                            :no tunneling
+Cache Type                                             :cache
+Cache Lookup Result                                    :cache miss (url not in 
cache)
+ICP status                                             :no icp
+Parent proxy connection status                         :no parent proxy or 
unknown
+Origin server connection status                        :connection opened 
successfully

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uScRs
 f p eN:t cCHi p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uScRs f p eN:t cCHi p s ] 
b/cmd/traffic_via/tests/[uScRs f p eN:t cCHi p s ]
deleted file mode 100644
index ff62044..0000000
--- a/cmd/traffic_via/tests/[uScRs f p eN:t cCHi p s ]  
+++ /dev/null
@@ -1,14 +0,0 @@
-Via header is [uScRs f p eN:t cCHi p s ], Length is 26
-Via Header Details:
-Request headers received from client                   :simple request (not 
conditional)
-Result of Traffic Server cache lookup for URL          :in cache, fresh Ram 
hit (a cache "HIT")
-Response information received from origin server       :no server connection 
needed
-Result of document write-to-cache:                     :no cache write 
performed
-Proxy operation result                                 :unknown
-Error codes (if any)                                   :no error
-Tunnel info                                            :no tunneling
-Cache Type                                             :cache
-Cache Lookup Result                                    :cache hit
-ICP status                                             :no icp
-Parent proxy connection status                         :no parent proxy or 
unknown
-Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/tests/[uScRs
 f p eN;t cCHi p s ]
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/tests/[uScRs f p eN;t cCHi p s ] 
b/cmd/traffic_via/tests/[uScRs f p eN;t cCHi p s ]
new file mode 100644
index 0000000..0ee3ff9
--- /dev/null
+++ b/cmd/traffic_via/tests/[uScRs f p eN;t cCHi p s ]  
@@ -0,0 +1,14 @@
+Via header is [uScRs f p eN;t cCHi p s ], Length is 26
+Via Header Details:
+Request headers received from client                   :simple request (not 
conditional)
+Result of Traffic Server cache lookup for URL          :in cache, fresh Ram 
hit (a cache "HIT")
+Response information received from origin server       :no server connection 
needed
+Result of document write-to-cache:                     :no cache write 
performed
+Proxy operation result                                 :unknown
+Error codes (if any)                                   :no error
+Tunnel info                                            :no tunneling
+Cache Type                                             :cache
+Cache Lookup Result                                    :cache hit
+ICP status                                             :no icp
+Parent proxy connection status                         :no parent proxy or 
unknown
+Origin server connection status                        :no server connection 
needed

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/17812754/cmd/traffic_via/traffic_via.cc
----------------------------------------------------------------------
diff --git a/cmd/traffic_via/traffic_via.cc b/cmd/traffic_via/traffic_via.cc
index 3c28f00..bbf39af 100644
--- a/cmd/traffic_via/traffic_via.cc
+++ b/cmd/traffic_via/traffic_via.cc
@@ -201,7 +201,7 @@ printViaHeader(const char *header)
 
   // Loop through input via header flags
   for (const char *c = header; *c; ++c) {
-    if (*c == ':') {
+    if ((*c == ':') || (*c == ';')) {
       isDetail = true;
       continue;
     }

Reply via email to