cancel
Showing results for 
Search instead for 
Did you mean: 

5.0.a faceted search problem

cflee1623
Champ in-the-making
Champ in-the-making
When I login as a site manager and perform a simple keyword search ,  things are fine;  I get the instant result listed (fig-1, see attachment.jpg) and then the faceted-search result with the filters (fig-2).

However, if I login as a site collaborator,  with the same keyword,  I can get the instant result (fig-3) but the faceted search result does not appear, I get a blank page (fig-4).

I have customized the edit properties forms and advanced search form to include the categories field.  Is the above problem a 5.0.a bug or due to improper customization or else?

Please help,  thanks.
9 REPLIES 9

cflee1623
Champ in-the-making
Champ in-the-making
The said problem goes away after I deleted and re-created the two test accounts, with the same parameters and rights as before.

siempo2000
Champ in-the-making
Champ in-the-making
Hi cflee
We are also having the same issue but due to the fact we are using ldap synchronization we cannot just delete and recreate all users.
I wonder what is wrong, to us it looks like a tomcat user right issue but we don't have enough knowledge of Alfresco to solve it ourselves.

Any help is greatly appreciated

Siem

yuri_andrade
Champ in-the-making
Champ in-the-making
We are also having the issue with LDAP synchronization. Has anyone found a solution to this?

Yuri.

monker1980
Champ in-the-making
Champ in-the-making
We are also having the same problem on a new install of 5.0.a with LDAP authentication. Only affects users who are populated using LDAP. Are the developers aware of this?

dmaddock
Champ in-the-making
Champ in-the-making
Here is a quick work around to give search functionality.

It replaces the faceted search page with a simpler search page, however it does allow users to make a search

The problem we are seeing in the Alfresco Search seems to only impact users synced from LDAP.


replace $TOMCAT_HOME with the appropriate tomcat home on your system.


cd $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/imports


edit  share-header.lib.js
Search for the word   Faceted

You should see a block of code like-

            {
               id: "HEADER_SEARCH",
               name: "alfresco/header/SearchBox",
               align: "right",
               config: {
                  id: "HEADER_SEARCH_BOX",
                  site: page.url.templateArgs.site,
                  linkToFacetedSearch: true,
                  repository: (page.id == "repository" || page.id == "myfiles" || page.id == "sharedfiles")
               }

Change the linkToFacetedSearch:true  to linkToFacetedSearch:false

Save the file and restart alfresco.



Now to find the root cause of the issue now my users have stopped complaining 🙂

mnemonic
Champ on-the-rise
Champ on-the-rise
I experience the same problem with LDAP sync. Hopefully this will be fixed soon. In the meantime I use this workaround. Tnx.

cmoffatt
Champ in-the-making
Champ in-the-making
I don't have the solution, but I may have a possible cause of the problem.

On the blank page, there's an error in the javascript console:

Uncaught SyntaxError: Unexpected identifier      faceted-search:202

When I looked at the "view source" on line 202 I noticed a variable "groupMemberships" that has the groups that the LDAP user belongs to.  My LDAP users are members of groups that have spaces in the names.  I also noticed that the group names aren't escaped with slashes or anything.  I have a feeling that the group names with spaces and that they aren't escaped is the problem, but I'm not sure how to fix it yet.

cmoffatt
Champ in-the-making
Champ in-the-making
I just confirmed that what I suspected was the problem was true.  I changed my LDAP groups so they would not have spaces or any characters that needed to be escaped, and the faceted search works just fine.

I'm not expert on the Alfresco code, so I'm not sure where to fix the problem, but the fix will be that the groupMemberships information needs to be escaped to handle groups with spaces or other characters that need escaping.

mrksjs
Champ on-the-rise
Champ on-the-rise
swap all 'spring-surf-1.2.1-M16.jar' with this https://dl.dropboxusercontent.com/u/6004537/spring-surf-1.2.1-M16-search-page-groups-fix.jar

bug also applies to normal users when member of a group with space or hyphen in group name.