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
Right, it was added in #9856. Hmm.
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
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.
(I haven't fully read through the links you sent)
Hmm. What about the new SPA UI? Should we fix it there instead of in JSF?
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.
Have a nice weekend!
You too!
Last updated: Oct 30 2025 at 06:21 UTC