[Bug]: PDF Viewer for publicly shared file with "Hide download" does not load properly
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 50/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript, php
- Domínio
- authorization, frontend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
⚠️ 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
- Linguagem predominante
- PHP
- Estrelas
- 37.6k
- Forks
- 5.4k
- Merge médio
- 1d 13h
- PRs com merge (30d)
- 623
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nextcloud/server
-
[Bug]: Axios Update NeededTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta0. Needs triage 35-feedback bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
34-feedback
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404Talvez já em andamento @lazerg assumiu há 7 dias. Aberta35-feedback
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher raceTalvez já em andamento @lazerg assumiu há 7 dias. Aberta35-feedback
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
Todas as issues de nextcloud/server
Issues semelhantes
-
area: tests area: user refactoring
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
nplhse/collaborative-ivena-statistics#1845 ·
Mantenedores costumam responder em até 1 dia
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)Abertasync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 2 dias
-
Перевод устарел
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
Mantenedores costumam responder em até 1 dia
-
Documentation Feature: Events / Calendar
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia