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

Ensure node exists before using it. #864

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

jordandukart
Copy link
Member

GitHub Issue: Islandora/documentation#2067

What does this Pull Request do?

Fixes a bug that can be encountered when navigating to a node/anode/media when anode does not exist.

What's new?

Checking if things exist.

How should this be tested?

Navigating to yoursite/node/somethingthatdoesnotexist/media and you should a WSOD. Full stack trace noted in the issue.

Interested parties

@Islandora/8-x-committers, @hachacha for catching it.

Copy link

@seth-shaw-unlv seth-shaw-unlv left a comment

Choose a reason for hiding this comment

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

This works.

Note, functional tests are failing, but it doesn't look like this is involved.

@seth-shaw-unlv
Copy link

Oh yeah, tests should be okay once we get #862 merged.

@seth-shaw-unlv seth-shaw-unlv merged commit 4c439d4 into Islandora:2.x Mar 25, 2022
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.

2 participants