[Bug]: PDF Viewer for publicly shared file with "Hide download" does not load properly

Đang mở
#67,005 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, php
Lĩnh vực
authorization, frontend

Hướng nghiên cứu

Reproduce with a public share link, enable "Hide download", and reload in a logged-out browser; watch the network requests for the public share page to see what the viewer fails to fetch or finish. Then trace how the hide-download flag is passed into the public-share template and the PDF viewer's initialization, since the spinner never clears and the top bar is missing. Done means the viewer loads fully with the three-dots menu present but the download entry hidden.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

0. Needs triage 35-feedback bug
⚠️ This issue respects the following points: ⚠️
  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description

I have shared via public link a PDF file that is supposed to be read in the browser, but should not be downloaded. When I check "Hide download", a third person can open the link and view the file. However, the PDF viewer does not finish loading as indicated by the indefinitely spinning wheel over its center. Furthermore, the top panel that is usually black is not loaded / displayed at all.

Steps to reproduce
  1. For some PDF file, create a Share link.
  2. Open the link in a different browser that is not logged into the Nextcloud account, and see that the PDF viewer loads properly, including the black menu bar at the top with the three-dots-menu, which allows for downloading the file.
  3. Go back to the first browser and select "Customize link". Check "Hide download" and confirm "Update share".
  4. In the second browser, reload the site for the share link.
  5. The PDF viewer is shown, as well as the file's content. However, the spinning wheel at the site's center does not vanish, and there is a white space above the viewer instead of the black menu bar.
Expected behavior

The PDF viewer should load properly and fully, and only not show the download option in the three-dots-menu.

Nextcloud Server version

35

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

No response

Database engine version

No response

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

No response

Are you using the Nextcloud Server Encryption module?

No response

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Ngôn ngữ chính
PHP
Star
37.6k
Fork
5.4k
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
623

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/server

Tất cả issue của nextcloud/server

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.