Skip to content

[stable29] fix: Reset session if file rename changes mimetype from/to markdown - #6347

Merged
juliusknorr merged 1 commit into
stable29from
backport/6345/stable29
Sep 13, 2024
Merged

[stable29] fix: Reset session if file rename changes mimetype from/to markdown#6347
juliusknorr merged 1 commit into
stable29from
backport/6345/stable29

Conversation

@backportbot

Copy link
Copy Markdown

Backport of PR #6345

@backportbotbackportbotBot added bug Something isn't working 3. to review labels Sep 11, 2024
@backportbotbackportbotBot added this to the Nextcloud 29.0.7 milestone Sep 11, 2024

@juliusknorrjuliusknorr 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.

Needs some adjustments

public function __construct(AttachmentService $attachmentService) {
$this->attachmentService = $attachmentService;
public function __construct(
private readonly AttachmentService $attachmentService,

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.

readonly is not available for PHP 8.0

For the event target file, we cannot use `getMimetype()` or
`getExtension()` as it's a node of type `NonExistingFile`.
Fixes: #5736
Signed-off-by: Jonas <jonas@freesources.org>
@juliusknorr
juliusknorr merged commit 86a3147 into stable29Sep 13, 2024
@juliusknorr
juliusknorr deleted the backport/6345/stable29 branch September 13, 2024 14:36
@AltahrimAltahrim mentioned this pull request Oct 1, 2024
1 task
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewbugSomething isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@juliusknorr@mejo-