Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bruno Olsen 75 posts 316 karma points
    Sep 22, 2017 @ 08:39
    Bruno Olsen
    0

    Issue with https - NS 1.4.5.2/Umbraco 6.1.3

    Hi

    When activating certificate on an older site all seemed fine. Even with a rewrite rule to force people from http to https things seemed fine. However, I got a report that people had trouble getting on to the site which puzzled me.

    Then I got one of the reports which was a "A potentially dangerous Request.Path value was detected from the client (:)." error. This error was the result of clicking on a link in a mail sent by NS.

    I went ahead to check the log and found this:

        2017-09-22 08:18:12,186 [16] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 325] An unhandled exception occurred
    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
       at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
       at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
       at System.String.Format(String format, Object[] args)
       at NewsletterStudio.Infrastucture.Compression.LegacyEncryptionCompressor.Decompress(String compressedText)
       at NewsletterStudio.Infrastucture.Compression.LegacySimpleAESProxyCompressor.Decompress(String compressedText)
       at NewsletterStudio.External.TrackPixel.ProccessQueryString()
       at NewsletterStudio.External.TrackPixel.Page_Load(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.umbraco_newsletterstudio_tracking_trackpixel_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\3c946d77\9bf90825\App_Web_trackpixel.aspx.e621b34f.3shjdqrh.0.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    repeatedly.

    So, I commented the rewrite rule out and it stopped.

    Anyone have an idea how to solve or work around this?

    Kind regards, Bruno

  • Markus Johansson 1938 posts 5866 karma points MVP 2x c-trib
    Sep 22, 2017 @ 09:19
    Markus Johansson
    0

    Hi!

    Did you get the "A potentially dangerous Request.Path value was detected from the client (:)."-error only on https? That sounds really strange, maybe your rewrite is adding something strange to the url?

    Or is it the error that you posted from the log? "Index (zero based) must be greater than or equal to zero and less than the size of the argument list.", are you only getting this on https as well?

    Cheers!

    // m

  • Bruno Olsen 75 posts 316 karma points
    Sep 22, 2017 @ 10:54
    Bruno Olsen
    0

    Hi Markus

    The rewrite looks like this:

    <rewrite>
        <rules>
            <rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
                <match url="*" negate="false" />
                <conditions logicalGrouping="MatchAny">
                    <add input="{HTTPS}" pattern="off" />
                </conditions>
                <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
            </rule>
        </rules>
    </rewrite>
    

    I found it odd as well.

    There error in the log didn't occur before the rewrite was active, and hasn't occured since it was deactivated.

    I noticed something else: While the "Index (zero based).." error was occuring newsletterSendout responded with false:

    2017-09-22 08:07:27,685 [16] INFO  umbraco.presentation.publishingService - [Thread 346] newsletterstudioSendout has been called with response: False
    

    After the rewrite was deactivated it responds with true.

    When the rewrite was activated I didn't notice any odd things in the URLs when accessing the site in a browser.

    Kind regards, Bruno

Please Sign in or register to post replies

Write your reply to:

Draft