Skip to content

Change Servlet Mapping and fix SVG exceptions#6968

Merged
solth merged 1 commit intokitodo:mainfrom
BartChris:svg_exceptions
Apr 13, 2026
Merged

Change Servlet Mapping and fix SVG exceptions#6968
solth merged 1 commit intokitodo:mainfrom
BartChris:svg_exceptions

Conversation

@BartChris
Copy link
Copy Markdown
Collaborator

@BartChris BartChris commented Apr 10, 2026

Fixes: #6965
Fixes: #6957

To fix different problems with SVGs in Kitodo in the latest tech stack it is necessary to make the servlet mapping setting more explicit so that SVG files are not handled as JSF pages. This change switches the mapping to *.xhtml, ensuring that only JSF views are handled by the FacesServlet, while static resources are served directly by the servlet container.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@solth solth requested review from henning-gerhardt and thomaslow and removed request for thomaslow April 10, 2026 10:35
Copy link
Copy Markdown
Collaborator

@thomaslow thomaslow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The proposed change make sense to me and fixes both referenced issues.

@solth solth merged commit 0c60579 into kitodo:main Apr 13, 2026
6 checks passed
@BartChris BartChris deleted the svg_exceptions branch April 13, 2026 12:02
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.

Pagination SVG Icons not shown Unhandled FacesMessages with svg file

4 participants