mitchell852 commented on issue #2176: When creating a mid header rewrite using 
traffic portal the "location" parameter isn't created
URL: 
https://github.com/apache/incubator-trafficcontrol/issues/2176#issuecomment-385804396
 
 
   Looking at this file:
   
   
https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm#L344-L372
   
   It looks like 6 config files could be dynamically created based on the 
existence of certain values of a delivery service:
   
   1. url_sig_*.config
   2. uri_signing_*.config
   3. cacheurl*.config
   4. hdr_rw_*.config
   5. regex_remap_*.config
   6. set_dscp_*.config
   
   therefore each of these files will need a location parameter so ORT knows 
where to put the config file.
   
   This is the bug. When setting edge header rewrite or mid header rewrite 
values on a deliveryservice through the API
   
   POST /api/deliveryservices
   PUT /api/deliveryservices/:id
   
   apparently the required location parameter is not being created as such:
   
   name=location, 
   value=/opt/trafficserver/etc/trafficserver
   config_file=hdr_rw_xml-id.config
   
   which causes ORT to fail as it has no idea where to put the hdr_rw_*.config 
file.
   
   When fixing this bug, check that a location parameter is also being created 
for the other 4 files.
   
    
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to