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
Too many redirects for shared image links (direct link) #542
Comments
I've got this problem too. @WiegerS Is it ok to use the workaround you mention in your post? |
When you use that 'workaround' I specified you are disabling some security measure which somehow seems to cause the redirect loop for direct links. Though I would not recommend meddling with the code (maybe it breaks some essential things though direct links do seem to work when disabling the function). Haven't gone into much depth in this regard myself. ;-) I've gone back to ownCloud some weeks ago, which does not have this issue currently. I'm not really broken up about it though because I'm more of an enthusiastic user than a professional, enterprise-grade user. |
Thank you for your answer @WiegerS |
Well the behaviour is intentional. We have a lot of security meachanism in place of which a lot of them are even enabled on the public link page. (CC @LukasReschke) Also using the download link is very suboptimal as on that we set headers that actually indicate to your browser to download the file. I know this has come up before. And I'm still not sure how to do it properly. Another endpoint? And another button. UX wise this is all not easy. |
@rullzer Would it be of any help if I make some UI drafts for an integration of such a feature? For me this would be a huge step forward in usability of nextcloud. I need to use these direct links, especially for images, quite often. As @WiegerS already stated usage within forums is one good example. I have two main usage scenarios in my mind right now:
|
I don't know why this is marked as an enhancement when in previous versions it was common practice to embed download links. This is a bug not an enhancement. |
Facing the same issue in Chrome (keeps redirecting to the same location) but Firefox seems to load the images just fine. |
Duplicate of #2523 |
Steps to reproduce
Expected behaviour
Picture should display inside browser (e.g. on a bulletin board).
Actual behaviour
Browser errors out with a 'too many redirects'-error.
Server configuration
Operating system:
FreeBSD
Web server:
Apache or nginx, with or without reverse proxy, does not matter.
Database:
MySQL
PHP version:
Tried both PHP 5.6 and PHP 7.0.
Nextcloud version: (see Nextcloud admin page)
9.0.53
Updated from an older Nextcloud/ownCloud or fresh install:
Happens on fresh install too.
Where did you install Nextcloud from:
Official website; https://nextcloud.com
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Happens on fresh install. So config set to defaults.
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Browser:
Chrome as well as Firefox, also CURL when Cookie-header specified! (does not happen with CURL if no Cookie-headers specified for direct link to image).
Operating system:
Ubuntu 16.04, Windows 7, does not matter really.
Logs
Web server error log
Web server error log
Nextcloud log
Browser log
Workaround
The text was updated successfully, but these errors were encountered: