This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d25f4405-9626-4a42-a1aa-ba88733f5415 XWIKI-22287 Open

Error in attribute in XWiki Search (Search Facets > Location)

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-df73a98b-6cba-40e9-ad8f-42f70d8ee8bd JP Kleijn created this issue on 20/Jun/24 14:28
 
Summary: Error in attribute in XWiki Search (Search Facets > Location)
Issue Type: cid:jira-generated-image-avatar-d25f4405-9626-4a42-a1aa-ba88733f5415 Bug
Affects Versions: 16.4.0
Assignee: Unassigned
Components: Search - Solr
Created: 20/Jun/24 14:28
Environment: Not relevant.
Labels: solr
Priority: cid:jira-generated-image-static-major-2b617499-02ec-4a1a-b4d7-a16b9447f0e7 Major
Reporter: JP Kleijn
Description:

 

In the HTML I spotted an attribute with an invalid value. Perhaps a velocity error or inconsistancy? See HTML below, in specific the "data-entity" attribute in the ordered list of the location facet. To reproduce one has to first select a space and then check the HTML of the breadcrumb.

<div id="space_facet-dropdown" class="search-facet-body">
  <div class="selectedLocation">
    <ol class="breadcrumb breadcrumb-expandable" data-entity="$escapetool.xml($services.model.serialize($entityReference, " local'))'="" data-limit="4">
      <li class="wiki">
        <a href="/xwiki/bin/view/Main/Search?r=1&amp;text=best&amp;f_type=DOCUMENT&amp;f_locale=en&amp;f_locale=" title="Home">
          <span class="fa fa-home" aria-hidden="true"></span>
        </a>
      </li>
      <li class="active space">IRC</li>
    </ol>
  </div>
</div>

 

 

 
 

1 update

 
cid:jira-generated-image-avatar-df73a98b-6cba-40e9-ad8f-42f70d8ee8bd Changes by JP Kleijn on 20/Jun/24 14:32
 
Description:  

In the HTML I spotted an attribute with an invalid value. Perhaps a velocity error or inconsistancy? See HTML below, in specific the "data-entity" attribute in the ordered list of the location facet. To reproduce one has to first select a space
in the search facets and then check the HTML of the breadcrumb in the search facets .
{code:java}
<div id="space_facet-dropdown" class="search-facet-body">
  <div class="selectedLocation">
    <ol class="breadcrumb breadcrumb-expandable" data-entity="$escapetool.xml($services.model.serialize($entityReference, " local'))'="" data-limit="4">
      <li class="wiki">
        <a href="/xwiki/bin/view/Main/Search?r=1&amp;text=best&amp;f_type=DOCUMENT&amp;f_locale=en&amp;f_locale=" title="Home">
          <span class="fa fa-home" aria-hidden="true"></span>
        </a>
      </li>
      <li class="active space">IRC</li>
    </ol>
  </div>
</div>{code}