Skip to content

add rest-cherrypy-timeout#68695

Open
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68653-rest-cherrypy-timeout
Open

add rest-cherrypy-timeout#68695
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68653-rest-cherrypy-timeout

Conversation

@harshang03
Copy link

What does this PR do?

Normalizes REST Cherrypy timeout values from requests/config, rejects invalid values with a 400, and adds unit coverage for timeout parsing.

What issues does this PR fix or reference?

Fixes #68653

Previous Behavior

Passing -d timeout=... with non-numeric or string values could raise an exception when executed via the runner client.

New Behavior

Timeouts are parsed into numbers or rejected early with a clear HTTP 400, preventing runner exceptions.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@harshang03 harshang03 marked this pull request as ready for review February 7, 2026 13:07
@harshang03 harshang03 requested a review from a team as a code owner February 7, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: salt-api with cherrypy and runner client, specifying -d timeout raise an exception

1 participant