Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Access denied problems when indexing files

Vote:
 

Im having some problems indexing files using the CMS integration indexing job since we removed the Everyone group from some of the VPP folders. We get an access denied exception in the scheduelled job and the indexing is aborted. "Ett fel inträffade när jobbet kördes: You are not authorized to access /The_folder/".

The job was run manually by a user that is adminstrator.

The folders have the administrators group with full access rights asigned to it.

Is there anything i can do to alow Find to index these folders?

#76218
Oct 21, 2013 10:59
Vote:
 

It seems that it is GetDirectory() in the scheduelled job that is throwing the exception.

2013-10-23 07:54:17,276 [67] ERROR EPiServer.DataAbstraction.ScheduledJob: Job EPiServer.Find.Cms.Job.IndexingJob failed
System.UnauthorizedAccessException: You are not authorized to access /The_Folder/
   at EPiServer.Web.Hosting.VirtualPathVersioningProvider.GetDirectory(String virtualPath)
   at EPiServer.Web.Hosting.VirtualPathVersioningProvider.GetDirectory(String virtualPath)
   at EPiServer.Web.Hosting.VirtualPathVersioningProvider.GetDirectory(String virtualPath)
   at EPiServer.Web.Hosting.VirtualPathVersioningProvider.GetDirectory(String virtualPath)
   at EPiServer.Web.Hosting.VirtualPathVersioningProvider.GetDirectory(String virtualPath)
   at EPiServer.Web.Hosting.VirtualPathVersioningProvider.GetDirectory(String virtualPath)
   at EPiServer.Find.Cms.FileIndexer.ReIndex(Action`1 statusAction, Func`1 isStopped)
   at EPiServer.Find.Cms.Job.IndexingJob.Execute()
   at EPiServer.DataAbstraction.ScheduledJob.<>c__DisplayClass9.<InternalExec>b__5()

As far as i know GetDirectory() will always perform an access check on the folder you are trying to access. If im right in that the scheduelled job will always fail when running in "scheduelled mode" and the folder dosent have read rights for Everyone...

Have no one else tried to index folders where Everyone dosent have read access?

#76423
Oct 24, 2013 10:33
Vote:
 

I ended up making my own version of EPiServer.Find.Cms.Job.IndexingJob where i run the job as a user that has correct accesrights...

#76482
Oct 25, 2013 14:21
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.