[bugfix] Set EXIST_HOME so system:get-exist-home() returns a value. - #6607
Draft
dizzzz wants to merge 2 commits into
Draft
[bugfix] Set EXIST_HOME so system:get-exist-home() returns a value.#6607dizzzz wants to merge 2 commits into
dizzzz wants to merge 2 commits into
Conversation
dizzzz
force-pushed
the
bugfix/6582_existhome
branch
from
July 24, 2026 10:04
5b42d4b to
45aeca4
Compare
Member
Author
Member
Author
|
Need two items:
|
Member
|
Apparently, the function can be called as guest. Please ensure that only DBA is allowed. I would like to see a test or two in XQuery. |
dizzzz
marked this pull request as draft
August 10, 2026 18:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set EXIST_HOME so system:get-exist-home() returns a value when started with ./bin/startup.sh
There are probably a lot of quality issues on this file, explicitly not addressing these.
The actual change is in commit 1 ; commit 2 re-orders the loading.
fixes #6582
Summary
conf.xml was being found on the classpath (from test resources in target/test-classes) because the classpath lookup ran unconditionally before the file-based lookup, allowing it to shadow the real config file.
Changes
exist-core/src/main/java/org/exist/util/Configuration.java: Reversed the lookup order in the main constructor — file-based lookup now runs first; classpath is only tried as a fallback when no file is found. The error is thrown only after both strategies are exhausted.
Verification
Build: mvn install -pl exist-core -am -DskipTests — success.
Tests: ConfigurationTest — 10/10 passed.