-
Notifications
You must be signed in to change notification settings - Fork 119
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
Preview generation not working from a LAN hosted Collabora instance unless allow_local_remote_servers=true is set #3435
Comments
Makes sense to me. Have you attempted it with the suggested change in place? The change would go here: richdocuments/lib/Preview/Office.php Lines 80 to 85 in cd6399a
If it works for you, submit a PR please :) |
I did not, because I've seen more occurrences of this throughout the code and wasn't sure whether the same fix may be needed there. For example, here is a really similar pattern in richdocuments/lib/Service/RemoteService.php Lines 24 to 33 in 0f55477
But here on the other hand, the code already sets richdocuments/lib/Service/CapabilitiesService.php Lines 160 to 161 in 0f55477
|
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: #3255 Fixes: #3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Makes sure we always set a sane timeout and `allow_local_address`. Fixes: nextcloud#3255 Fixes: nextcloud#3435 Fixes: nextcloud/server#44190 Signed-off-by: Jonas <jonas@freesources.org>
Describe the bug
I have a Collabora instance hosted on an URL such as
https://office.example.com
, where the domain resolves to a local IP. This causes the previews to not work - the preview generation fails with an errorLocalServerException: Host violates local access rules
I would consider this a bug, since the builtin Imaginary integration permits a local server to be used for thumbnails without enabling this flag, see
https://github.com/nextcloud/server/blob/1612d025cf21ac0ae70327c46dd59be66c096627/lib/private/Preview/Imaginary.php#L167
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The preview generation should work
Server details
Operating system: Ubuntu 22.04.3 LTS, running the official
nextcloud:apache
docker imageWeb server: Apache from the docker image, behind a Traefik reverse proxy
Database: mysql
PHP version: 8.2.14
Nextcloud version: 28.0.1
Version of the richdocuments app 8.3.1
Version of Collabora Online 23.05.7.2
Configuration of the richdocuments app
Logs
Nextcloud log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: