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

Neos Backend crashes if newReferenceNodePath points to non-existing node #40

Open
lorenzulrich opened this issue Nov 9, 2020 · 2 comments

Comments

@lorenzulrich
Copy link
Collaborator

If a newReferenceNodePath is configured, but the referenced node is not available, the backend crashes without providing a meaningful message.

Message in developer console:

Error: Please provide either a string, an array or an object containing a contextPath to the FlowQuery API.

A speaking error would be nice to have.

@paavo
Copy link

paavo commented Jan 21, 2022

Hey @lorenzulrich
Does your problem still exist?

I found a similar Problem when trying to use FlatNav with Content-Nodes (instead of Document-Nodes).
We try to fix this Issue (with a little help from @dimaip).

Maybe we can disable Node Creation too, if the referenced node in newReferenceNodePath is not available.

@lorenzulrich
Copy link
Collaborator Author

@paavo Yes, this problem still exists. Thanks for looking into it. I'm interested to learn about a solution for content nodes.

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

No branches or pull requests

2 participants