U4-2791 - Error creating node containing @ v6.1.4

Created by Mathijs B 04 Sep 2013, 15:50:42 Updated by Sebastiaan Janssen 11 Oct 2013, 08:39:58

Relates to: U4-2607

Relates to: U4-3102

Creating a node containing a @ results in:

Parameter '@UMBRACO' specified but none of the passed arguments have a property with this name (in 'WHERE ([umbracoNode].[nodeObjectType] = 'c66ba18e-eaf3-4cff-8a22-41b16d66a972' AND [umbracoNode].[parentID] = 1535 AND upper([umbracoNode].[text]) like 'TEST@UMBRACO.ORG%')')

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.ArgumentException: Parameter '@UMBRACO' specified but none of the passed arguments have a property with this name (in 'WHERE ([umbracoNode].[nodeObjectType] = 'c66ba18e-eaf3-4cff-8a22-41b16d66a972' AND [umbracoNode].[parentID] = 1535 AND upper([umbracoNode].[text]) like 'TEST@UMBRACO.ORG%')')

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:

[ArgumentException: Parameter '@UMBRACO' specified but none of the passed arguments have a property with this name (in 'WHERE ([umbracoNode].[nodeObjectType] = 'c66ba18e-eaf3-4cff-8a22-41b16d66a972' AND [umbracoNode].[parentID] = 1535 AND upper([umbracoNode].[text]) like 'TEST@UMBRACO.ORG%')')] Umbraco.Core.Persistence.<>c__DisplayClass1.b__0(Match m) +990 System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) +302 System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) +68 Umbraco.Core.Persistence.Sql.Build(StringBuilder sb, List1 args, Sql lhs) +112 Umbraco.Core.Persistence.Sql.Build() +144 Umbraco.Core.Persistence.Database.Fetch(Sql sql) +29 Umbraco.Core.Persistence.Repositories.ContentRepository.EnsureUniqueNodeName(Int32 parentId, String nodeName, Int32 id) +1027 Umbraco.Core.Persistence.Repositories.ContentRepository.PersistNewItem(IContent entity) +169 Umbraco.Core.Persistence.Repositories.RepositoryBase2.PersistNewItem(IEntity entity) +66 Umbraco.Core.Persistence.UnitOfWork.PetaPocoUnitOfWork.Commit() +324 Umbraco.Core.Services.ContentService.CreateContentWithIdentity(String name, Int32 parentId, String contentTypeAlias, Int32 userId) +365 umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId) +202 umbraco.contentTasks.Save() +115 umbraco.presentation.create.dialogHandler_temp.Create(String NodeType, Int32 TypeId, Int32 NodeId, String Text) +755 umbraco.cms.presentation.create.controls.content.DoCreation() +225 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707

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

Comments

Sebastiaan Janssen 04 Sep 2013, 16:41:58

@Morten I guess EscapeAtArgument needs to do a Contains instead of StartsWith.


Morten Christensen 04 Sep 2013, 17:18:05

Yea, could be. Find it a bit strange that we're starting to ser these issues but must be after having added the EnsureUniqueName (query) which does these types of lookups (where the name is 'like' something).


Priority: Normal

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.1.4

Due in version: 6.2.0

Sprint:

Story Points:

Cycle: