Skip to content

No versions of an empty file #33891

Open
Open
@phil-davis

Description

@phil-davis

Steps to reproduce

  1. make an empty file outside ownCloud touch xyz.txt
  2. upload to ownCloud
  3. edit the file (e.g. with files_texteditor) and put some text in it text 1111
  4. edit the file and remove all the text (empty file)
  5. edit the file (e.g. with files_texteditor) and put some text in it text 2222
  6. look in file details, versions

Expected behaviour

3 old versions are seen - the file as it was at steps 2, 3 and 4

Actual behaviour

1 old version is seen - the version containing ```text 1111``

Server configuration

Development on core master

When a file is empty, then added to, the empty version is not saved.

This would impact on accurate recovery possibilities. e.g. if some software cares about a file that is used as a marker/lock indicator and can be empty or have something in it. "time machine" style of recovery should put versions back as they were, including if the file was empty in its old "incarnation".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions