You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/08/14 20:01:49 UTC

[GitHub] [trafficcontrol] limited opened a new issue #4961: CZF-Only and National Geoblocking (NGB) broken when using a geoRedirect URL within the same delivery service

limited opened a new issue #4961:
URL: https://github.com/apache/trafficcontrol/issues/4961


   ## I'm submitting a ...
   -  bug report
   
   
   ## Traffic Control components affected ...
   -  Traffic Router
   
   ## Current behavior:
   Conditions:
   - Delivery Service GeoLimit is 1 (CZF Only) or 2 (CZF + Country Code)
   - GeoLimit Redirect URL is an absolute URL within the same delivery service or a relative URL
   - Client is not present in the CZF (GeoLimit=1) or Client is not in CZF or an allowed Country (GeoLimit=2)
   
   Symptom:
    - Client is redirected to the requested URL instead of the Geolimit redirect URL
   
   ## Expected / new behavior:
   If the client is not within the CZF or an allowed country then the client should be redirected to the GeoLimit Redirect URL.
   
   ## Minimal reproduction of the problem with instructions:
   - Enable GeoLimit = 1 and set a GeoLimit Redirect URL
   - Request a URL from the delivery service from a client not within the CZF
   - Observe redirected URL is the requested URL and not the GeoLimit Redirect URL. 
   
   ## Anything else:
   <!-- e.g. stacktraces, related issues, suggestions how to fix -->
   Access Log showing issue, note no change to rurl path despite `rtype=GEO_REDIRECT`
   ```
   1597434790.896 qtype=HTTP chi=w.x.y.z rhi=- url="http://cdn.example.com/x.m3u8" cqhm=GET cqhv=HTTP/1.1 rtype=GEO_REDIRECT rloc="0.00,0.00" rdtl=- rerr="-" rgb="-" pssc=302 ttms=6.198 rurl="http://cdn.example.com/x.m3u8" rurls="-" rh="-"
   ```
   
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] limited commented on issue #4961: CZF-Only and National Geoblocking (NGB) broken when using a geoRedirect URL within the same delivery service

Posted by GitBox <gi...@apache.org>.
limited commented on issue #4961:
URL: https://github.com/apache/trafficcontrol/issues/4961#issuecomment-674257666


   They are linked because they both use the `TrafficRouter::enforceGeoRedirect()` function.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] ocket8888 commented on issue #4961: CZF-Only and National Geoblocking (NGB) broken when using a geoRedirect URL within the same delivery service

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #4961:
URL: https://github.com/apache/trafficcontrol/issues/4961#issuecomment-674255683


   Wait, is this a problem with GeoLimit or NGB? Because I think those are different things that operate independently.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org