nextcloud / nextcloud/user_migration
Enable ZipStreamer compression
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 30
- Forks
- 10
- Avg merge
- 6h 5m
- Merged PRs (30d)
- 12
Description
In https://github.com/nextcloud/user_migration/blob/main/lib/ExportDestination.php#L50 set to:
'compress' => COMPR::DEFLATE,
'level' => COMPR::MAXIMUM,
for me locally this leads to this error: https://github.com/DeepDiver1975/PHPZipStreamer/blob/master/src/ZipStreamer.php#L310
even after installing sudo pecl install pecl_http and enabling the "raphf" module, the error still appears.
- needs further research
- make it conditional
- document what is needed to enable compression
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at lib/ExportDestination.php#L50 and reproduce the compression error reported at PHPZipStreamer/src/ZipStreamer.php#L310. Check the referenced PECL http and raphf setup, then determine whether compression should be conditional or documented. Done means the compression setting no longer causes the reported error, or its prerequisites are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100