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

Fix error on delete in ChunkingV2Plugin #38100

Merged

Conversation

tanganellilore
Copy link
Contributor

Summary

This PR fix the error on "delete" call when is used and storage class that is not IChunkedFileWrite::class.
Implementation is the same of other "before" method

TODO

  • ...

Checklist

@tanganellilore tanganellilore force-pushed the fix_delete_ChunkingV2Plugin branch from 34cdbed to d920e65 Compare May 5, 2023 13:08
@blizzz blizzz added the 3. to review Waiting for reviews label May 5, 2023
@blizzz blizzz added this to the Nextcloud 27 milestone May 5, 2023
@blizzz blizzz added the bug label May 5, 2023
return true;
}

[$storage, $storagePath] = $this->getUploadStorage($this->uploadPath);

Check notice

Code scanning / Psalm

PossiblyNullArgument

Argument 1 of OCA\DAV\Upload\ChunkingV2Plugin::getUploadStorage cannot be null, possibly null value provided
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test if (!$this->uploadFolder instanceof UploadFolder) { from before is missing, leading to this psalm warning. Please add it back.

I cannot judge the rest I do not understand the change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's evaluated in checkPrerequisites()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes correct, is evaluated in checkPrerequisites() function, as the same of other functions

This was referenced May 9, 2023
@juliusknorr juliusknorr merged commit b935725 into nextcloud:master May 10, 2023
@welcome
Copy link

welcome bot commented May 10, 2023

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@juliusknorr
Copy link
Member

/backport to stable26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants