Library: bound memory while creating and downloading archives
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 32/100
Direção de pesquisa
Start with elastos/crates/elastos-server/src/library.rs at the archive creation points cited in the issue, then trace the response handling in api/gateway_provider_proxy.rs. Reproduce with incompressible input larger than the proposed RAM budget and measure peak RSS and responsiveness on Mac and Linux. Done means archive creation and export meet an enforced budget or stream from bounded staging, with Download and Compress tests covering folders and selections, safe cleanup, archive integrity, full protected input authentication, and a recorded release disposition.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
User impact
Library builds a folder or selection archive in memory before sending it. A set of individually valid media files can therefore consume memory proportional to the total archive, with further buffers when Compress saves a protected result. The user needs a bounded export that keeps Home responsive and explains a capacity refusal.
Found during the systematic audit in #93. Proposed priority: P2, with an explicit release decision after a bounded-memory reproduction. This is source evidence; peak memory and installed failure threshold remain unmeasured.
Source evidence
Applies to fetched develop 3beb816438fd567145a8d725e22465bd83277cf0 and local candidate 460b1888d344f52cebd1c25866be88ff4085f035.
- Develop tar.gz creation writes to a growing
Vec<u8>; ZIP does the same at line 3920. Candidate equivalents arelibrary.rs:3970and:3991. - Candidate
library.rs:4001returns the entire ZIP buffer. Selection archives use the same approach. api/gateway_provider_proxy.rs:1156-1166chunks an already complete buffer into the HTTP response. This bounds network chunk size, not archive construction memory.- The per-file upload limit does not bound a folder's aggregate size. The train's archive extraction limits protect a different operation.
Acceptance
- Choose and enforce an archive creation memory/size budget, or stage to an owned bounded file and stream it.
- Use incompressible input larger than the accepted RAM budget; record peak RSS and Home responsiveness on Mac and Linux.
- Test Download and Compress for folders and selections.
- Cancellation and errors clean up only owned partial output; the source files remain intact.
- Archive integrity and full authentication of protected input are verified.
- Record the exact candidate and the release disposition.
Related existing work: #445 lists/decrypts files, #450 opens individual protected files, #449 bounds extraction, #444 protects startup/update/recovery from large objects. This issue owns archive creation and export, so it does not duplicate those tasks.
- Linguagem predominante
- Rust
- Estrelas
- 6
- Forks
- 2
- Merge médio
- 1d 3h
- PRs com merge (30d)
- 42
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de elastos/elastos-runtime
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
elastos/elastos-runtime#563 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
elastos/elastos-runtime#508 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
elastos/elastos-runtime#436 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
elastos/elastos-runtime#427 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
elastos/elastos-runtime#405 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de elastos/elastos-runtime
Issues semelhantes
-
Panic on live viewport resize when unstyled elements exist in display: none subtreeTalvez já em andamento @GoCoder7 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
DioxusLabs/blitz#1488 ·
Mantenedores costumam responder em até 1 dia
-
🏷️ good first issue enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
S-Needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
vectordotdev/vrl#2042 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia