Skip to content

Comments

Fix broken SolrJ symlinks in import script.#4934

Merged
demiankatz merged 3 commits intovufind-org:release-11.0from
demiankatz:fix-solrj-symlinks
Jan 9, 2026
Merged

Fix broken SolrJ symlinks in import script.#4934
demiankatz merged 3 commits intovufind-org:release-11.0from
demiankatz:fix-solrj-symlinks

Conversation

@demiankatz
Copy link
Member

It has been reported that using .deb packages to upgrade VuFind leaves behind outdated .solrj symlinks which break import following the upgrade (since SolrMarc can't find SolrJ). I imagine that there may be other scenarios that could leave these unwanted links behind after a Solr update. This PR adds logic to validate the symlinks and fix them as needed.

I did not take the time to add equivalent logic to the Windows batch file; since I'm not aware of a Windows scenario that would cause this situation, it seemed better not to overcomplicate things.

An alternate solution might be to update the .deb package script to wipe out any existing .solrj symlinks as part of the installation. That would have the advantage of not adding more processing to every import call, but the disadvantage of being a less general solution.

Feedback welcome!

@demiankatz demiankatz added this to the 11.0.1 milestone Dec 4, 2025
Copy link
Contributor

@EreMaijala EreMaijala left a comment

Choose a reason for hiding this comment

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

Looks good to me apart from a useless !.

@demiankatz demiankatz changed the base branch from dev to release-11.0 January 9, 2026 12:08
@demiankatz demiankatz requested a review from EreMaijala January 9, 2026 12:14
@demiankatz demiankatz merged commit 15ea43a into vufind-org:release-11.0 Jan 9, 2026
6 checks passed
@demiankatz demiankatz deleted the fix-solrj-symlinks branch January 9, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants