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

Secure File-Links not working #2156

Open
inu-web opened this issue Mar 28, 2022 · 1 comment
Open

Secure File-Links not working #2156

inu-web opened this issue Mar 28, 2022 · 1 comment

Comments

@inu-web
Copy link

inu-web commented Mar 28, 2022

Product & Version
Bug applies to Vanjaro for DNN v.1.3.0

Describe the bug
When trying to insert a link in a text module that refers to a file in the secure file system, the link url added is just "/LinkClick.aspx" without the fileticket and portalid information - So the link doesnt work then when clicking on it

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Asset management'
  2. Add an secure Folder in the DNN Filesystem
  3. Add Files to this Folder e.g. testfile.txt
  4. Go to a vanjaro page
  5. add a text-block and write some text.
  6. mark text and click the "link" button
  7. klick on the chain-icon (A) to select a file
  8. in the appearing Link browser window select the secure folder (B) added before
  9. select a file from this folder by double clicking on it (C)

Expected behavior
In the url-Field of the link there should appear a correct and working LinkClick URL like e.g.: "/LinkClick.aspx?fileticket=sKo6NEl4e5K%3d&portalid=0"

Current behavior
In the url-Field of the link there just appears "/LinkClick.aspx" (D) .. without the fileticket part and without the portalid part
The resulting link is not working

Screenshots
vanjaroSecureFileLinks1
Mention the yellow marked icon in the screenshot- The Folder is in the secure Filesystem of DNN

Additional context
The Link is taken via the GetUrl API Call in the background when clicking on the file, but the resulting link misses the information about the fileticket - as we can see in Network Panel of the inspector in the browser:
vanjaroSecureFileLinks2

If you enter this url manually in the Links URL-Field, the behaviour is as expected and the filelink works with allowed roles only as expected

Best Regards
Gerald

@Gaganbird
Copy link
Collaborator

Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants