Sample Drools - does not display entries for a user that have tags that include a space

Description

Pre-conditions - sample-drools and drools-web are deployed

In 6.1.10 EE GA1 -

1. Create a user in the "European" region - in the case of testing - this was Berlin, Germany.
2. Assign that user Site Administrator role for the Guest Community
3. Create one page that has the Sample Drools portlet on it. Create a different page with the Blogs portlet.
4. Create TWO blogs entries - one that is tagged "european" and another that is tagged "european symposium".
5. Log out, and then back IN as the user you created with address in Berlin.
6. Navigate to the page with the Sample Drools portlet on it.
7. Result: only the content tagged with "european symposium" is displayed.

Test cases were written with this in mind.

In the 6.1.20 shelf - follow the above steps BUT instead of the previous result - the opposite happens - only content tagged with "european" displays - content tagged with "european symposium" does not display.

Environment

Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 62d2ccf381c16ed85774c03f004cefe6bf138a1f.

Activity

Show:

Oriana Tham July 25, 2012 at 10:39 AM

PASSED Manual Testing following the steps in the description.

Fixed on:

Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 27d604301febed891f0d7eb0ddab58055cac8d55. Plugins 6.1.x EE GIT ID: fffb0a26dde542faa3f5e813d9f9ff7ab2bd967f.

  • Sample Drools displays entries with tags that include a space

petershin July 13, 2012 at 10:16 AM

Minor api change for BooleanClauseFactoryUtil#create

petershin July 12, 2012 at 5:53 PM

Simplified code after discussing faceted search with Ray:

You're not really looking to do a "facet". All you want is to add some limits to the query.

You could do the same by adding some extra BooleanClauses to the searchContext as well.

searchContext.setBooleanClauses(BooleanClause[] booleanClauses)

That's really the correct way to do it.

petershin July 12, 2012 at 5:53 PM

The test cases have changed as a result of http://issues.liferay.com/browse/LPS-28296

  • for users with an address in "Brazil", "Canada", "Mexico" or "United States", content tagged "americas" will be displayed.

  • for users with an address in "France", "Germany", "Spain", content tagged "european" will be displayed.

  • for users with an address in "India", "Malaysia", "Singapore", content tagged "indian" will be displayed.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Epic/Theme

Fix Priority

3

Bug Type

Regression Bug

Affects versions

Priority

Zendesk Support

Created July 9, 2012 at 5:29 PM
Updated June 24, 2023 at 3:49 PM
Resolved July 13, 2012 at 2:25 PM