Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coveo Compatibility #135

Open
Antonytm opened this issue Mar 25, 2024 · 0 comments · May be fixed by #136
Open

Coveo Compatibility #135

Antonytm opened this issue Mar 25, 2024 · 0 comments · May be fixed by #136

Comments

@Antonytm
Copy link
Contributor

Dianoga 6.1.0

Environment description

Sitecore 10.3 + Coveo

What configs you have enabled

Default Dianoga Setup

Reproducible steps

  1. Setup Dianoga
  2. Setup Coveo
  3. Add imageUrl computed field ImageUrlComputedField
<!-- Those are examples of built in Coveo computed fields. Use them to compute an image URL or alt from an image field. -->
<!--
	<field fieldName="imageUrl" sourceField="Image">Coveo.SearchProvider.ComputedFields.ImageUrlComputedField, Coveo.SearchProviderBase</field>
	<field fieldName="imageAlt" sourceField="Image">Coveo.SearchProvider.ComputedFields.ImageAltComputedField, Coveo.SearchProviderBase</field>
-->
  1. Try to build Coveo Indexes
    Actual Result: Index was built
    Expected Result: Index build was failed

Relevant logs

ManagedPoolThread #0 12:32:34 Coveo.SearchProvider.Documents.AbstractDocumentFactory.TryBuildDocument(:0) ERROR An exception occurred while trying to process the item {DAE3864B-0222-4291-95A7-2472E32AC111}: Value cannot be null.
Parameter name: httpContext
Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: httpContext
Source: System.Web
   at System.Web.HttpContextWrapper..ctor(HttpContext httpContext)
   at .......SitecoreExtensions.Media.MediaProvider.GetMediaUrl(MediaItem item, String url) in ....
   at Dianoga.NextGenFormats.MediaProvider.GetMediaUrl(MediaItem item, MediaUrlBuilderOptions options)
   at ......SitecoreExtensions.Media.MediaProvider.GetMediaUrl(MediaItem item, MediaUrlBuilderOptions options) in ....\Foundation\SitecoreExtensions\website\Media\MediaProvider.cs:line 24
   at Coveo.Framework.Utils.UrlUtilities.GetMediaUrl(IItem p_Item)
   at Coveo.SearchProvider.ComputedFields.ImageUrlComputedField.ComputeFieldValue(IItem p_Item)
   at Coveo.SearchProvider.Documents.AbstractDocumentBuilder.AddComputedFields()
   at Coveo.SearchProvider.Documents.DocumentFactory.<>c__DisplayClass3_0.<CreateIndexableItem>b__3()
   at Coveo.SearchProvider.Documents.AbstractDocumentFactory.TryBuildDocument(Action p_Action, IIndexable p_Indexable)
@Antonytm Antonytm linked a pull request Mar 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant