Issues:

On development instance of Sitecore. While creating page tests or content tests in Sitecore(A/B tests are working fine), got 404 errors for urls like:
On different instance, when accessing the url directly and there's no 404 error, 403 errors are being returned.

Causes and Solutions:

There are these lines in only Development Sitecore Instance configuration, I believe the purpose was to speed up dev Sitecore instance start up time:

<initialize>
    <processor type="Sitecore.Pipelines.Initialize.PrecompileSpeakViews, Sitecore.Speak.Clientpro">
        <patch:delete/>
    </processor>
    <processor type="Sitecore.ContentTesting.Pipelines.Initialize.RegisterContentTestingCommandRoute, Sitecore.ContentTesting">
        <patch:delete/>
    </processor>
    <processor type="Sitecore.Pipelines.Initialize.PrecompileSpeakViews, Sitecore.Speak.Client" use="ContentTesting">
        <patch:delete/>
    </processor>
</initialize>

The issue is the second processor rule, original rule actually registers the necessary routing for Sitecore content testing web API. Therefore the solution is to remove the second processor rule.
403 error is because simply it's not authorized, it's not meant for direct access without providing login credentials.

Background:

The main purpose of the configurations were to disable some actions that Sitecore normally does during startup which are not really necessary for developers in order to speed up development time. I have done some research online, found following links which have information on how to speed up Sitecore Dev instance, officially or unofficially:
The safe ones to follow would be item 1 to 3 since they are from Sitecore. The configuration file from item 4 makes a lot of senses, however I couldn't find where it's come from, so use with cautions.
I also found some other configuration examples just for references: Some Dev Config Examples
And for the cause of this issue I tried to see where did it come from, so far I can only find one link which provides the issue configuration, but the website is down for some reasons, please see cached page here: Potential source of issue
And finally, here is the link where helped identifying the issue: Sitecore 8 shell controller returning IIS 404
blog comments powered by Disqus