Double quotes in page (tab) name breaks Advanced URL Rewriter.

Description

Server Error in '/' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]

DotNetNuke.Entities.Urls.AdvancedUrlRewriter.Handle404OrException(FriendlyUrlSettings settings, HttpContext context, Exception ex, UrlAction result, Boolean transfer, Boolean showDebug) +45

DotNetNuke.Entities.Urls.AdvancedUrlRewriter.RewriteUrl(Object sender, EventArgs e) +295

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045

*Note that one can workaround this issue by explicitly setting the "Custom URL" for the page; however, I encountered problems doing this from the UI and ultimately had to edit the DB directly to accomplish.

QA Test Plan

None

Attachments

1

Activity

Show:

Will MorgenweckDecember 13, 2016 at 12:41 AM

Batch update of issues that won't be addressed due to change in functionality from version 9.0. If you feel these issues are still relevant, please feel free to re-open.

cathal connollyDecember 23, 2013 at 10:22 PM

I have not tried that setting, I was using the default settings so it appears that advanced mode supports quotes unless you use that setting - this information will be useful for whatever engineer eventually works this ticket

James HallDecember 23, 2013 at 9:47 PM

...so that setting made the difference? You got it to fail with 7.2.1?

cathal connollyDecember 23, 2013 at 9:02 PM

No problem - in future when you raise an issue like this can you please note any relevant configuration changes you have made, otherwise we are unlikely to be able to recreate the issue. I'll mark this as triaged, so product can review (FYI I doubt this will make 7.2.1 as there's plenty of work assigned to that already and we have the holidays coming up, it's likely to be 7.2.2 at least before this is reviewed)

James HallDecember 23, 2013 at 7:48 PM

That is part of the problem. the URL ends up containing the quotes ("). I'm using the switch (AUM_ReplaceSpaceWith = None) so any url encoded characters are removed as opposed to replaced with a dash , which appears to be the default. It acts as if that switch causes another code block to execute that replaces spaces ( ) just fine but fails to replace other characters like a quote.

Won't Fix

Details

Assignee

Reporter

Severity

Minor

Triage

Triaged

Includes Code Fix

No

Components

Affects versions

Priority

Created December 23, 2013 at 2:06 PM
Updated December 13, 2016 at 12:41 AM
Resolved December 13, 2016 at 12:41 AM