Skip to content

BUGFIX Catch exception if parent is not available #43

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

Merged
merged 2 commits into from
Oct 14, 2021
Merged

BUGFIX Catch exception if parent is not available #43

merged 2 commits into from
Oct 14, 2021

Conversation

dlubitz
Copy link
Contributor

@dlubitz dlubitz commented Sep 28, 2021

If parent node is not found (e.g hidden node) a NodeException is thrown, which leads to a critial error. Instead of the error the exception needs to get caught and handled with a null response.

This is bug caused by to the refactoring for Neos 7 upgrade, as the old getParent method returned null and didn't threw an exception:
https://github.com/Flowpack/Flowpack.SimpleSearch.ContentRepositoryAdaptor/pull/39/files#diff-88acc12ebeb4d9a9a63c7ce0e321878e38ab59d0815716450d91e6acbb8762f0R251-R257

Fixes #42

Copy link

@fcool fcool left a comment

Choose a reason for hiding this comment

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

Fine for me - but I guess somebody who uses this package apart from me, need to have a look.

@kdambekalns kdambekalns merged commit a6b6d01 into Flowpack:master Oct 14, 2021
@dlubitz dlubitz deleted the dlubitz-index-hidden branch October 14, 2021 11:39
@dlubitz dlubitz restored the dlubitz-index-hidden branch October 14, 2021 11:40
@dlubitz
Copy link
Contributor Author

dlubitz commented Oct 18, 2021

@kdambekalns Could you please also create a release for this patch? Thank you

@dlubitz dlubitz deleted the dlubitz-index-hidden branch October 26, 2021 11:47
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.

Parent node not found when trying to add or publish nodes
3 participants