r7-labs / R7.Documents

Classic DNN Documents module, redesigned
MIT License
20 stars 7 forks source link

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

Open yukirivero opened 5 years ago

yukirivero commented 5 years ago

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 commented 5 years ago

Thanks for your feedback! I will check it soon.

yukirivero commented 5 years ago

Hi Roman,

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

Thanks, Ron

roman-yagodin commented 5 years ago

Could you please send screenshots of module and folder permissions?

yukirivero commented 5 years ago

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 commented 5 years ago

Hi Roman,

What should be the file permission of the folder?

Thanks, Ron

yukirivero commented 5 years ago

Hi Roman,

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

roman-yagodin commented 5 years ago

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 commented 5 years ago

Capture Hi Roman,

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

Thanks, Ron

roman-yagodin commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

Could you please post related Event Log entries here?

yukirivero commented 5 years ago

Hi Roman,

It doesn't show anything in the Admin Logs.

Thanks, Ron

roman-yagodin commented 5 years ago

OK, thanks.

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

yukirivero commented 5 years ago

Hi Roman,

I am using DNN 9.2.2

Thanks, Ron

yukirivero commented 5 years ago

Hi Roman,

Did you manage to test it?

Thanks, Ron

roman-yagodin commented 5 years ago

Sorry for delay, have pressing matters right now.

yukirivero commented 5 years ago

Hi Roman,

How was it? I will for your update.

Thanks, Ron

roman-yagodin commented 5 years ago

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?

yukirivero commented 5 years ago

Hi Roman,

We use Digital Asset Management

Thanks, Ron

roman-yagodin commented 5 years ago

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 commented 5 years ago

Hi Roman,

How do I set to Raw URLs.

Thanks, Ron

roman-yagodin commented 5 years ago

It is not implemented yet.

yukirivero commented 5 years ago

Hi Roman,

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

Thanks, Ron

roman-yagodin commented 5 years ago

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

You should really double-check the NTFS permissions first.

yukirivero commented 5 years ago

Hi Roman,

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

Thanks, Ron

yukirivero commented 5 years ago

Hi Roman,

Any updates on the new version?

Thanks, Ron