server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Changing a filename from .md to .txt DELETES everything in the file and creates an EMPTY txt file

Open maniac-0s opened this issue 1 year ago • 1 comments

⚠️ This issue respects the following points: ⚠️

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

  1. Create md file
  2. write something
  3. change .md into .txt
  4. 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

maniac-0s avatar Feb 16 '24 12:02 maniac-0s

I can reproduce it on 28.0.2

DatNoHand avatar Feb 16 '24 22:02 DatNoHand

This is an issue in the Text app and already tracked here: https://github.com/nextcloud/text/issues/5736

Closing as duplicate.

mejo- avatar Jun 19 '24 14:06 mejo-