server icon indicating copy to clipboard operation
server copied to clipboard

Trash bin table sort adds deletion timestamp to file extension

Open williambargentball opened this issue 10 years ago • 5 comments

Steps to reproduce

  1. Delete a file
  2. Soft deleted by time deleted

Expected behaviour

Sorts the files into order of deletion

Actual behaviour

Sorts but also outputs random numbers into the file extension Edit: Only sorts in the trash seem to be affected

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache /2.4.18

PHP version: 7.0.4

Nextcloud version: 9.0.50 (stable)

capture

williambargentball avatar Jun 16 '16 15:06 williambargentball

If this helps, it's actually a Unix timestamp, Probably the time of deletion.

le-fractal avatar Jun 16 '16 19:06 le-fractal

Actually the '.dxxxxxxxx' suffixes appear for me as soon as I try to sort the list, even by "Name". With each subsequent sort, the suffix gets appended again and again. This prevents restoring the files too, as the name has changed and cannot be found: Couldn't restore welcome.txt.d1466109156.d1466109156

You need to reload the page (thus getting the clean names again) to be able to restore files.

So this is a little bit more serious than it seemed at first

le-fractal avatar Jun 16 '16 21:06 le-fractal

Oh yes, I didn't notice it was that bad, and just to confirm it is a unix timestamp of deletion.

williambargentball avatar Jun 16 '16 21:06 williambargentball

cc @blizzz @schiessle

MorrisJobke avatar Jun 17 '16 07:06 MorrisJobke

I can't reproduce this with a current 11. Please recheck with a new version.

MorrisJobke avatar Mar 20 '17 20:03 MorrisJobke