Visitar URL original
Versions downloaded of shared files are named with a number instead of the filename · Issue #36228 · owncloud/core · GitHub
Skip to content

Versions downloaded of shared files are named with a number instead of the filename #36228

Closed

Description

@davitol

Steps to reproduce

  1. create a file (e.g docx)
  2. Edit it and create a version
  3. Share the file with userB
  4. Login with userB
  5. Browse to the SideBar and download a file version

Expected behaviour

File's name should be preserved

Actual behaviour

Files is downloaded named as a number

Database:
MySQL

ownCloud version: (see ownCloud admin page)

oC 10 10.3.0RC1

Activity

  1. added this to the QA milestone on Oct 1, 2019
  2. phil-davis commented on Jun 28, 2021

    @phil-davis
    Contributor

    This is still an issue. As receiver of the shared file, I get an old version downloaded with a name like 1624854121.txt

    Note: As receiver of a shared folder, I can download old versions of files in the folder, and I get the correct file names.

    The UI is sending a request to something like:
    http://172.17.0.1:8080/remote.php/dav/meta/2147484945/v/1624854120

    @dpakach someone should first check that there are API tests that cover this - I see that FilesVersionsContext.php has references to path /meta/$fileId/v - there need to be API tests that cover the share receiver downloading previous versions of a received file. (and downloading previous versions of a file that is in a received folder)

    And once we have API tests that we know are passing, then it might be a UI problem, and we can make a UI test that demonstrates this.

  3. individual-it commented on Jun 30, 2021

    @individual-it
    Member

    I think the issue is the Content-Disposition Header
    downloading a n older version of an own file gives: attachment; filename*=UTF-8''block-aligned.txt; filename="block-aligned.txt"
    but in a shared case: attachment; filename*=UTF-8''; filename=""

  4. individual-it commented on Jun 30, 2021

    @individual-it
    Member

    I don't think we have any API tests trying to download old versions

  5. individual-it commented on Jul 8, 2021

    @individual-it
    Member

    tests added in #38921

  6. AlexAndBear commented on Sep 29, 2021

    @AlexAndBear

    @JammingBen Still exists, should be name like in users file list (keep in mind, that the user can rename a shared file)

  7. added a commit that references this issue on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions