Skip to content

Resolve TODOs and improve script validation in ScriptlerManagement#194

Merged
mtughan merged 1 commit into
jenkinsci:mainfrom
somiljain2006:Script-not-found-error
Jul 10, 2026
Merged

Resolve TODOs and improve script validation in ScriptlerManagement#194
mtughan merged 1 commit into
jenkinsci:mainfrom
somiljain2006:Script-not-found-error

Conversation

@somiljain2006

@somiljain2006 somiljain2006 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Replace the "TODO" placeholder used for missing script content with Util.fixNull() so empty scripts are saved instead of literal "TODO" text. Also return HTTP 404 when attempting to run a non-existent script, rather than throwing an IOException.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@somiljain2006

Copy link
Copy Markdown
Contributor Author

@mtughan Can you review this pr?

@mtughan mtughan added the bugfix label Jul 10, 2026
@mtughan
mtughan merged commit 0a1f378 into jenkinsci:main Jul 10, 2026
17 checks passed
@somiljain2006
somiljain2006 deleted the Script-not-found-error branch July 10, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants