[Bug]: PDF Viewer for publicly shared file with "Hide download" does not load properly
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 50/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, php
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
⚠️ 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
- For some PDF file, create a Share link.
- 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.
- Go back to the first browser and select "Customize link". Check "Hide download" and confirm "Update share".
- In the second browser, reload the site for the share link.
- 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
- 主要语言
- PHP
- 星标
- 37.6k
- 派生
- 5.4k
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 623
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/server 的其他 Issue
-
[Bug]: Axios Update Needed可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭0. Needs triage 35-feedback bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
34-feedback
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404可能已有人在做 @lazerg 于 7 天前认领。 未关闭35-feedback
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher race可能已有人在做 @lazerg 于 7 天前认领。 未关闭35-feedback
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
area: tests area: user refactoring
难度 2/5 1-3 小时 新手友好度 85/100
nplhse/collaborative-ivena-statistics#1845 ·
维护者通常 1 天内回复
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)未关闭sync-en
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复