Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-12884

Facet search page fails to load when user is logged in with Kerberos SSO

    Details

      Description

      When a user is logged in with Kerberos SSO the facet search page fails to load with the following error

      2014-12-02 11:06:26,157  ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-123] Exception from executeScript - redirecting to status template error: 11020039 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': 11020038 TypeError: Cannot read property "GROUP_ALFRESCO_ADMINISTRATORS" from undefined (file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#1665)
       org.springframework.extensions.webscripts.WebScriptException: 11020039 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js': 11020038 TypeError: Cannot read property "GROUP_ALFRESCO_ADMINISTRATORS" from undefined (file:/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/pages/faceted-search/faceted-search.get.js#1665)
      

      If the same user logs in to share with the standard login page (on a pc not in domain), the search page works.

      I could work around the issue by commenting the following rows in facet-search.get.js (starting row 37)

      if (user.isAdmin == true ||
          //_processedUserData.groups["GROUP_ALFRESCO_ADMINISTRATORS"] == true ||
          //_processedUserData.groups["GROUP_ALFRESCO_SEARCH_ADMINISTRATORS"] == true ||
          _processedUserData.isNetworkAdmin == true)
      {
      

      The _processedUserData.groups seem to be set in file share-header.lib.js. For what I can tell the user.properties["alfUserGroups"] seem to be empty. If this is used elsewhere in the code this may actually cause other errors as well.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                loftux Peter Löfgren
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel