cancel
Showing results for 
Search instead for 
Did you mean: 

Problem accessing folder in Share

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

         I'm trying to access a folder in share and I get the error in red on the screen:

Error in Chrome & IE8

10140010 Wrapped Exception (with status template): 10140774 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.js': 10140773 Failed to execute search: +PATH:"/app:company_home/st:sites/cm:ziath/cm:documentLibrary/cmSmiley Tongueroduction/*" -TYPE:"{http://www.alfresco.org/model/content/1.0}thumbnail" -TYPE:"{http://www.alfresco.org/model/content/1.0}systemfolder" -TYPE:"{http://www.alfresco.org/model/forum/1.0}forums" -TYPE:"{http://www.alfresco.org/model/forum/1.0}forum" -TYPE:"{http://www.alfresco.org/model/forum/1.0}topic" -TYPE:"{http://www.alfresco.org/model/forum/1.0}post" -@cm\:lockType:READ_ONLY_LOCK


  The other folders I can access fine and I can also access the folder in the alfresco webapp and via sharepoint.  It is very difficult for me to run the javascript debugger as the server is nowhere near me and is Ubuntu server with no windowing toolkit - I can however add debugging to the javascript file to write to the logs (with a bit of help from someone).

My system is Alfresco Server - 3.4b (upgraded from 3.3C), Ubuntu server (10.04), 4 processors, 4Gb of Ram - instaleld via the Alfresco installer.  My client is Windows Vista, I've got the same error in Chrome and IE8 but in IE8 the folders are shown whereas in Chrome not.  However in IE8 although the folders are shown teh breadcrumb does not update and the css is a little screwy (the menu for View Details, Edit Metadata, etc is not on the left but next to the folder description).

  Could someone help me track this down please - I'm trying to get our Alfresco install running smoothly (it seems to always 'nearly' work) and I've got a few things to sort out (the next is a user who has problems uploading but I'll sort that next week).

Cheers,

Neil
3 REPLIES 3

loftux
Star Contributor
Star Contributor
Hi,

First check that you are actually running 3.4.b. Why am I asking? The file that puts together the query to list file is
tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/filters.lib.js (an include to the dolist.get.js that is failing)
(it may be something else, as I am not completely sure what exact url you are listing)
In that file, it was recently updated to use query with short qname,
      // Common types and aspects to filter from the UI - known subtypes of cm:content and cm:folder      var filterQueryDefaults =         " -TYPE:\"thumbnail\"" +         " -TYPE:\"systemfolder\"" +         " -TYPE:\"fm:forums\"" +         " -TYPE:\"fm:forum\"" +         " -TYPE:\"fm:topic\"" +         " -TYPE:\"fm:post\"" +         " -@cm\\:lockType:READ_ONLY_LOCK";‍‍‍‍‍‍‍‍‍
and what you have pasted does use the full qname.

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

         Thanks for picking that up it is 3.4a not 3.4b.  Should I look into upgrading to 3.4b?

Cheers,

Neil

loftux
Star Contributor
Star Contributor
I'm not sure that it will fix you particular problem, but in my opinion 3.4.b is a much better release (300+ fixed issues). So if that is an option for you, I suggest you upgrade.
If not upgrading, you can in filters.lib.js start adding
logger.log("My log output");
to catch what is going on. Of changing to the appropriate output text Smiley Wink
You will also have to set
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=debug
in log4j.properties