Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A static 404 page (9770) #9856

Merged
merged 3 commits into from
Aug 30, 2023
Merged

A static 404 page (9770) #9856

merged 3 commits into from
Aug 30, 2023

Conversation

landreev
Copy link
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
Copy link
Member

@pdurbin pdurbin left a comment

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.

<!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
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
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
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
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

📦 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.

Copy link
Member

@pdurbin pdurbin left a comment

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
3 participants