U4-4544 - Issue: TagService.GetAllTags(group) throws Exception in MappingResolver

Created by Robert Foster 27 Mar 2014, 23:17:42 Updated by Sebastiaan Janssen 31 Mar 2014, 11:00:04

When I call the GetAllTags(group) method of the TagService with a specified group I get the following exception: Exception: Invalid Type: A Mapper could not be resolved based on the passed in Type Umbraco.Core.Persistence.Mappers.<>c__DisplayClass1.b__0(Type type1) in d:\Users\rfoster\Source\Repos\Umbraco-CMS\src\Umbraco.Core\Persistence\Mappers\MappingResolver.cs:49 System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) +72 Umbraco.Core.Persistence.Mappers.MappingResolver.ResolveMapperByType(Type type) in d:\Users\rfoster\Source\Repos\Umbraco-CMS\src\Umbraco.Core\Persistence\Mappers\MappingResolver.cs:34 Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper1..ctor() in d:\Users\rfoster\Source\Repos\Umbraco-CMS\src\Umbraco.Core\Persistence\Querying\ModelToSqlExpressionHelper.cs:20 Umbraco.Core.Persistence.Querying.Query1..ctor() in d:\Users\rfoster\Source\Repos\Umbraco-CMS\src\Umbraco.Core\Persistence\Querying\Query.cs:14 Umbraco.Core.Persistence.Querying.Query`1.get_Builder() in d:\Users\rfoster\Source\Repos\Umbraco-CMS\src\Umbraco.Core\Persistence\Querying\Query.cs:27 Umbraco.Core.Services.TagService.GetAllTags(String group) in d:\Users\rfoster\Source\Repos\Umbraco-CMS\src\Umbraco.Core\Services\TagService.cs:53

Calling the method without specifying the group works as expected.

Comments

Robert Foster 28 Mar 2014, 00:11:16

I've submitted a pull request to resolve this issue:

https://github.com/umbraco/Umbraco-CMS/pull/337


Robert Foster 30 Mar 2014, 08:16:58

Re-submitted the pull request after cleaning up my forked repository.

https://github.com/umbraco/Umbraco-CMS/pull/341


Sebastiaan Janssen 31 Mar 2014, 10:59:58

Thanks!


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.1.0, 7.0.4

Due in version: 7.1.0

Sprint:

Story Points:

Cycle: