-
-
Notifications
You must be signed in to change notification settings - Fork 223
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: Configurable uriPathSuffix in EventSourcedFrontendNodeRoutePa… #5189
base: 9.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,7 +117,7 @@ class NodeController extends ActionController | |
* @Flow\SkipCsrfProtection We need to skip CSRF protection here because this action could be called | ||
* with unsafe requests from widgets or plugins that are rendered on the node | ||
* - For those the CSRF token is validated on the sub-request, so it is safe to be skipped here | ||
*/ | ||
*/ | ||
public function previewAction(string $node): void | ||
{ | ||
// @todo add $renderingModeName as parameter and append it for successive links again as get parameter to node uris | ||
|
@@ -187,9 +187,9 @@ public function previewAction(string $node): void | |
* @throws \Neos\Flow\Mvc\Routing\Exception\MissingActionNameException | ||
* @throws \Neos\Flow\Session\Exception\SessionNotStartedException | ||
* @throws \Neos\Neos\Exception | ||
* @Flow\SkipCsrfProtection We need to skip CSRF protection here because this action could be called | ||
* with unsafe requests from widgets or plugins that are rendered on the node | ||
* - For those the CSRF token is validated on the sub-request, so it is safe to be skipped here | ||
* We need to skip CSRF protection here because this action could be called with unsafe requests from widgets or plugins that are rendered on the node - For those the CSRF token is validated on the sub-request, so it is safe to be skipped here | ||
* @Flow\SkipCsrfProtection | ||
* @Flow\IgnoreValidation("node") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand why this should be needed – IIRC There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I submit a form which redirects to a node (e.g. via Neos.Form or a Neos.Form:Builder rendered form) without this change, the request ends in a 404 and I get the error in the logs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That should be solved by the SkipCsrfProtection, the IgnoreValidation is also necessary and gives you the same error otherwise? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, exactly @kitsunet. Without the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i wonder if the problem here is in any way possibly related to #4909 ? ill have to experiment with this myself There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bwaidelich and @kitsunet i guess this is related to our misconception that the NodeController is infact part of the backend authentication? |
||
*/ | ||
public function showAction(string $node): void | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fluke?