Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] The final download attempt always crashes #436

Open
falghamdi125 opened this issue Dec 2, 2024 · 0 comments
Open

[Bug] The final download attempt always crashes #436

falghamdi125 opened this issue Dec 2, 2024 · 0 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@falghamdi125
Copy link

Hello everyone,

There is a bug in the app causing it to crash, and the final download attempt consistently fails. This seems to occur because the share is removed before the download begins. I'm unsure if it would be better to register the app and start counting attempts before or after initiating the download process. Currently, it appears that the attempts are being counted before the download process starts.

Steps to reproduce

  1. Create a share with 2 download limit
  2. Copy the link and paste it into the browser address bar to open it
  3. Click the Download button in the header for the first time to initiate the download. No problem so far.
  4. Click the Download button in the header again (last attempt), and you will notice the download fails because the share has been removed.

Expected behaviour

  1. For the last allowed attempt, downloading the file should start fine.
  2. The share should be removed after downloading is initiated.

Actual behaviour

Download fails.

Server configuration

Web server: Nginx

Database: MySQL

PHP version: 8.2

Nextcloud version: master

files_downloadlimit version: master

Best

@falghamdi125 falghamdi125 added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant