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

Throw exception when full MARC record is missing. #3303

Merged
merged 2 commits into from
Jan 9, 2024

Conversation

demiankatz
Copy link
Member

The getRawMarcData method has a flaw where if a record in the Solr index is missing the fullrecord field (which can happen, for example, if SolrMarc encounters an exception while attempting to export full record data), it will try to access an undefined array offset. This PR throws an exception when this situation occurs, making it easier to identify the record causing the error.

@demiankatz demiankatz added this to the 9.1.1 milestone Jan 9, 2024
@demiankatz demiankatz assigned EreMaijala and unassigned EreMaijala Jan 9, 2024
@demiankatz demiankatz requested a review from EreMaijala January 9, 2024 19:02
@demiankatz demiankatz merged commit 862bb71 into vufind-org:release-9.1 Jan 9, 2024
7 checks passed
@demiankatz demiankatz deleted the marc-reader-exception branch January 9, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants