Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4098

Remap filtering isn't working to only allow certain methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • HTTP
    • None

    Description

      Limiting a remap rule to only use a certain methods doesn't work. Also the Via header comes back with wrong information:

      Proxy request results:
      Request headers received from client:simple request (not conditional)
      Result of Traffic Server cache lookup for URL:no cache lookup performed
      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
      Operational results:
      Tunnel info:tunneling due to a method (e.g. CONNECT)
      Cache-type and cache-lookup cache result values:cache miss or no cache lookup / no cache lookup
      ICP status:no icp
      Parent proxy connection status:no parent proxy
      Origin server connection status:connection opened successfully
      

      Example remap rule:

      map / http://127.0.0.1/ @method=GET @action=allow
      

      Curl request and the 501 is from the origin:

      curl -s -D - -o /dev/null -X xxx http://127.0.0.1:8080/
      HTTP/1.1 501 Not Implemented
      Date: Tue, 22 Dec 2015 19:34:43 GMT
      Server: ATS/6.1.0
      Allow: GET,HEAD,POST,OPTIONS,TRACE
      Content-Length: 201
      Content-Type: text/html; charset=iso-8859-1
      Age: 0
      Connection: keep-alive
      Via: http/1.1 homer.bryancall.com (ApacheTrafficServer/6.1.0 [uSc s f p eN:tMc  i p sS])
      

      Attachments

        1. remap.config
          11 kB
          Quinn Lertratanakul

        Issue Links

          Activity

            People

              kawaiirice Quinn Lertratanakul
              bcall Bryan Call
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m