1
Vote

injectMeta PageUnstructured query exception

description

When trying any injectMeta exception is raised. So for query #injectmeta(PageUnstructured:audience,audience) you get
 
Trace: Executing "#injectmeta(PageUnstructured:audience,audience)"
Initializing content---- UNHANDLED EXCEPTION ----
Thread Name: <No Name>
System.TypeInitializationException: The type initializer for 'Nested' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: str
at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Web.InternalSecurityPermissions.get_AppPathDiscovery()
at System.Web.HttpRuntime.get_AppDomainAppPath()
at umbraco.content..ctor()
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.Activator.CreateInstanceT
at umbraco.Singleton1.Nested..cctor()
--- End of inner exception stack trace ---
at umbraco.Singleton
1.get_Instance()
at umbraco.content.<.cctor>b__0(Object )
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
TestCase 'SearchTools.Tests.Tests.TestMetaInjection'
failed: SearchTools.Exceptions.SearchToolsException : Parser Error
----> SearchTools.Exceptions.SearchToolsException : Could not locate attibute or data with key 'audience'
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Search\Searcher.cs(89,0): at SearchTools.Search.Searcher.Search(String querystring, IndexReader index, Int32 max)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Search\Searcher.cs(49,0): at SearchTools.Search.Searcher.Search(String querystring)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\SearchTools.Tests\SearchTests.cs(16,0): at SearchTools.Tests.Tests.DoSearch(String q)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\SearchTools.Tests\SearchTests.cs(61,0): at SearchTools.Tests.Tests.TestMetaInjection()
--SearchToolsException
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Providers\PageMeta.cs(72,0): at Searchtools.Providers.PageUnstructured.ProcessUmbracoNode(String field, XPathNavigator pageXml)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Providers\PageMeta.cs(32,0): at Searchtools.Providers.PageUnstructured.get_Item(String key)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Providers\MetaDataResolver.cs(18,0): at SearchTools.Providers.MetaDataResolver.GetValue(ProviderReference source)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Factories\LinkFactory.cs(24,0): at SearchTools.Factories.LinkFactory.Create(ProviderReference providerref, String field)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\QueryParser\QueryLanguageTreeParser.cs(708,0): at SearchTools.QueryParser.QueryLanguageTreeParser.metaInjection(AST _t)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\QueryParser\QueryLanguageTreeParser.cs(513,0): at SearchTools.QueryParser.QueryLanguageTreeParser.function(AST _t)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\QueryParser\QueryLanguageTreeParser.cs(365,0): at SearchTools.QueryParser.QueryLanguageTreeParser.expression(AST _t)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\QueryParser\QueryLanguageTreeParser.cs(255,0): at SearchTools.QueryParser.QueryLanguageTreeParser.clause(AST _t)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\QueryParser\QueryLanguageTreeParser.cs(238,0): at SearchTools.QueryParser.QueryLanguageTreeParser.clause(AST _t)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\QueryParser\QueryLanguageTreeParser.cs(147,0): at SearchTools.QueryParser.QueryLanguageTreeParser.query(AST _t)
C:\code\vs2005\umbracoV3Controls\RyansSearchTools\Search\Searcher.cs(85,0): at SearchTools.Search.Searcher.Search(String querystring, IndexReader index, Int32 max)
 
The field audience is in the index also this exception also occurs with other fields. Looks like there is issue with query parser. I have uploaded index i am working with for you to test.

file attachments

comments