Skip to content

[26.0] Pass tool_uuid as proper query parameter instead of reusing URL path id#22309

Merged
mvdbeek merged 1 commit intogalaxyproject:release_26.0from
mvdbeek:worktree-fix-tool-uuid-22260
Apr 7, 2026
Merged

[26.0] Pass tool_uuid as proper query parameter instead of reusing URL path id#22309
mvdbeek merged 1 commit intogalaxyproject:release_26.0from
mvdbeek:worktree-fix-tool-uuid-22260

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Mar 30, 2026

Fixes #22260. The show() and raw_tool_source() endpoints passed the URL path id as both tool_id and tool_uuid to _get_tool(), causing a ValueError when a non-UUID tool ID fell through to UUID parsing.

Now tool_uuid is passed as a separate query parameter (matching the pattern already used by the build endpoint), and the frontend sends it accordingly.

Also validates tool_uuid is a valid UUID before attempting lookup.

  • I want to do some manual checks in the editor, invocation, tool form etc before merging.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

Fixes galaxyproject#22260. The show() and raw_tool_source() endpoints passed the URL
path `id` as both tool_id and tool_uuid to _get_tool(), causing a
ValueError when a non-UUID tool ID fell through to UUID parsing.

Now tool_uuid is passed as a separate query parameter (matching the
pattern already used by the build endpoint), and the frontend sends it
accordingly.

Also validates tool_uuid is a valid UUID before attempting lookup.
@mvdbeek mvdbeek force-pushed the worktree-fix-tool-uuid-22260 branch from 5ace5a3 to 83ba481 Compare March 31, 2026 13:19
@mvdbeek mvdbeek marked this pull request as ready for review March 31, 2026 17:22
@github-actions github-actions Bot added this to the 26.1 milestone Mar 31, 2026
@mvdbeek mvdbeek requested a review from jmchilton April 1, 2026 11:00
@mvdbeek mvdbeek merged commit d73f0b6 into galaxyproject:release_26.0 Apr 7, 2026
64 of 67 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Apr 7, 2026
@nsoranzo nsoranzo deleted the worktree-fix-tool-uuid-22260 branch April 7, 2026 15:54
@nsoranzo nsoranzo modified the milestones: 26.1, 26.0 Apr 7, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

This PR was merged without a "kind/" label, please correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants