Update to 30.x to 32.0.1 broken public file share

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 6.8.0-86-generic x86_64
  • Web server and version (e.g, Apache 2.4.25):
    • –-
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • v2.12.6
  • PHP version (e.g, 8.3):
    • 8.3.27
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • after update
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker nextcloud:latest
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • YES Cloudflare

Summary of the issue you are facing:

I use a lot of unique pdf public file share.

Old 30.x version displayed only a pdf viewer with a download button that I can hide.

Someone found that by adding /download to the url he could download the document. (known issue at the time )

Now updated to 32.0.1.2 version show briefly a folder then a pdf viewer load with noting in it most of the times. Need to refresh the page 2-4 times for it do display the document.

Now using the /download trick don’t work anymore but user have a folder lookalike interface with one pdf inside with many button and others things like guest user display name ect.

I want back the old interface with only the file viewer opening and download button hidden and link trick fixed

Exemple of link: 01299786469.pdf - Diolum Storage

Steps to replicate it (hint: details matter!):

Log entries

Nextcloud

nothing in logs related

Web Browser

nothing in logs related

Web server / Reverse Proxy

nothing in logs related

Configuration

Nextcloud

The output of occ config:list system

{
    "system": {
        "filelocking.enabled": false,
        "overwriteprotocol": "https",
        "htaccess.RewriteBase": "\/",
        "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
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.34:5080",
            "data.diolum.fr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.1.2",
        "overwrite.cli.url": "http:\/\/192.168.1.34:5080",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "app_install_overwrite": [
            "files_3d",
            "extract"
        ],
        "enable_previews": true,
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "enabledPreviewProviders": [
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\ImaginaryPDF",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\Font",
            "OC\\Preview\\MP3",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI"
        ],
        "maintenance": false,
        "loglevel": 2
    }
}

Apps

The output of occ app:list

Enabled:

  • activity: 5.0.0-dev.0
  • admin_audit: 1.22.0
  • cloud_federation_api: 1.16.0
  • dav: 1.34.2
  • federatedfilesharing: 1.22.0
  • files: 2.4.0
  • files_3dmodelviewer: 0.0.16
  • files_automatedtagging: 3.0.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_pdfviewer: 5.0.0-dev.0
  • files_sharing: 1.24.0
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • fulltextsearch: 32.0.0
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • nextcloud_announcements: 4.0.0-dev.0
  • notifications: 5.0.0-dev.0
  • oauth2: 1.20.0
  • previewgenerator: 5.10.0
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharereview: 1.4.0
  • systemtags: 1.22.0
  • theming: 2.7.0
  • theming_customcss: 1.19.0
  • thesearchpage: 1.2.14
  • twofactor_backupcodes: 1.21.0
  • updatenotification: 1.22.0
  • viewer: 5.0.0-dev.0
  • webhook_listeners: 1.3.0
  • workflowengine: 2.14.0Disabled:
  • app_api: 32.0.0 (installed 32.0.0)
  • bruteforcesettings: 5.0.0-dev.0 (installed 2.7.0)
  • cfg_share_links: 7.0.1 (installed 7.0.1)
  • checksum: 1.2.6 (installed 1.2.6)
  • circles: 32.0.0 (installed 27.0.1)
  • comments: 1.22.0 (installed 1.17.0)
  • contactsinteraction: 1.13.1 (installed 1.8.0)
  • dashboard: 7.12.0 (installed 7.7.0)
  • duplicatefinder: 1.7.3 (installed 1.7.3)
  • encryption: 2.20.0
  • extract: 1.3.6 (installed 1.3.6)
  • federation: 1.22.0 (installed 1.17.0)
  • files_external: 1.24.0
  • files_reminders: 1.5.0 (installed 1.0.0)
  • files_rightclick: 0.15.1 (installed 1.6.0)
  • firstrunwizard: 5.0.0-dev.0 (installed 2.16.0)
  • imageconverter: 2.0.5 (installed 2.0.5)
  • password_policy: 4.0.0-dev.0 (installed 1.17.0)
  • photos: 5.0.0-dev.1 (installed 2.3.0)
  • recommendations: 5.0.0-dev.0 (installed 1.6.0)
  • related_resources: 3.0.0-dev.0 (installed 1.2.0)
  • sharebymail: 1.22.0 (installed 1.17.0)
  • snowflakestheme: 1.1.4 (installed 1.1.4)
  • support: 4.0.0-dev.0 (installed 1.10.0)
  • survey_client: 4.0.0-dev.0 (installed 1.15.0)
  • suspicious_login: 10.0.0-dev.0 (installed 5.0.0)
  • text: 6.0.1 (installed 3.8.0)
  • twofactor_nextcloud_notification: 6.0.0-dev.0
  • twofactor_totp: 14.0.0
  • user_ldap: 1.23.0
  • user_status: 1.12.0 (installed 1.7.0)
  • weather_status: 1.12.0 (installed 1.7.0)

I clicked on your example:

  • The PDF loads on the first try (tested with Firefox and Chrome)
  • I don’t see a download button

But yes: First, I see the folder for a second. I am not aware of any way to disable this. Even though I’m not entirely sure what bothers you about it, I think you need to create a feature request on GitHub if this is important to you. But I’m not sure where that belongs:


EDIT: I found a bug report for Safari.

You may want to give the bug report a thumbs up so that the developers can see that others are also affected (as a reaction and not as a comment).

Hi, thanks for the reply.

The download is hidden on that file that’s why.

I think that like in 30.x, if you share a file you should get a file viewer (or something just to download this single file if no viewer supported like .bin, …)

And if you share a folder, you get a folder viewer. That lets you pick certain files or download the entire folder.

The folder view in my case is bothering because of the X to close, many things are useless for single file viewing like the guest name, “?”, file picker (:check_box_with_check:), “….”, date of the file addition, ect.

Also many unnecessary use of the previous window if user clicks on the X or do something. With this file picker.

Also I have notifications if someone downloads a file activated since I was on 30.x.

Working well for two years: If someone open a file nothing’s happening. And if downloaded with button (or /download trick) I get a notification.

That’s how I have found someone used the url trick.

Now, in 32.0.1, I get a notification every time someone opens a file on public sharing even if not downloaded. The viewer count as a download. So many useless notifications. Strange.