Repository navigation
Reject divider characters that break the Kometa run command - #1980
Merged
bullmoose20 merged 1 commit intoNov 25, 2026
Merged
Conversation
Signed-off-by: Sean Stoube <31805425+HoneyBearTech@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
N/A
What type of PR is this?
Description
A divider of
"or\on the Kometa page produced a run command thatshlex.splitcan't parse (--divider """/--divider "\", "No closing quotation").launch_kometa_commanddidn't catch theValueError:/start-kometareturned a 500 error page.Changes:
_runCommand.js: the divider field refuses"and\with a message naming them. Every other character accepted today is still accepted.process_lifecycle.py:launch_kometa_commandcatches the parse error and returns(False, "Invalid run command: ...")before anything starts.quickstart.py:/start-kometamaps that result to HTTP 400, as it already does for an invalid processing mode. The queued start logs the failure, and the maintenance loop keeps running.Tests:
"and\are refused.',#,$and=are still accepted./start-kometareturns 400 with the message. A malformed queued command is logged and the maintenance loop continues.The new tests fail without the fix.
npm test,npm run build, eslint,pytest -m "not e2e", ruff and black (-l 180) pass.Which Environment Did You Test On?
python quickstart.py)Tested on Linux. The Windows (
posix=False) parsing path is covered only throughshlex's non-POSIX mode, not on a Windows machine.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.