U4-10370 - Culture and hostnames with "æøå" after /

Created by Esben Villefrance Rasmussen 31 Aug 2017, 08:19:47 Updated by Claus Jensen 08 Sep 2017, 09:22:49

Tags: Gold partner

Relates to: U4-10392

Subtask of: U4-9609

Hello We had a client who would like to set the culture and hostnames to "yourdomain.dk/lørdag" but after saving, and clicking on the page againt, an error appears. Ive tried with url encodings but without success. I expected when "æøå" works before the "/" it would work after the slash aswell, but that dosnt apper to be the case.

The error recived is the following:

An error occured Mapping types: Content -> String[] Umbraco.Core.Models.Content -> System.String[]

Destination path: ContentItemDisplay.Urls.Urls

Source value: Umbraco.Core.Models.Content

Exception Details

AutoMapper.AutoMapperMappingException:

Mapping types: Content -> String[] Umbraco.Core.Models.Content -> System.String[]

Destination path: ContentItemDisplay.Urls.Urls

Source value: Umbraco.Core.Models.Content Stacktrace

at Umbraco.Web.Editors.ContentController.GetById(Int32 id) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown ---

Comments

Claus Jensen 01 Sep 2017, 10:45:49

Have found the issue and it's fixed in PR: https://github.com/umbraco/Umbraco-CMS/pull/2167

Creating a new issue for another bug I found with these characters being in the hostname before the slash: http://issues.umbraco.org/issue/U4-10378


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.5

Due in version: 7.6.6

Sprint: Sprint 67

Story Points: 1

Cycle: 4