Showing posts with label Exclude Robots. Show all posts
Showing posts with label Exclude Robots. Show all posts

Thursday, March 2, 2017

Exclude Robots functionality issues

As for now, there are three known issues related to the Exclude Robots functionality.

149102 - IP ranges in Exclude Robots don't support IPv6

This means that if you add an IPv4 range to the Sitecore.Analytics.ExcludeRobots.config file:

<excludedIPAddresses>
  127.0.0.1 - 128.0.0.1
</excludedIPAddresses>

and then visit a site with an IPv6 IP address, you will face the following exception:

[InvalidOperationException: rangeBegin.AddressFamily != address.AddressFamily]
   Sitecore.Web.IPAddresses.IPRange.Contains(IPAddress address) +262
   Sitecore.Web.IPAddresses.IPList.Contains(IPAddress address) +381
   Sitecore.Analytics.Configuration.ExcludeList.ContainsIpAddress(String addressString) +99
   Sitecore.Analytics.Pipelines.ExcludeRobots.CheckIpAddress.Process(ExcludeRobotsArgs args) +202
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
   Sitecore.Analytics.DefaultTracker.ExcludeRequest() +28
   Sitecore.Analytics.DefaultTracker.StartTracking() +267
   Sitecore.Analytics.Pipelines.StartAnalytics.StartTracking.Process(PipelineArgs args) +95
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
  Sitecore.Mvc.Analytics.Pipelines.MvcEvents.RequestBegin.StartTracking.Process(RequestBeginArgs

The same behavior, if you specify an IPv6 range and then visit a site with a usual IPv4 address.

150102 - Sometimes IP ranges identify the occurrence of IP not correctly

There is a known issue in the method which should determine whether an IP address belongs to the IP range. For example, if you specify the 127.0.0.1 - 128.0.0.1 range, the 127.0.0.10 IP address will be considered as a not belonging one.

149113 (379609) - Exclude Robots does not take the Analytics.ForwardedRequestHttpHeader setting into account

There is a knowledge base article regarding this issue - https://kb.sitecore.net/articles/454115

FIX

The patch which fixes all the three issues can be found - https://github.com/SitecoreSupport/Sitecore.Support.149113.149102.150102