Skip to content

Folder size propagation not triggered by Webdav upload #18006

Closed

Description

@PVince81

Steps to reproduce

  1. Create a folder "test"
  2. Using a Webdav client (I used cadaver), upload a file "pic.jpg" into "test"
  3. In the web UI, check the size of the folder "test"

Expected result

Folder size is updated to reflect the size of the picture inside.

Actual result

Folder size is still zero.

I noticed that in the database the propagation isn't happening after upload.
However the folder size will update itself later through other mechanisms, possibly through PROPFINDs or the scanner that the web UI triggers (ajax/scan.php) or the background cron scan.

This also means that the quota value (the total used space) will not be updated directly.

Uploading through the web UI properly propagates the sizes, so it's specific to Webdav.

Versions

stable8.1 (a9524e2)

I will bisect to find out when this regression was introduced.
Not sure how critical. Setting to 8.1.1 now but 8.1.2 might be fine.

@DeepDiver1975 @icewind1991 @schiesbn

Activity

  1. added this to the milestone on Jul 31, 2015
  2. self-assigned this
    on Jul 31, 2015
  3. PVince81 commented on Jul 31, 2015

    @PVince81
    ContributorAuthor

    Regression from v8.0.5 where it worked properly.

    I suspect it might be related to the recent improvements on etag propagation.
    The bisect will tell.

  4. PVince81 commented on Jul 31, 2015

    @PVince81
    ContributorAuthor

    I knew it... it's the "work directly on storage when doing webdav PUT": #12006

  5. PVince81 commented on Jul 31, 2015

    @PVince81
    ContributorAuthor

    Note: this will only affect files uploaded without chunking, since the chunking code doesn't work directly on storages (but it will eventually as per #17104)

  6. ghost added this to the milestone on Jul 31, 2015
  7. ghost removed this from the milestone on Jul 31, 2015
  8. removed their assignment
    on Aug 3, 2015
  9. PVince81 commented on Aug 3, 2015

    @PVince81
    ContributorAuthor

    @icewind1991 can you fix this ? Thanks.

  10. PVince81 commented on Aug 3, 2015

    @PVince81
    ContributorAuthor

    Alternative for the future: update folder size in a background job: #18028

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions