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: Reset session if file rename changes mimetype from/to markdown #6345

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Sep 11, 2024

For the event target file, we cannot use getMimetype() or getExtension() as it's a node of type NonExistingFile.

Fixes: #5736

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

@mejo- mejo- added bug Something isn't working 3. to review labels Sep 11, 2024
@mejo- mejo- self-assigned this Sep 11, 2024
@mejo-
Copy link
Member Author

mejo- commented Sep 11, 2024

/backport to stable30

@mejo-
Copy link
Member Author

mejo- commented Sep 11, 2024

/backport to stable29

@mejo- mejo- force-pushed the fix/reset_session_rename branch 2 times, most recently from 44fc399 to 380d5b9 Compare September 11, 2024 10:34
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

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

Code changes look good after a review. Did not test it though.

Would it be possible to have an integration or e2e test for this?

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>
@mejo- mejo- force-pushed the fix/reset_session_rename branch from 380d5b9 to 3b7196f Compare September 11, 2024 15:01
@mejo-
Copy link
Member Author

mejo- commented Sep 11, 2024

Would it be possible to have an integration or e2e test for this?

Good point, I added e2e tests now.

@mejo- mejo- merged commit 0e71b4b into main Sep 11, 2024
62 of 64 checks passed
@mejo- mejo- deleted the fix/reset_session_rename branch September 11, 2024 15:54
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
Archived in project
Development

Successfully merging this pull request may close these issues.

Content lost after file renaming from .md to .txt
2 participants