Skip to content

Conversation

@fishface60
Copy link
Contributor

@fishface60 fishface60 commented Oct 6, 2025

Requirements for Contributing a Bug Fix or Enhancement

  • Fill out the template below. Any pull request that does not include enough information to be reviewed in timely manner will result in a request for you to update the pull request
    and possibly closure of the pull request if it is not provided after this request.
  • After you create the pull request, all status checks must pass before a maintainer will review your contribution.

Identify the Bug or Feature request

Fixes #5806

Description of the Change

This passes the file path to file type deduction in more places

Possible Drawbacks

There may be valid handlebars partial templates that don't appear to be html and wouldn't get returned as Type.HANDLEBARS.

Release Notes

  • Fixed handlebars partial template loading for stat sheets and potential fetching of .hbs files from WebViews.

This change is Reviewable

@github-project-automation github-project-automation bot moved this from Awaiting-Review to In-Progress in MapTool 1.19 Oct 9, 2025
Handlebars don't have their own MIME type so Tika doesn't consider
checking whether something that looks like HTML has handlebars
substitutions.

Since identifying handlebars unambiguously by content is hard
but the Handlebars partial template loader requires them to end
.hbs we can use that to identify the type.
We have filenames and passing them can help identify files correctly.
@fishface60 fishface60 force-pushed the fix-handlebars-url-fetch branch from 55ce8a7 to ed793b7 Compare October 19, 2025 13:11
@github-project-automation github-project-automation bot moved this from In-Progress to To-Be-Merged in MapTool 1.19 Oct 19, 2025
@cwisniew cwisniew added this pull request to the merge queue Oct 19, 2025
Merged via the queue into RPTools:develop with commit 382b9a6 Oct 19, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from To-Be-Merged to Merged in MapTool 1.19 Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

[Bug]: Loading Handlebars Partial templates by URL is broken

3 participants