Skip to content

[bugfix] Set EXIST_HOME so system:get-exist-home() returns a value. - #6607

Draft
dizzzz wants to merge 2 commits into
eXist-db:developfrom
dizzzz:bugfix/6582_existhome
Draft

[bugfix] Set EXIST_HOME so system:get-exist-home() returns a value.#6607
dizzzz wants to merge 2 commits into
eXist-db:developfrom
dizzzz:bugfix/6582_existhome

Conversation

@dizzzz

@dizzzz dizzzz commented Jul 23, 2026

Copy link
Copy Markdown
Member

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.

@dizzzz
dizzzz requested a review from a team as a code owner July 23, 2026 18:11
@dizzzz
dizzzz requested review from duncdrum, line-o and reinhapa July 23, 2026 18:18
@dizzzz
dizzzz force-pushed the bugfix/6582_existhome branch from 5b42d4b to 45aeca4 Compare July 24, 2026 10:04
@dizzzz dizzzz added bug issue confirmed as bug regression labels Jul 26, 2026
@dizzzz dizzzz added this to the eXist-7.0.0 milestone Jul 26, 2026
@dizzzz

dizzzz commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

@line-o @duncdrum @reinhapa ?

@dizzzz

dizzzz commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

Need two items:

  • add functional test.
  • add check for dba

@line-o

line-o commented Aug 10, 2026

Copy link
Copy Markdown
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
dizzzz marked this pull request as draft August 10, 2026 18:03
@dizzzz dizzzz self-assigned this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug issue confirmed as bug regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] system:get-exist-home() does not return value

2 participants