Stream: troubleshooting

Topic: 404static.xhtml file


view this post on Zulip Bethany Seeger (Oct 24 2025 at 17:58):

Hello,
We are noticing that if someone puts in an unknown path on our test server, they end up at a 404static.xhtml file that doesn't match our theming. (this is dataverse 6.6, but I think the change was introduced in 6.0) It looks exactly like this: https://dataverse.harvard.edu/test

It's not customized to match our site and we were wondering what the recommendation is for working with these files? Should we customize them ourselves, or is there a different way people handle 404's?

Thanks!
Bethany

view this post on Zulip Philip Durbin ๐Ÿš€ (Oct 24 2025 at 18:54):

Right, it was added in #9856. Hmm.

view this post on Zulip Philip Durbin ๐Ÿš€ (Oct 24 2025 at 19:00):

Do you have a proxy in front, such as Apache or nginx? I'm guessing Apache since you have Shibboleth enabled. Maybe you can define your own 404 page there? There's an example of a 503 page at https://github.com/IQSS/dataverse/commit/aba7cd21bd9fcfd8fe37123f9d58339ed9436081 and a bit of a description here: https://github.com/IQSS/dataverse/issues/131#issuecomment-146719099

view this post on Zulip Bethany Seeger (Oct 24 2025 at 19:07):

Hmmm... it's probably bad to change the web.xml config, right? Considering it's overwritten when a new install happens?

The original 404.xml file is still there and works well. This current setup (404static.xml) is not documented (that I could find) and I imagine many people want a customized error page.

view this post on Zulip Bethany Seeger (Oct 24 2025 at 19:08):

(I haven't fully read through the links you sent)

view this post on Zulip Philip Durbin ๐Ÿš€ (Oct 24 2025 at 19:10):

Hmm. What about the new SPA UI? Should we fix it there instead of in JSF?

view this post on Zulip Bethany Seeger (Oct 24 2025 at 20:16):

That's a good question. I wonder how quickly people will move to the SPA. I'm not sure how quickly we can move to it.

view this post on Zulip Bethany Seeger (Oct 24 2025 at 20:16):

Have a nice weekend!

view this post on Zulip Philip Durbin ๐Ÿš€ (Oct 24 2025 at 20:29):

You too!


Last updated: Oct 30 2025 at 06:21 UTC