Skip to content

.Txt Content deleted after restoring older Version an reopeninge with "Text" #4205

@StevenE009

Description

@StevenE009

Describe the bug
Lines in .txt Document dissapear

To Reproduce
Steps to reproduce the behavior:

  1. create text Document test.txt with 3 Lines:
    "Line1"
    "Blank line with "enter key""
    "Line2"
    Upload via drag and drop

  2. Open with Text, add two lines
    "Blank Linke with enter key"
    "Line3"
    Click Save or autosave ... close Document

  3. Go to File Details - > Version
    Curren Version and Inital Version are available
    Restore Inital Version

  4. Open File again with text.
    Verison with 3 Lines is displayed, click "use saved Version" (Die gespeicherte Version verwenden). I'M using german UI.
    After Click "Line3" and also "Line2" are removed.
    only "Line1" is keept.

So Content from Initial Version is removed.

Expected behavior
Original Content with "Line1" and "Line2" is displayed

Client details:

  • OS: Win10
  • Browser: tested on Firefox and Edge (113)
Server details

Text app version: 3.7.2

Operating system:
Ubuntu 22.04

Web server:
Apache

Database:
Art: sqlite3

PHP version:
Version: 8.1.2

Nextcloud version: (see Nextcloud admin page)
26.0.1

Logs

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:



</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ☑️ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions