nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.9k stars 4.01k forks source link

[Bug]: Issue with File Previews in Shared Folders on Nextcloud 29.0 #45510

Closed aron-666 closed 3 weeks ago

aron-666 commented 4 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Dear Nextcloud Support Team,

I am experiencing an issue with file previews when sharing entire folders using Nextcloud 29.0. Specifically, the problem occurs with previewing images within the shared folders. Instead of displaying the previews, a 404 error is returned.

Issue Details:

Steps to reproduce

  1. Share a folder containing images via a public link.
  2. Attempt to preview an image within the shared folder using the public link.
  3. Observe that the image preview fails to load, resulting in a 404 error.

This issue significantly impacts the usability of shared folders, as recipients cannot preview the contents of the shared files.

Expected behavior

When sharing a folder containing images via a public link, I expected that the images within the shared folder would be previewable. This means that clicking on an image in the shared folder should display a preview of the image, without any errors or issues.

This issue significantly impacts the usability of shared folders, as recipients cannot preview the contents of the shared files.

Installation method

Other Community project

Nextcloud Server version

29

Operating system

Other

PHP engine version

PHP 8.2

Web server

Other

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

{    "system": {        "memcache.local": "\\OC\\Memcache\\APCu",        "apps_paths": [            {                "path": "\/var\/www\/html\/apps",                "url": "\/apps",                "writable": false            },            {                "path": "\/var\/www\/html\/custom_apps",                "url": "\/custom_apps",                "writable": true            }        ],        "skeletondirectory": "",        "passwordsalt": "***REMOVED SENSITIVE VALUE***",        "secret": "***REMOVED SENSITIVE VALUE***",        "datadirectory": "***REMOVED SENSITIVE VALUE***",        "version": "29.0.0.19",        "overwrite.cli.url": "https:\/\/nextcloud.aronhome.com",        "dbtype": "pgsql",        "dbname": "***REMOVED SENSITIVE VALUE***",        "dbhost": "***REMOVED SENSITIVE VALUE***",        "dbport": "5432",        "dbuser": "***REMOVED SENSITIVE VALUE***",        "dbpassword": "***REMOVED SENSITIVE VALUE***",        "dbsslmode": "require",        "dbtableprefix": "oc_",        "installed": true,        "instanceid": "***REMOVED SENSITIVE VALUE***",        "mail_from_address": "***REMOVED SENSITIVE VALUE***",        "mail_smtpmode": "smtp",        "mail_sendmailmode": "smtp",        "mail_domain": "***REMOVED SENSITIVE VALUE***",        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",        "mail_smtpport": "587",        "mail_smtpauth": 1,        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",        "mail_smtpsecure": "tls",        "forwarded_for_headers": [            "HTTP_X_FORWARDED_FOR"        ],        "app_install_overwrite": [            "documentserver_community",            "files_markdown",            "drawio",            "printer",            "files_bpm",            "flowupload",            "uploaddetails",            "facerecognition",            "occweb",            "ojsxc",            "socialsharing_facebook",            "files_readmemd",            "whiteboard",            "apporder",            "impersonate",            "extract",            "ocdownloader",            "maps",            "snowflakestheme",            "breezedark",            "unsplash",            "sharingpath",            "video_converter",            "metadata",            "quicknotes",            "twofactor_email",            "camerarawpreviews",            "cfg_share_links",            "groupfolders",            "ncdownloader"        ],        "redis": {            "host": "***REMOVED SENSITIVE VALUE***",            "password": "***REMOVED SENSITIVE VALUE***",            "port": "6379"        },        "memcache.distributed": "\\OC\\Memcache\\Redis",        "memcache.locking": "\\OC\\Memcache\\Redis",        "upgrade.disable-web": true,        "default_phone_region": "TW",        "share_folder": "Shared",        "log_type": "file",        "log_type_audit": "file",        "loglevel": "2",        "logfile": "\/var\/www\/html\/data\/logs\/nextcloud.log",        "logfile_audit": "\/var\/www\/html\/data\/logs\/audit.log",        "logdateformat": "d\/m\/Y H:i:s",        "logtimezone": "Asia\/Taipei",        "overwritehost": "nextcloud.aronhome.com",        "overwriteprotocol": "https",        "activity_expire_days": 90,        "trashbin_retention_obligation": "30:30",        "versions_retention_obligation": "365:365",        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",        "enable_previews": "true",        "jpeg_quality": 60,        "preview_max_x": 4096,        "preview_max_y": 4096,        "preview_max_memory": -1,        "preview_max_filesize_image": 50,        "enforce_theme": "dark",        "maintenance": false,        "allow_local_remote_servers": "true",        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",        "memories.exiftool_no_local": true,        "memories.vod.disable": false,        "memories.db.triggers.fcu": true,        "defaultapp": "",        "trusted_domains": [            "127.0.0.1",            "localhost",            "nextcloud",            "nextcloud-*",            "kube.internal.healthcheck",            "nextcloud.aronhome.com",            "192.168.64.150",            "nextcloud.aronhome.com\/collabora"        ],        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",        "enabledPreviewProviders": [            "OC\\Preview\\Imaginary",            "OC\\Preview\\BMP",            "OC\\Preview\\GIF",            "OC\\Preview\\JPEG",            "OC\\Preview\\Krita",            "OC\\Preview\\PNG",            "OC\\Preview\\XBitmap",            "OC\\Preview\\Movie"        ],        "onlyoffice": ""    }}

List of activated Apps

Enabled:  - activity: 2.21.1  - admin_audit: 1.19.0  - analytics: 4.13.0  - analytics_sourcepack: 0.0.3  - announcementcenter: 6.8.1  - approval: 1.2.0  - audioplayer: 3.4.1  - bookmarks: 14.0.2  - calendar: 4.7.4  - camerarawpreviews: 0.8.5  - cfg_share_links: 5.1.0  - circles: 29.0.0-dev  - cloud_federation_api: 1.12.0  - comments: 1.19.0  - contacts: 6.0.0  - contactsinteraction: 1.10.0  - cookbook: 0.11.0  - cospend: 1.6.1  - dav: 1.30.1  - deck: 1.13.0  - drawio: 3.0.2  - drop_account: 2.5.0  - facerecognition: 0.9.50  - federatedfilesharing: 1.19.0  - federation: 1.19.0  - files: 2.1.0  - files_downloadlimit: 2.0.0  - files_external: 1.21.0  - files_linkeditor: 1.1.20  - files_pdfviewer: 2.10.0  - files_reminders: 1.2.0  - files_sharing: 1.21.0  - files_trashbin: 1.19.0  - files_versions: 1.22.0  - files_zip: 1.5.0  - firstrunwizard: 2.18.0  - forms: 4.2.4  - groupfolders: 17.0.0  - impersonate: 1.16.0  - integration_github: 2.0.7  - integration_gitlab: 1.0.19  - integration_google: 2.2.0  - integration_openstreetmap: 1.0.12  - integration_youtube: 0.2.1  - login_notes: 1.5.0  - logreader: 2.14.0  - lookup_server_connector: 1.17.0  - mail: 3.6.1  - maps: 1.4.0  - memories: 7.3.1  - metadata: 0.20.0  - music: 1.11.0  - ncdownloader: 1.0.20  - nextcloud_announcements: 1.18.0  - notes: 4.10.0  - notifications: 2.17.0  - notify_push: 0.6.11  - oauth2: 1.17.0  - occweb: 0.2.0  - oidc: 0.9.0  - password_policy: 1.19.0  - passwords: 2024.5.20  - photos: 2.5.0  - previewgenerator: 5.5.0  - printer: 0.0.5  - privacy: 1.13.0  - provisioning_api: 1.19.0  - quicknotes: 0.8.22  - recognize: 7.0.0  - recommendations: 2.1.0  - registration: 2.4.0  - related_resources: 1.4.0  - richdocuments: 8.4.2  - serverinfo: 1.19.0  - settings: 1.12.0  - sharebymail: 1.19.0  - sharingpath: 0.4.4  - side_menu: 3.12.0  - sociallogin: 5.6.4  - socialsharing_email: 3.1.0  - socialsharing_facebook: 3.1.0  - socialsharing_twitter: 3.1.0  - spreed: 19.0.1  - support: 1.12.0  - survey_client: 1.17.0  - suspicious_login: 7.0.0  - systemtags: 1.19.0  - text: 3.10.0  - theming: 2.4.0  - thesearchpage: 1.2.7  - translate: 2.1.1  - twofactor_backupcodes: 1.18.0  - twofactor_email: 2.7.4  - twofactor_nextcloud_notification: 3.9.0  - twofactor_totp: 11.0.0-dev  - unsplash: 2.2.1  - updatenotification: 1.19.1  - user_status: 1.9.0  - user_usage_report: 1.13.0  - viewer: 2.3.0  - weather_status: 1.9.0  - workflowengine: 2.11.0Disabled:  - bruteforcesettings: 2.9.0  - dashboard: 7.9.0 (installed 7.5.0)  - encryption: 2.17.0  - extract: 1.3.6 (installed 1.3.6)  - files_markdown: 2.4.1 (installed 2.4.1)  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

file too large please use this link:
https://nextcloud.aronhome.com/s/7QM36mP6W7MnxFK

Additional info

image

SirKubiac commented 3 weeks ago

I can confirm this bug on my Nextcloud 29 running as VM on Debian. No previews visible for pictures and videos in shared folders.