U4-11550 - Creating a Document Type or Template with an Ampersand does weird things and fails.

Created by Chris Houston 31 Jul 2018, 23:16:15 Updated by Sebastiaan Janssen 02 Aug 2018, 08:56:21

Tags: PR

Is duplicated by: U4-10344

Your report will have a greater chance of being addressed if you can give us clear steps to reproduce the issue, please answer the following questions in as much detail as possible: What did you do?

Try and create a document type with a string including an Ampersand and a few extra characters for good measure, e.g.

Maybe !"£$%^&*() Ok Today

What did you expect to happen? I'd expect that the name remains: Maybe !"£$%^&*() Ok Today The document type alias should be: maybeStarOkToday And the Template should be saved as: MaybeStarOkToday.cshtml

What actually happened? The alias becomes: maybe The document type is NOT created. The template IS created as: MaybeStarOkToday.cshtml

I have also attached a screen shot of another example which shows how the alias is cut off at the Ampersand and the error message that is shown when it fails to create the document type.

1 Attachments

Comments

Chris Houston 01 Aug 2018, 01:49:45

I have just submitted a pull request for this issue: https://github.com/umbraco/Umbraco-CMS/pull/2828


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions:

Due in version: 7.12.0

Sprint:

Story Points:

Cycle: