It returns the perfect set of information, but only for those nodes that are marked as favourites. I tried to remove the filter, but then the result set is not useful anymore. It then contains only the seven folders "Shared", "IMAP Attachements", "Guest Home", "User Homes", "Sites" and so on but does not retrieve files and folders nested in subfolders.
Furthermore, the script mentioned above is working perfectly fine on my local Alfresco instance, but after deploying it on the server, the result set is empty, even if I mark documents as favourites. What could be the reason therefore?
* Why do you want to retrieve all the documents and what you're going to do with that list? * When you're accessing it from the server, any error is logged into alfresco.log file?