Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
mode: ContinuousDeployment
branches:
master:
regex: ^master$|^main$
xm:
regex: ^fork/xm$
mode: ContinuousDeployment
increment: None
tag: "xm"
source-branches: []
15 changes: 0 additions & 15 deletions src/Unic.ErrorManager.Core/Controls/BaseError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ namespace Unic.ErrorManager.Core.Controls
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;

using Sitecore.Analytics;
using Sitecore.Configuration;
using Sitecore.Data.Items;
using Sitecore.Data.Managers;
Expand Down Expand Up @@ -155,9 +153,6 @@ protected override void OnLoad(EventArgs e)
url.Append(url.ToString().IndexOf("?") == -1 ? "?" : "&");
url.Append("rawUrl=" + this.Server.UrlEncode(WebUtil.GetRawUrl()));

// add the tracking disable parameter
url.Append(string.Format("&{0}={1}", Definitions.Constants.DisableTrackingParameterName, Settings.GetSetting(Definitions.Constants.DisableTrackingParameterValueSetting, string.Empty)));

// change display mode to normal
url.Append(string.Format("&{0}={1}", Definitions.Constants.DisplayModeParameterName, Definitions.Constants.DisplayModeParameterValueSetting));
}
Expand Down Expand Up @@ -243,16 +238,6 @@ protected override void OnLoad(EventArgs e)
{
string body = new StreamReader(response.GetResponseStream()).ReadToEnd();

// Insert image with request to the static page if Analytics is enabled.
// This is a hotfix for a Sitecore bug, see Sitecore issue #378950
if (Settings.GetBoolSetting("Xdb.Enabled", false) && site.Tracking().EnableTracking)
{
body = body.Replace("</body>",
string.Format("<img src=\"{0}?{1}\" style=\"display: none;\"></body>",
Settings.GetSetting(this.SettingsKey + ".Static"),
base.Request.QueryString));
}

this.Response.Write(body);
}
else
Expand Down
6 changes: 0 additions & 6 deletions src/Unic.ErrorManager.Core/Definitions/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
{
public static class Constants
{
public static string DisableTrackingParameterName = "em_dt";

public static string DisableTrackingParameterValueSetting = "ErrorManager.DisableTrackingParameterValue";

public static string DisableTrackingSetting = "ErrorManager.DisableTracking";

public static string DisplayModeParameterName = "sc_mode";

public static string DisplayModeParameterValueSetting = "normal";
Expand Down

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/Unic.ErrorManager.Core/Unic.ErrorManager.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
<HintPath>..\..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.5\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Sitecore.Analytics, Version=8.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Sitecore.Analytics.NoReferences.8.1.151207\lib\NET45\Sitecore.Analytics.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Sitecore.Kernel, Version=8.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Sitecore.Kernel.NoReferences.8.1.151207\lib\NET45\Sitecore.Kernel.dll</HintPath>
<Private>True</Private>
Expand All @@ -65,9 +61,7 @@
</Compile>
<Compile Include="Definitions\Constants.cs" />
<Compile Include="Extensions\ItemExtension.cs" />
<Compile Include="Pipelines\HttpRequest\CheckErrorManagerUserAgent.cs" />
<Compile Include="Pipelines\HttpRequest\ItemResolver.cs" />
<Compile Include="Pipelines\StartAnalytics\DisableRequestTracking.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\Media\MediaRequestHandler.cs" />
<Compile Include="Utilities\UrlUtil.cs" />
Expand Down
1 change: 0 additions & 1 deletion src/Unic.ErrorManager.Core/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<packages>
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.5" targetFramework="net45" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net45" developmentDependency="true" />
<package id="Sitecore.Analytics.NoReferences" version="8.1.151207" targetFramework="net45" developmentDependency="true" />
<package id="Sitecore.Kernel.NoReferences" version="8.1.151207" targetFramework="net45" developmentDependency="true" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@
-->
<setting name="ErrorManager.BasicAuthentication.Password" value="" />

<!-- DISABLE TRACKING PARAMETER VALUE
The value of the tracker disable parameter. This parameter value is never visible to the website user.
Default value: 7mgpoIhQqV
-->
<setting name="ErrorManager.DisableTrackingParameterValue" value="7mgpoIhQqV" />
<setting name="ErrorManager.DisableTracking" set:value="true" />

<!-- ITEM NOT FOUND HANDLER
Url of page handling 'Item not found' errors
-->
Expand Down Expand Up @@ -135,28 +128,6 @@

</httpRequestBegin>

<excludeRobots>

<!-- EXCLUDE ROBOTS PIPELINE
Checks the user-agent of the request against the defined error-manager user-agent. In case it matches, the
request is identified as a bot request, which will suppress tracking while still allowing it to be
personalized.
-->
<processor patch:after="processor[@type='Sitecore.Analytics.Pipelines.ExcludeRobots.TryObtainCachedResult, Sitecore.Analytics']"
type="Unic.ErrorManager.Core.Pipelines.HttpRequest.CheckErrorManagerUserAgent, Unic.ErrorManager.Core" />
</excludeRobots>

<startAnalytics>

<!-- DISABLE REQUEST TRACKING
Prevents the initialization of the xDB Tracker for requests to the error pages through this module.

NOTE: This is neccessary for some Sitecore solutions, when the nested request runs into an analytics
session lock for this user.
-->
<processor patch:after="processor[@type='Sitecore.Analytics.Pipelines.StartAnalytics.CheckPreconditions, Sitecore.Analytics']"
type="Unic.ErrorManager.Core.Pipelines.StartAnalytics.DisableRequestTracking, Unic.ErrorManager.Core" />
</startAnalytics>
</pipelines>
</sitecore>
</configuration>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<%@ OutputCache Location="None" VaryByParam="none" %>
<%@ register TagPrefix="sc" Namespace="Sitecore.Web.UI.HtmlControls" Assembly="Sitecore.Kernel" %>
<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Analytics" %>
<%@ Page language="c#" Codebehind="noaccess.aspx.cs" EnableViewState="false" EnableViewStateMac="false" AutoEventWireup="True" Inherits="SitecoreClient.Page.NoAccess" %>
<% Response.StatusCode = 200; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand Down Expand Up @@ -71,6 +70,5 @@
</div>
</div>
</div>
<sc:VisitorIdentification runat="server" />
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<%@ OutputCache Location="None" VaryByParam="none" %>
<%@ register TagPrefix="sc" Namespace="Sitecore.Web.UI.HtmlControls" Assembly="Sitecore.Kernel" %>
<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Analytics" %>
<%@ Page language="c#" Codebehind="nolayout.aspx.cs" EnableViewState="false" EnableViewStateMac="false" AutoEventWireup="True" Inherits="SitecoreClient.Page.NoLayout" %>
<% Response.StatusCode = 200; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand Down Expand Up @@ -75,6 +74,5 @@

</div>
</div>
<sc:VisitorIdentification runat="server" />
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<%@ OutputCache Location="None" VaryByParam="none" %>
<%@ register TagPrefix="sc" Namespace="Sitecore.Web.UI.HtmlControls" Assembly="Sitecore.Kernel" %>
<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Analytics" %>
<%@ Page language="c#" Codebehind="nolicense.aspx.cs" EnableViewState="false" EnableViewStateMac="false" AutoEventWireup="True" Inherits="SitecoreClient.Page.NoLicense" %>
<% Response.StatusCode = 200; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand Down Expand Up @@ -66,6 +65,5 @@

</div>
</div>
<sc:VisitorIdentification runat="server" />
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<%@ OutputCache Location="None" VaryByParam="none" %>
<%@ register TagPrefix="sc" Namespace="Sitecore.Web.UI.HtmlControls" Assembly="Sitecore.Kernel" %>
<%@ Register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Analytics" %>
<%@ Page language="c#" Codebehind="notfound.aspx.cs" EnableViewState="false" EnableViewStateMac="false" AutoEventWireup="True" Inherits="SitecoreClient.Page.NotFound" %>
<% Response.StatusCode = 200; %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand Down Expand Up @@ -76,6 +75,5 @@
</div>
</div>
</div>
<sc:VisitorIdentification runat="server" />
</body>
</html>