Skip to content

don't allow upload/creation of .part files #7496

Closed

Description

@schiessle

we use the file extension .part for uploading large files. Therefore we ignore .part files and don't expose them in the web ui or to a webdav client.

Our sync client, correctly doesn't upload .part files. Also direct webdav uploads refuse to upload .part files. But it is possible to:

  • upload .part files over the web interface
  • create a new empty .part file
  • rename a regular file to a .part file

This will result in files on the server which are no longer accessible by the user. All this operation should be blocked.

@nickvergessen maybe you want to have a look at it if you have some time? Thanks!

cc @PVince81

Activity

  1. italovalcy commented on Nov 21, 2014

    @italovalcy

    Hello everyone,

    I and some guys from raul hacker club (raulhc.cc) were looking at some tasks to help owncloud and we found this task interesting. Is @PVince81 still working on this? Can we propose some patch to this issue?

    Initially we tried to reproduce the problem, but when we uploaded some file through webdav we received a error message at the client side (I/O error on the server). From the server side, we found the following on apache logs:

    PHP Fatal error: Call to a member function getEtag() on a non-object in /app/owncloud/lib/private/connector/sabre/file.php on line 153

    Please let we know if we can help on this task.

    Regards, Italo

  2. PVince81 commented on Nov 24, 2014

    @PVince81
    Contributor

    @italovalcy feel free to take over. Trouble is that I was stuck with unwanted side-effects. Here is the WIP PR #7514 (comment).

    Alternatively if you're looking for simpler tasks to start with, check out issues with the "Junior Job" tag.

  3. added this to the milestone on Mar 20, 2015
  4. PVince81 commented on Sep 21, 2015

    @PVince81
    Contributor

    This won't be fully fixable as long as OC 7 is supported due to federation, see #7514 (comment) for an explanation.

    Moving to 9.0 to keep it in sight.

  5. modified the milestones: , on Sep 21, 2015
  6. PVince81 commented on Feb 11, 2016

    @PVince81
    Contributor

    Since OC 7 will still be around when OC 9 is out, moving to 9.1.

    See #7514 (comment) for the explanation why.

  7. 25 remaining items

  8. removed this from the 10.0 milestone on Sep 11, 2017
  9. PVince81 commented on Sep 11, 2017

    @PVince81
    Contributor

    also please add integration tests to make sure we can't:

    • upload part files through Webdav
    • rename or copy any file to ".part" with Webdav
  10. modified the milestones: development, on Sep 18, 2017
  11. removed their assignment
    on Oct 11, 2017
  12. lock commented on Aug 2, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  13. locked as resolved and limited conversation to collaborators on Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Bugapp:filesblue-ticketp2-highsev3-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions