Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You do not have sufficient permissions to access this file. #86

Open
yukirivero opened this issue Jun 3, 2019 · 27 comments
Open

You do not have sufficient permissions to access this file. #86

yukirivero opened this issue Jun 3, 2019 · 27 comments
Labels
cnr cannot reproduce the issue upstream: dnn user story

Comments

@yukirivero
Copy link

When I am logged out, and go to a page with a document to download, it works fine.

But when I am logged in as an Admin or Superuser and access the page file to download, when I click the download button, I am redirected to a page that says
"You do not have sufficient permissions to access this file."

What's causing that? How is it that any users can download from the page but the Admin/Superuser cannot?

This is the page http://aitirm.projectpp.it/Associazione/Modulistica

@roman-yagodin
Copy link
Member

Thanks for your feedback! I will check it soon.

@yukirivero
Copy link
Author

Hi Roman,

How was it? Do you have any idea how and why?

Thanks,
Ron

@roman-yagodin
Copy link
Member

Could you please send screenshots of module and folder permissions?

@yukirivero
Copy link
Author

Hi Roman,

It seems, even a registered User cannot access the files.

Attached are the screenshots of:

  1. Module Permissions, module_permissions

  2. What Admin and Registered Users see when accessing the download files.
    Admin View

I currently have no access to the FTP at the moment yet but I will send the screenshot once I have it.

Thanks,
Ron

@yukirivero
Copy link
Author

Hi Roman,

What should be the file permission of the folder?

Thanks,
Ron

@yukirivero
Copy link
Author

Hi Roman,

This is the screenshot of the Folder permission in the FTP.
Capture

@roman-yagodin
Copy link
Member

Thanks, this could help! Note that DNN have its own set of permissions for folders - could you please get a screenshot of folder permissions from DNN filemanager?

@yukirivero
Copy link
Author

Capture
Hi Roman,

This is a screenshot of the Folder permissions in DNN admin.

Thanks,
Ron

@roman-yagodin
Copy link
Member

roman-yagodin commented Jun 13, 2019

OK, thanks! Security settings looks fine, the only thing what missing is actual NTFS permissions (FTP doesn't show that).

Try this: copy download link from R7.Documents module, and then place it into HTML module on the same page in A tag. I think the issue should persist - and in that case, it's not about R7.Documents module.

@yukirivero
Copy link
Author

Hi Roman,

I linked the module link and a sample file link. They are both working when a user is logged in or logged out. Please check the link below.

http://aitirm.projectpp.it/Associazione/Modulistica

Only the link in R7. Documents doesn't work.

Thanks,
Ron

@roman-yagodin
Copy link
Member

Your link is http://aitirm.projectpp.it/Portals/26/Modulistica/Richiesta_Patrocinio_AITIRM.pdf?ver=2019-05-08-155436-200

But link generated by module is:
http://aitirm.projectpp.it/LinkClick.aspx?fileticket=X1_Zhk6R0s0%3d&tabid=2545&portalid=26&mid=8423

Second one should just redirect to first one... Could be some newly introduced bug in DNN LinkClick handler...

@roman-yagodin
Copy link
Member

Could you please post related Event Log entries here?

@yukirivero
Copy link
Author

Hi Roman,

It doesn't show anything in the Admin Logs.

Thanks,
Ron

@roman-yagodin
Copy link
Member

OK, thanks.

I think I should test the module for DNN 9. Which version you use?

@yukirivero
Copy link
Author

Hi Roman,

I am using DNN 9.2.2

Thanks,
Ron

@yukirivero
Copy link
Author

Hi Roman,

Did you manage to test it?

Thanks,
Ron

@roman-yagodin
Copy link
Member

Sorry for delay, have pressing matters right now.

@yukirivero
Copy link
Author

Hi Roman,

How was it? I will for your update.

Thanks,
Ron

@roman-yagodin
Copy link
Member

roman-yagodin commented Jun 24, 2019

Tested R7.Documents v1.11 on clean DNN v9.3.2 - cannot reproduce the issue with Standard, Secure and Database folder providers - it works the same for anonymous, host and regular (non-admin) users.

@yukirivero, Which folder provider do you use?

@roman-yagodin roman-yagodin added the cnr cannot reproduce the issue label Jun 24, 2019
@yukirivero
Copy link
Author

Hi Roman,

We use Digital Asset Management

Thanks,
Ron

@roman-yagodin
Copy link
Member

roman-yagodin commented Jun 25, 2019

Added #92 - if implemented, this could resolve your issue (though it's still not clear what causing it). But I cannot give you a date or a version number for that.

@yukirivero
Copy link
Author

Hi Roman,

How do I set to Raw URLs.

Thanks,
Ron

@roman-yagodin
Copy link
Member

roman-yagodin commented Jul 1, 2019

It is not implemented yet.

@yukirivero
Copy link
Author

Hi Roman,

It is a feature in the next version of your module?

Thanks,
Ron

@roman-yagodin
Copy link
Member

roman-yagodin commented Jul 3, 2019

It's planned for 2.0 right now, but nothing is certain about that.

You should really double-check the NTFS permissions first.

@yukirivero
Copy link
Author

Hi Roman,

Please update me when the next version with the fix is released.

Thanks,
Ron

@yukirivero
Copy link
Author

Hi Roman,

Any updates on the new version?

Thanks,
Ron

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cnr cannot reproduce the issue upstream: dnn user story
Projects
None yet
Development

No branches or pull requests

2 participants