Skip to content

Library folder listing decrypts every file in the folder #445

Open

Description

@andersalm

Problem

Listing a Library folder fully decrypts every protected file in it. library.rs:1266 calls into :3411 for each item, under the global object lock. A folder with 40 files of 100 MiB (the upload limit) means about 4 GiB of decryption for every listing. This is an estimate, not measured.

Found while designing #444 (local://444-design-v2.md, open point 2), at bfefe92. Outside #444's requirements.

Required behavior

Milestone

After 0.8.0, unless the #444 installed journey 2 measures listing time that makes Library unusable with ordinary media. In that case this moves to 0.8.0.

Activity

  1. added this to the After 0.8.0 milestone on Oct 18, 2026
  2. andersalm commented on Oct 18, 2026

    @andersalm
    ContributorAuthor

    Detail from #444 design v3 (FU5): listing runs under the global object lock (auth.rs:5206-5208), so a slow listing also delays other protected-object operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions