262 views

Description

Global Text Search for Admin users is returning inactive and retired KB Articles.

Steps to Reproduce

  1. Navigate to Knowledge Base > Retired
  2. Copy one of these KB articles number and enter this into the Global Text Search
Notice that it searches the article even though the Conditions defined on the Search Groups mentions Workflow IS Published. The same happens with inactive KB articles.

Workaround

Create a before query business rule against the kb_knowledge table that filters these out if the user is doing a text search. For example:

// It is being used to work around PRB627409 where retired articles are being pulled back by knowledge search
// First we grab the URL and turn it into a string
var action = gs.action.getGlideURI().toString();
// Next we check to see if "textsearch.do" is in the URL and if so we exclude retired kb_knowledge records
if(action.search("textsearch.do") > -1) {
current.addQuery('workflow_state','!=','retired');
}

 

For Jakarta version, instead of "textsearch.do" use "text_search_exact_match.do".

 

Additional Information

This is expected behavior, due to the read privileges set on KB Knowledge.

By default, admins are given access to retired KB articles. Regular users will not be able to access retired KB Articles via Global Text search, unless an admin has granted them read access to retired records.

 


Related Problem: PRB627409

Seen In

Eureka Patch 10
Eureka Patch 10 Hot Fix 1
Eureka Patch 11
Eureka Patch 12 Hot Fix 2
Eureka Patch 13 Hot Fix 5
Eureka Patch 4 Hot Fix 4
Eureka Patch 7
Fuji Patch 1
Fuji Patch 3

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-08-15 13:33:31
Published:2018-08-15