Andrew Ziegele
New Member Posts:2
|
06/27/2011 4:05 PM |
|
If a registered user has security access to a specific file, they sometimes create a 'link' to that file in the DMX repository. If they are NOT logged in, clicking on the link throws an error (access via link to any document where user does NOT have security access). Can DMX provide a more informative message rather than an application error? Error message below is result of clicking a link to a document user does NOT have authority to view/download; Server Error in '/' Application. -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /Default.aspx -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.3618 Thanks, Andy Z |
|
|
|
|
Peter Donker
Veteran Member Posts:4536
|
07/01/2011 5:43 PM |
|
Hi Andy, No, not really. The download code responds with the standard http protocol responses like "404 NOT FOUND". This ensures client software knows what it's up to. Note that there are 2 levels to the authentication: the document itself and the module in which it is being shown through the link. That module sits on a page in DNN and also has view permissions. Peter |
|
|
|
|
Andrew Ziegele
New Member Posts:2
|
07/08/2011 4:27 PM |
|
Can we handle this with a custom error message or redirect in IIS? We don't want our users getting the 'error' screen, would rather show a message or page that states they did not have permission to access. Will using IIS custom error work as an approach? Thanks, -Andy |
|
|
|
|
Peter Donker
Veteran Member Posts:4536
|
07/14/2011 3:10 PM |
|
Hi Andy, You can try. I just follow the protocol in the module. What happens downstream is not really the concern of DMX. Let us know if your tweak works the way you want. Peter |
|
|
|
|