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

BUGFIX: Graceful error handling if setup not completed #4717

Merged

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Nov 8, 2023

Resolves: #4714
Resolves: #4446

Current when visiting http://127.0.0.1:8081 or http://127.0.0.1:8081/anythingunmatched without a neos site being imported:

(yes a white-screen if a site exists but no site node)
image

(or if you have not site the EventSourcedFrontendNodeRoutePartHandler)
image

Proposed:

image

As soon as a site exist, the fusion exception view will use the error path as usual to render your custom 404 page.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

@mhsdesign
Copy link
Member Author

mhsdesign commented Feb 1, 2024

@kitsunet that should fix most cases and fix the flow tests, but im not sure this is all perfect. Seems a bit hacked together, and works only well in exactly this alignment

With #4880 its nearly perfect :)

@mhsdesign mhsdesign force-pushed the bugfix/graceFullErrorHandlingIfSetupNotCompletet branch from 7fc25a2 to c51d3cd Compare February 6, 2024 22:36
@mhsdesign mhsdesign force-pushed the bugfix/graceFullErrorHandlingIfSetupNotCompletet branch from c51d3cd to f94cecf Compare February 7, 2024 16:03
@mhsdesign mhsdesign changed the title Bugfix: grace full error handling if setup not completet BUGFIX: Graceful error handling if setup not completed Feb 7, 2024
@mhsdesign mhsdesign marked this pull request as ready for review February 7, 2024 16:04
@mhsdesign mhsdesign force-pushed the bugfix/graceFullErrorHandlingIfSetupNotCompletet branch from f94cecf to 625eaf6 Compare February 7, 2024 16:29
@mhsdesign
Copy link
Member Author

This pr makes #4050 obsolete.

@mhsdesign mhsdesign force-pushed the bugfix/graceFullErrorHandlingIfSetupNotCompletet branch 2 times, most recently from e728866 to 0c3b5ec Compare February 16, 2024 08:13
@mhsdesign
Copy link
Member Author

The Flow functional tests pass now when Neos is installed. So under that measurement the change is correct :D

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

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

Nice, +1 by reading

The router cache is still used in combination with our routing projection.
That could possibly lead to this error when our cache flushing cant keep up, like when deleting tables :D

> TODO: SITE NOT FOUND; should not happen (for address NodeAddress[...]

This changes the error to point to a possible cause, the Flow_Mvc_Routing_Route

Ideally our `RouterCacheHook` should always keep up.
previously the `@package` resolving would always take place, even if not necessary, when all includes are fully specified.
The TypoScript context variable `editPreviewMode` was deprecated in favour of `${documentNode.context.currentRenderingMode.name}`

 With neos 9 that again was removed in favour of the fusion global `renderingMode`.

neos#4505
After the previous adjustments the `SiteDetectionFailedException` will only be thrown in fewer cases, the only real reproducible the `/neos/content` route.
The rendering group is a bit overkill only for this thing and also might swallow 500 errors that should be presented as is and not wrapped by a vibrant welcome page.

The ui should be adjusted instead. neos/neos-ui#3721
@mhsdesign mhsdesign force-pushed the bugfix/graceFullErrorHandlingIfSetupNotCompletet branch from 0c3b5ec to 002ee3d Compare February 16, 2024 15:34
@mhsdesign mhsdesign merged commit 116b292 into neos:9.0 Feb 16, 2024
9 checks passed
@mhsdesign mhsdesign deleted the bugfix/graceFullErrorHandlingIfSetupNotCompletet branch February 16, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Neos 9 NoHomepageException is never thrown BUG: SiteDetection fails if no site exists
2 participants