Skip to content

A static 404 page (9770) - #9856

Merged
kcondon merged 3 commits into
developfrom
9770-404-page-error
Aug 30, 2023
Merged

A static 404 page (9770)#9856
kcondon merged 3 commits into
developfrom
9770-404-page-error

Conversation

@landreev

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This static page replaces the way-too-dynamic 404.xhtml page that's been throwing errors under p6 on account of some conflict with prettyfaces rewrite.
It's a rather confusing affair. I will add some details to the issue, spelling out just how confusing it is. Which will take more time than it took to put together this replacement page - which by itself should be a good reason to go with it.

Which issue(s) this PR closes:

Closes #9770

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

…hrowing errors under p6 on account of some conflict with prettyfaces rewrite. (#9770)
@github-actions

This comment has been minimized.

@pdurbin pdurbin self-assigned this Aug 30, 2023

@pdurbin pdurbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just some quick feedback. I don't mean to hold up this PR. I think it can be tested as-is.

Comment thread src/main/webapp/404static.xhtml Outdated
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" lang="en">
<head>
<title>Dataverse - Not Found</title>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm seeing some hard coded English on this page. Should we be using something like..

#{bundle['error.404.page.title']}

here? And other bundle entries from the old 404.xhtml?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, why not.
The words "copyright ..." etc. should be ok to stay hard-coded in English though.

<div class="container">
<div class="row">
<div class="col-sm-8 small">
<p>Copyright &#169; 2023, The President &#38; Fellows of Harvard College | <a href="http://best-practices.dataverse.org/harvard-policies/harvard-privacy-policy.html" target="_blank">Privacy Policy</a>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess we can't have anything dynamic like this:

value="#{settingsWrapper.get(':ApplicationPrivacyPolicyUrl')}"

@pdurbin pdurbin removed their assignment Aug 30, 2023
@pdurbin pdurbin added this to the 6.0 milestone Aug 30, 2023
@landreev

Copy link
Copy Markdown
Contributor Author

Here's what it looks like:
Screen Shot 2023-08-30 at 11 55 11 AM

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:9770-404-page-error
ghcr.io/gdcc/configbaker:9770-404-page-error

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@pdurbin pdurbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I didn't run this but the code makes sense. Approved.

@kcondon kcondon self-assigned this Aug 30, 2023
@kcondon
kcondon merged commit 3e46adf into develop Aug 30, 2023
@kcondon
kcondon deleted the 9770-404-page-error branch August 30, 2023 18:10
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.

Error Handling: 404 page thrown as a result of trying to load missing/incorrect Dataverse results in large stack trace but otherwise functions.

3 participants