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

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

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 11, 2024

Backport of PR #6345

@backportbot backportbot bot added bug Something isn't working 3. to review labels Sep 11, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.7 milestone Sep 11, 2024
Copy link
Member

@juliushaertl juliushaertl left a comment

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
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 <[email protected]>
@juliushaertl juliushaertl merged commit 86a3147 into stable29 Sep 13, 2024
60 of 62 checks passed
@juliushaertl juliushaertl deleted the backport/6345/stable29 branch September 13, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants