Skip to content

Fix error on delete in ChunkingV2Plugin - #38083

Closed
tanganellilore wants to merge 1 commit into
nextcloud:masterfrom
tanganellilore:fix_delete_ChunkingV2Plugin
Closed

Fix error on delete in ChunkingV2Plugin#38083
tanganellilore wants to merge 1 commit into
nextcloud:masterfrom
tanganellilore:fix_delete_ChunkingV2Plugin

Conversation

@tanganellilore

Copy link
Copy Markdown
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

@szaimenszaimen added the 3. to review Waiting for reviews label May 4, 2023
@szaimenszaimen added this to the Nextcloud 27 milestone May 4, 2023
@szaimen
szaimen requested review from a team, artonge, blizzz, come-nc and nfebe and removed request for a teamMay 4, 2023 16:46
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
@blizzz
blizzz requested a review from juliusknorrMay 4, 2023 20:12

@blizzzblizzz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems reasonable

@blizzzblizzz added the bug label May 4, 2023
@juliusknorr

Copy link
Copy Markdown
Member

Thanks for the pull request, could you add a signoff message to your commit to fix the DCO check?

https://github.com/nextcloud/server/blob/master/.github/CONTRIBUTING.md#sign-your-work has more details about taht.

Signed-off-by: Lorenzo Taanganelli <lorenzo.tanganelli@hotmail.it>
@tanganellilore

Copy link
Copy Markdown
ContributorAuthor

@juliushaertl change message on commit close this pull request.
Can you re-open it?

Sorry for that

@juliusknorr

Copy link
Copy Markdown
Member

Hm I could not do that, maybe you can open a fresh one?

@tanganellilore

Copy link
Copy Markdown
ContributorAuthor

i publish new one: #38100

DCO continue to not pass, but I have added my email and username (official one)

@tanganellilore

Copy link
Copy Markdown
ContributorAuthor

should be fixed now....

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

5 participants

@tanganellilore@juliusknorr@blizzz@github-advanced-security@szaimen