Hi,
I tried to reproduce the issue. I created a link on a page pointing to the secured media library file.
As a public user I received error message that my permissions are not sufficient, so I get back to the original page (any redirection to the login page).
I tried to click on the link again and I get empty page. This seems to be a bug in the current version and our developer is already working on it. It could be related to your second issue and I am sorry for inconvenience.
The media library itself does not perform redirection to the login page. There are two possibilities:
1. Document, where media library files are displayed is secured in the
CMS Desk - Edit - Properties - Security tab, there is an option Requires authentication.
2. Link you have created is pointing to the page, on which is used a control requiring authentication. Then the redirection is managed by Global.asax.cs
Could you please tell me which option is correct and how should I continue to simulate your environment?
Thank you for information.
Best regards,
Ivana Tomanickova