[Bug]: Changing a filename from .md to .txt DELETES everything in the file and creates an EMPTY txt file
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
I started an .md file there I wanted to collect links. During this I notice that nextcloud for some reason sometimes on instagram links pulls preview from instagram and puts it in without any possibility to remove it (except removing the link). To mitigate that I thought I just change it into a txt file instead of md. But that deleted the whole text and created an empty text file. I now have to write everything again...
Steps to reproduce
- Create md file
- write something
- change .md into .txt
- this produces an empty text file with everything written previously being deleted without any warning
Expected behavior
Just change the .md to plain text OR at least give a WARNING before deleting everything.
Installation method
Community Web installer on a VPS or web space
Nextcloud Server version
26
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [x] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
I can reproduce it on 28.0.2
This is an issue in the Text app and already tracked here: https://github.com/nextcloud/text/issues/5736
Closing as duplicate.