Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN901 - Site Assets - Admin user has no permission to view folderDNN901 - Site Assets - Admin user has no permission to view folder
Previous
 
Next
New Post
2/21/2017 5:09 PM
 

In DNN901, when logged in as a site admin, I attempt to go to the Site Assets (File Manager).  The following error is thrown:

AbsoluteURL:/API/DigitalAssets/ContentService/GetFolderContent

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:d93e9c3a-72b5-4b7c-9830-54bd67b940c4

AssemblyVersion:

PortalId:-1

UserId:-1

TabId:-1

RawUrl:

Referrer:

UserAgent:

ExceptionHash:WCszWYeKM+9gu8o1U1rd/GFt1xI=

Message:The user doesn't have the correct permissions to browse this folder.

StackTrace:

at DotNetNuke.Services.Assets.AssetManager.GetFolderContent(Int32 folderId, Int32 startIndex, Int32 numItems, String sortExpression, SubfolderFilter subfolderFilter) at DotNetNuke.Modules.DigitalAssets.Components.Controllers.DigitalAssetsController.GetFolderContent(Int32 moduleId, Int32 folderId, Int32 startIndex, Int32 numItems, String sortExpression) at DotNetNuke.Modules.DigitalAssets.Services.ContentServiceController.GetFolderContent(GetFolderContentRequest r) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Tracing.ITraceWriterExtensions.d__18`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at System.Web.Http.Controllers.ExceptionFilterResult.d__0.MoveNext()

 

InnerMessage:

InnerStackTrace:


 

Source:DotNetNuke

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:

Server Name: WIN-3N55206URU9

 

How to resolve?

BTW, this is a user with administrator role.  And the page allows administrators to see and edit the page.

 

 
New Post
2/21/2017 6:18 PM
 
So after some database surgery, I was able to get the admin user to have permission to use the filemanager/site assets without getting the exception.

I inserted records into the FolderPermission table for Read,Write and Browse for each of the existing folders on the site. See 3 insert statements below.

INSERT INTO [Interport901db].[dbo].[FolderPermission] (FolderID,PermissionID, AllowAccess, RoleID, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate)
VALUES (75, 5, 1, 11, 1, GETDATE(), 1, GETDATE())
INSERT INTO [Interport901db].[dbo].[FolderPermission] (FolderID,PermissionID, AllowAccess, RoleID, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate)
VALUES (75, 6, 1, 11, 1, GETDATE(), 1, GETDATE())
INSERT INTO [Interport901db].[dbo].[FolderPermission] (FolderID,PermissionID, AllowAccess, RoleID, CreatedByUserID, CreatedOnDate, LastModifiedByUserID, LastModifiedOnDate)
VALUES (75, 8, 1, 11, 1, GETDATE(), 1, GETDATE())

Then I had to reset the application to get the admin to respect the new access level.

I have a couple concerns though...
1. Will the administrators have access to other folders/files as they are added to the site.... Especially when the folders are created by a superuser.
2. Have I given the administrators permissions to folders they shouldn't have like the 'Users' folders. These could not be deleted by the administrators.
3. I'll have to run these insert statements for each portal that I setup so that the administrators on those portals will have permission to the file manager/Site Assets.

Thoughts?
 
New Post
2/21/2017 7:51 PM
 
I created a fixPermission script on DNNscript.codeplex.com, which should take care of missing default permission.
please make sure, Windows Filesystem permission for creating and deleting folders have been granted to the ASP.NET user, configured in advanced settings of the IIS App Pool.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/23/2017 8:23 PM
 

Thanks Sebastian.

I upgraded the to DNN9.02 and the issue went away.  The admin accounts are now able to access the file manager for a portal that I didn't manually add the records.  

 

 
New Post
2/24/2017 4:16 PM
 
I am glad you were able to solve your issue. Have fun using DNN!

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN901 - Site Assets - Admin user has no permission to view folderDNN901 - Site Assets - Admin user has no permission to view folder


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out