One of out testers stumbled on an error which I think must be a bug in EPiServer.
We are using the new LinkCollection property but has made our own presentations of the links. One of the things we do is to check if the group "Everyone" has read access or not, so we can present a icon the "flags" that this is something not everyone has the right to see even if you as the logged in user can.The problem is that if you create a folder in the file manager wich contains spacesthe QueryDistinct access fails due to that the GetDirectory returns null.
See the code below
//Try to get the directory for the current file
UnifiedDirectory directory = HostingEnvironment.VirtualPathProvider.GetDirectory(path) as UnifiedDirectory;
//Has the group everyone read access?
return directory.ACL.QueryDistinctAccess(PrincipalInfo.AnonymousPrincipal, AccessLevel.Read);
catch (UnauthorizedAccessException ex)
// The current user doesn't have access to the folder. Hence some restrictions apply.
have you tired using url encoding/decoding on the path?
Hmm why didn't I think of that... UrlEncoding did the trick.