Skip to content

Fix blank Font Awesome icons in preset themes (CSP font-src) and document H2 VALUE workaround - #183

Open
snoopdave wants to merge 2 commits into
masterfrom
allow-same-origin-fonts-in-theme-csp
Open

Fix blank Font Awesome icons in preset themes (CSP font-src) and document H2 VALUE workaround#183
snoopdave wants to merge 2 commits into
masterfrom
allow-same-origin-fonts-in-theme-csp

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

Two small fixes prompted by a user testing 6.1.6 RC1.

Preset theme CSP blocks webfonts

The Content-Security-Policy meta tag added to the preset themes in 6.1.2 sets default-src 'none' with no font-src directive, so @font-face webfonts fall back to 'none' and are blocked, while the CSS still loads. In the gaurav theme this leaves the Font Awesome icons (the search box glyph, the "posted on" clock, etc.) blank even though the stylesheet applies.

Adding font-src 'self' restores same-origin webfonts. All five preset themes carry the same policy string, so they are updated together to keep it consistent; gaurav is the one that actually ships webfonts today (Font Awesome 3.2.1 and Bootstrap Glyphicons, served same-origin).

H2 2.5.250 reserves VALUE

H2 2.5.250 made VALUE a reserved word, and several Roller tables use it as a column name (e.g. roller_properties), so Roller fails to read them on that H2. H2 is not an officially supported database (PostgreSQL, MySQL and Derby are), so this documents the ;NON_KEYWORDS=VALUE JDBC URL workaround in the install guide rather than changing the schema.

https://claude.ai/code/session_015X69HHQ5XnjRkJP8ymzwFf

The Content-Security-Policy meta tag added to the preset themes in 6.1.2
sets default-src 'none' with no font-src directive, so font fetches fall
back to 'none' and every @font-face webfont is blocked while the CSS still
loads. In the gaurav theme this leaves the Font Awesome icons (for example
the search and "posted on" glyphs) blank even though the stylesheet applies.

Add font-src 'self' so same-origin webfonts load again. All five preset
themes carry the same policy string, so update them together to keep it
consistent; gaurav is the one that ships webfonts today.

Claude-Session: https://claude.ai/code/session_015X69HHQ5XnjRkJP8ymzwFf
H2 2.5.250 reserves VALUE, which several Roller tables use as a column
name, so Roller fails to read them on that database. H2 is not an
officially supported database, so document the ;NON_KEYWORDS=VALUE JDBC
URL workaround in the install guide rather than changing the schema.

Claude-Session: https://claude.ai/code/session_015X69HHQ5XnjRkJP8ymzwFf
@mbien mbien added the 6.1.6 label Sep 8, 2026
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