Skip to content

Enabling watermarking on the Office app breaks previews for public albums on the Memories app #4331

Open
@dinosmm

Description

Describe the bug
If 'watermarking' is enabled on the Office app's admin settings, it breaks previews in publicly shared albums on the Memories app. In this case, the Memories app shows placeholders in place of thumbnails, and also shows placeholders in place of the full photo if 'load full size' is not selected.

To Reproduce
Steps to reproduce the behavior:

  1. Enable watermarking in Office admin settings
  2. Create an album in Memories, create a public link for it
  3. Open the album using the public link from a browser not logged in to Nextcloud
  4. No previews are shown
  5. Disabling watermarking and refreshing the album page immediately shows previews. Re-enabling watermarking and refreshing the album page immediately breaks previews again.

Expected behavior
Previews on shared albums showing normally.

Client details:

  • OS: Windows 10.
  • Firefox
  • 133.0
  • Laptop, but same behaviour on mobile phones

Server details

Operating system: Ubuntu 20.04

Web server: Nginx

Database: Postgresql

PHP version: 8.3

Nextcloud version: 29.0.3

Version of the richdocuments app: 8.4.9

Version of Collabora Online: 24.04.10.2

Configuration of the richdocuments app:


    "apps": {
        "richdocuments": {
            "wopi_url": "https:\/\/domain",
            "doc_format": "ooxml",
            "external_apps": "",
            "types": "prevent_group_restriction",
            "public_wopi_url": "https:\/\/domain",
            "wopi_allowlist": "",
            "installed_version": "8.4.9",
            "disable_certificate_verification": "",
            "enabled": "yes"
        }
    }
}

Logs

Nextcloud log (data/nextcloud.log)

The log is huge and not sure what part is useful, if someone could suggest what to look for in there I can post the relevant bit.

Browser log

Here is a snippet of a failed GET request for the previews when opening a shared album in Memories, with Office watermarking switched on:

GET scheme https host cloud.domain.com filename /apps/memories/api/image/preview/2943492 token 92q5cXDKEqAfG3xTjsOUpOWI3AXmfywi albums 92q5cXDKEqAfG3xTjsOUpOWI3AXmfywi c 83a7ea4f8e7ea378758b213a89e92016 x 340 y 340 a 1 Address 104.21.23.245:443 Status 500 VersionHTTP/2 Transferred1.50 kB (14 B size) Referrer Policyno-referrer DNS ResolutionDNS over HTTPS alt-svc h3=":443"; ma=86400 cache-control no-cache, no-store, must-revalidate cf-cache-status DYNAMIC cf-ray 8f017d7b3edb63ca-LHR content-length 14 content-security-policy default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none' content-type application/json; charset=utf-8 date Wed, 11 Dec 2024 00:52:07 GMT expires Thu, 19 Nov 1981 08:52:00 GMT feature-policy autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none' nel {"success_fraction":0,"report_to":"cf-nel","max_age":604800} pragma no-cache referrer-policy no-referrer report-to {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=rAcn9875wRNGpqY8VcaYqxc3UnPI5fh0ltcStEJyqWvwRb4%2FqcPh7amLOcH8yFxwzX3vsFPFkUNd5ZnoqK1e%2Bnn4GLjyKJ5lEMlN8LVJI4Id4AE7DaKY4jBNQqsuACMLMRyVgA%3D%3D"}],"group":"cf-nel","max_age":604800} server cloudflare server-timing cfL4;desc="?proto=TCP&rtt=17661&min_rtt=15809&rtt_var=657&sent=2007&recv=334&lost=0&retrans=0&sent_bytes=2608725&recv_bytes=11611&delivery_rate=32428404&cwnd=1157&unsent_bytes=0&cid=70d9396fd9121767&ts=3161&x=0" strict-transport-security max-age=15768000; includeSubDomains; preload; x-content-type-options nosniff x-download-options noopen X-Firefox-Spdy h2 x-frame-options SAMEORIGIN x-permitted-cross-domain-policies none x-request-id 5C83IBPbdAtIDgjcwQli x-robots-tag noindex, nofollow x-robots-tag noindex,nofollow x-xss-protection 1; mode=block Accept */* Accept-Encoding gzip, deflate, br, zstd Accept-Language en-GB,en-US;q=0.7,en;q=0.3 Connection keep-alive Cookie oc_sessionPassphrase=cq3NV10txz7%2FEaY3rKvYH0ZcLBwmTEF1rmu07hDvgrA84Ag%2B%2FQ0tV7FqT55usPYNp%2B03%2BUhaBDf5V2Glzw0KGk6I0GkOjdhiGnBuAEo8PVv4q%2FIOQcw6ossnF4GSFFsT; __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oceyq4ovwzku=06tq86ljmah28v96it9v82f3i7 DNT 1 Host cloud.domain.com Priority u=4 Sec-Fetch-Dest empty Sec-Fetch-Mode cors Sec-Fetch-Site same-origin Sec-GPC 1 TE trailers User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions