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

Using TSHttpTxnEffectiveUrlStringGet() in a remap plugin can mess up destination port

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.1.0
    • Core, TS API
    • None

    Description

      With a remap rule like

      map http://example.com https://real.example.com @plugin=cacheurl.so @pparam=cachekey.config
      

      (note the mapping from http -> https), we'll end up with a request on port 80 to the origin server. I've verified that the offending API that causes this "rewrite" is TSHttpTxnEffectiveUrlStringGet() (100% certain). So it's not a bug in the cacheurl plugin IMO; it does the right thing and returns TSREMAP_NO_REMAP to tell the rewrite engine to use the default mapping rule. This mostly works, where the destination host and path are rewritten properly, but the port gets set to 80 (presumably some default tripping).

      Attachments

        Issue Links

          Activity

            People

              amc Alan M. Carroll
              zwoop Leif Hedstrom
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: