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
@juliusknorr juliusknorr force-pushed the backport/6345/stable29 branch from 742747b to 6506a80 Compare September 13, 2024 08:14
Copy link
Member

@juliusknorr juliusknorr 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 <jonas@freesources.org>
@juliusknorr juliusknorr force-pushed the backport/6345/stable29 branch from 6506a80 to f694878 Compare September 13, 2024 10:28
@juliusknorr juliusknorr merged commit 86a3147 into stable29 Sep 13, 2024
60 of 62 checks passed
@juliusknorr juliusknorr deleted the backport/6345/stable29 branch September 13, 2024 14:36
@Altahrim Altahrim mentioned this pull request Oct 1, 2024
1 task
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