Skip to content

Folder size not propagated when uploading as share recipient with encryption enabled #24105

Closed

Description

@PVince81

Steps

  1. Setup OC 9.0.1
  2. Enable encryption
  3. Create two users "user1" and "user2"
  4. Login as "user1"
  5. Create a folder "test"
  6. Share "test" with "user2"
  7. Login as "user2"
  8. Create a subfolder "test/sub"
  9. Upload a non-empty file into "test/sub" in the web UI
  10. Navigate to folder "test"
  11. Check the size of the folder "sub"

Expected result

Size of "sub" matches contents

Actual result

Size of "sub" stays zero.
Entry in oc_filecache also has a size of zero.

Versions

ownCloud 9.0.1

Note that if you do the same without encryption it works fine.
So I suspect that some of the fileinfo size overrides code is messing up with folder size propagation.

@schiesbn @icewind1991

Activity

  1. PVince81 commented on Apr 19, 2016

    @PVince81
    ContributorAuthor

    This is bad because it could also doesn't update the share owner's root folder size, so the usage quota isn't updated properly.

  2. PVince81 commented on Apr 19, 2016

    @PVince81
    ContributorAuthor

    Also the folder sizes cannot properly be corrected with occ files:scan because of encrypted size vs unencrypted size! seems to work fine. occ:files:scan can be used to repair those folder sizes.

    Regression check:

    • v8.2.2: ok
    • v8.2.3: ok
    • stable8.2: ok
    • v9.0.0: fail
    • v9.0.1: fail
  3. PVince81 commented on Apr 19, 2016

    @PVince81
    ContributorAuthor

    Bisect was tough due to many internal server errors on the way.

    It pointed at this commit: 1369f2c from PR #21851

    Before that commit, even though the upload fails with 500 error, the folder size is correctly updated.
    After that commit, the folder size is either -1 or 0. So not sure if that commits is directly related or if there is something else at play.

    @icewind1991 can you have a look ?

  4. added this to the milestone on Apr 19, 2016
  5. icewind1991 commented on Apr 20, 2016

    @icewind1991
    Contributor

    Ok, could reproduce in a unit test

  6. icewind1991 commented on Apr 20, 2016

    @icewind1991
    Contributor

    Fix is here #24124

  7. lock commented on Aug 4, 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.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions