[Bug]: install passes a leftover forcedl value instead of each server's force setting
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #5190 di @borzaka — integrata
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 25/100
Direzione di ricerca
Read lgsm/modules/install_server_files.sh around line 233 and check the force= assignments in its server branches. The issue identifies the mismatch: the fn_fetch_file call passes ${forcedl} instead of ${force}. Confirm the expected argument with the reported samp reproduction; done means the call passes the branch’s noforce setting.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Severity
severity: low
Reproducibility
reproducible: unable
Regression
regression: no
Affects latest release
latest-release: yes
User story
As a LinuxGSM maintainer, I want fn_install_server_files to pass the download setting each server defines, so that install does not depend on a value left over from an earlier download.
Script name
all servers installed by fn_install_server_files
Game
Other
Linux distro
Other
Command
command: install
Expected behavior
fn_fetch_file gets the force="noforce" value that each of the 27 server branches in fn_install_server_files sets.
Actual behavior
The call in lgsm/modules/install_server_files.sh line 233 passes ${forcedl}, which no branch sets, so it gets whatever the last fn_fetch_file call left in the global forcedl. Today that is always noforce: the module is loaded by fn_fetch_module just before, and the downloads in between (EULA, SteamCMD) also pass noforce. There is no visible effect today.
Further information
85290d6b ("corrected download settings", 2017-05-14) changed the argument in the call from ${force} to ${forcedl} but did not rename the force= assignments, and it has stayed that way since (the file later moved from lgsm/functions to lgsm/modules). The bug is latent: if a download that passes "forcedl" (for example install_config.sh or an update module) ever ran just before this function, install would download the archive again despite force="noforce". The fix is to pass ${force} in the call; force is not used anywhere else in lgsm/.
Pre-checks
- I ran update and validate before reporting this issue.
Not applicable: found by code review of develop, not on a live server.
Relevant log output
# fn_install_server_files with shortname=samp and forcedl="forcedl" left from an earlier call,
# fn_fetch_file stubbed to print its 9th argument
develop (b3d24bec): fn_fetch_file arg9 (forcedl) = forcedl
Steps to reproduce
- Source
fn_install_server_filesfromlgsm/modules/install_server_files.shwithfn_fetch_file,fn_dl_extractandfn_clear_tmpstubbed. - Set
shortname=sampandforcedl="forcedl", then callfn_install_server_files. fn_fetch_filereceivesforcedlinstead of the branch'snoforce.
🤖 Generated with Claude Code
- Lingua principale
- Shell
- Stelle
- 4.9k
- Fork
- 870
- Merge medio
- 18h 44m
- PR unite (30g)
- 148
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GameServerManagers/LinuxGSM
-
command: start distro: Debian engine: null game: Teamspeak 3 reproducible: always severity: low type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
GameServerManagers/LinuxGSM#5193 ·
I maintainer di solito rispondono entro 1 giorno
-
command: start engine: unreal4 game: The Front reproducible: always severity: medium type: bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
GameServerManagers/LinuxGSM#5185 ·
I maintainer di solito rispondono entro 1 giorno
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bashForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertadistro: Ubuntu engine: source game: Insurgency status: fixed in develop
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
GameServerManagers/LinuxGSM#5153 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: cs2server ignores the GSLT entered during installForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertacommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
GameServerManagers/LinuxGSM#5106 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exitForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertacommand: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
GameServerManagers/LinuxGSM#5191 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di GameServerManagers/LinuxGSM
Issue simili
-
Isha NarulaAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
dataplat/DataSpeakers#178 ·
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/CypressForse già presa @viniciusdsandrade l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Min. CMake job: CMAKE_POLICY_VERSION_MINIMUM is not passed for CMake 3.16 (follow-up to #358)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
enhancement security severity:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
mattabate/life-distributable#153 ·
I maintainer di solito rispondono entro 1 giorno