fix(core): propagate archive extraction and copy failures
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 42/100
Research direction
Start with fn_dl_extract in lgsm/modules/core_dl.sh and trace the branch taken for an unsupported MIME type, where the function can return success without extracting anything. Then look at the selective ZIP path (extractsrc set): unzip, cp, then rm, where the final status must reflect a failed copy even if cleanup succeeds. Done means explicit errors with non-zero exit through the installer/update path, including exitbypass handling, with the listed validation cases reproduced.
Written by the indexing model from the issue text.
Description
Problem
fn_dl_extract in lgsm/modules/core_dl.sh can report successful extraction after an error, or without extracting anything.
This is the remaining extraction concern raised in #2421. The original curl-download error handling is now present and has been checked separately.
Paths to address
- An unsupported MIME type matches none of the extraction branches. The surrounding conditional can return success, allowing the function to print an extraction success message without extracting any files.
- In the selective ZIP extraction path (
extractsrcset), the function runsunzip, thencp, thenrm. The final status can reflect successful cleanup rather than a failed extraction or copy.
Expected behaviour
Unsupported archive types and failed extraction/copy operations must produce a clear error, terminate the installation/update with a non-zero exit status, and prevent later steps from reporting success. Cleanup must preserve the original failure status.
Validation
- Unsupported archive format fails explicitly.
- Corrupt/truncated supported archives fail.
- Selective ZIP extraction fails when the requested source is absent or extraction fails.
- Copy failures in selective ZIP extraction fail even when cleanup succeeds.
- Successful full and selective extraction still work.
- Verify failure propagation through a calling installer/update path, including any use of
exitbypass.
These findings come from reviewing the current develop implementation; the extraction failure cases still require reproduction and regression checks.
- Dominant language
- Shell
- Stars
- 4.9k
- Forks
- 870
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 68
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from GameServerManagers/LinuxGSM
-
engine: unity3d engine: unreal4 Epic game: 7 Days to Die game: ARK: Survival Evolved game: Rust info: dependency type: feature
Difficulty 5/5 Over a week Newbie friendliness 8/100
GameServerManagers/LinuxGSM#5047 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug]: libstdc++5:i386 is not available on Ubuntu 26.04 (cod, cod2, coduo, mohaa, bfv)Possibly taken A pull request linked to this issue is open or already merged. Opendistro: Ubuntu engine: idtech3 engine: iw2.0 engine: refractor game: Battlefield: Vietnam game: Call of Duty game: Call of Duty 2 game: Call of Duty: United Offensive game: Medal of Honor: Allied Assault info: dependency info: docker type: bug
Difficulty 3/5 Half a day Newbie friendliness 42/100
GameServerManagers/LinuxGSM#5026 ·
Maintainers usually reply within 1 day
-
command: monitor type: feature
Difficulty 3/5 Half a day Newbie friendliness 42/100
GameServerManagers/LinuxGSM#4995 ·
Maintainers usually reply within 1 day
-
feat(core): report a clear error when the configured branch doesn't existPossibly taken @dgibbs64 claimed this 2 days ago. Opentype: feature
Difficulty 3/5 Half a day Newbie friendliness 45/100
GameServerManagers/LinuxGSM#4994 ·
Maintainers usually reply within 1 day
-
command: console distro: Debian info: website regression: yes reproducible: always severity: medium type: bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
GameServerManagers/LinuxGSM#4962 · 2 comments ·
Maintainers usually reply within 1 day
All issues in GameServerManagers/LinuxGSM
Similar issues
-
agent/quality help wanted origin/quality quality stage/010-actionable testing
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hivecommons/hotshot#227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sleeyax/promptfiles#20 ·
-
Add PhotocraftOpenenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100