Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
6dcf793
[ignore] Code cleanup
adamretter Apr 28, 2026
daf161d
[bugfix] Correct the wrapping in the Serializer so that it outputs th…
adamretter Apr 28, 2026
a6e2492
[bugfix] Do not modify namespaces when processing an HTTP POST of an …
adamretter Apr 28, 2026
18ba2c0
[optimize] Optimise the use of fn:collection and xmldb:xcollection
adamretter Apr 28, 2026
77af9f7
[optimize] Only an intention lock is needed at this point
adamretter Apr 28, 2026
4bc67b4
[bugfix] When serializing typed results from the REST API ensure that…
adamretter Apr 28, 2026
25ef26c
[optimize] Optimize marshalling/demarshalling of typed REST API XML
adamretter Apr 28, 2026
f76bae9
[refactor] Make fn:analyze-string compatible with Saxon versions 9 th…
adamretter Apr 28, 2026
cedd9c9
[feature] When looking for conf.xml on the Classpath, also check the …
adamretter Apr 28, 2026
2baad23
[feature] Add additional constructors and converted methods for sever…
adamretter Apr 28, 2026
c841d93
[feature] Allow tests to configure use of temporary storage via the p…
adamretter Apr 28, 2026
5b5add9
[bugfix] Make deserialization of typed values to the REST API more fo…
adamretter Apr 28, 2026
1f5f3a2
[feature] Allow the Context Item for query execution to be set via th…
adamretter Apr 28, 2026
6b89d69
[feature] Allow the Default Collection of the Dynamic Context for que…
adamretter Apr 28, 2026
b2c7cde
[refactor] Switch to the Evolved Binary port of the buildversion Mave…
adamretter Apr 28, 2026
dad57da
[feature] Add a '-a' and '--no-auto-deploy' argument to the Java Admi…
adamretter Apr 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions elemental-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,9 @@
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>com.code54.mojo</groupId>
<artifactId>buildversion-plugin</artifactId>
<version>1.0.3</version>
<groupId>com.evolvedbinary.maven.plugins</groupId>
<artifactId>buildversion-maven-plugin</artifactId>
<version>2.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -620,8 +620,8 @@
</executions>
</plugin>
<plugin>
<groupId>com.code54.mojo</groupId>
<artifactId>buildversion-plugin</artifactId>
<groupId>com.evolvedbinary.maven.plugins</groupId>
<artifactId>buildversion-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
Expand Down Expand Up @@ -814,19 +814,4 @@
</profile>
</profiles>

<pluginRepositories>
<pluginRepository>
<id>clojars.org</id>
<url>https://clojars.org/repo</url>
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<repository>
<id>central-ossrh-staging</id>
<name>Central Portal - OSSRH Staging API</name>
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

</project>
1 change: 1 addition & 0 deletions exist-core/src/main/java/org/exist/Namespaces.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public interface Namespaces {
String DTD_NS = XMLConstants.XML_DTD_NS_URI;

String SCHEMA_NS = XMLConstants.W3C_XML_SCHEMA_NS_URI;
String SCHEMA_NS_PREFIX = "xs";
String SCHEMA_DATATYPES_NS = "http://www.w3.org/2001/XMLSchema-datatypes";
String SCHEMA_INSTANCE_NS = XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI;

Expand Down
12 changes: 10 additions & 2 deletions exist-core/src/main/java/org/exist/client/CommandlineOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public class CommandlineOptions {
.description("do not make embedded mode available")
.defaultValue(false)
.build();
private static final Argument<Boolean> noAutoDeployArg = optionArgument("-a", "--no-auto-deploy")
.description("Disable auto-deployment of EXPath Packages")
.defaultValue(false)
.build();


/* gui arguments */
Expand Down Expand Up @@ -168,7 +172,7 @@ private static Optional<XmldbURI> optUri(final ParsedArguments parsedArguments,

public static CommandlineOptions parse(final String[] args) throws ArgumentException, URISyntaxException {
final ParsedArguments arguments = CommandLineParser
.withArguments(userArg, passwordArg, useSslArg, embeddedArg, embeddedConfigArg, noEmbeddedModeArg)
.withArguments(userArg, passwordArg, useSslArg, embeddedArg, embeddedConfigArg, noEmbeddedModeArg, noAutoDeployArg)
.andArguments(noGuiArg, guiQueryDialogArg)
.andArguments(mkColArg, rmColArg, setColArg)
.andArguments(parseDocsArg, getDocArg, rmDocArg)
Expand All @@ -189,6 +193,7 @@ public static CommandlineOptions parse(final String[] args) throws ArgumentExcep
final boolean embedded = getBool(arguments, embeddedArg);
final Optional<Path> embeddedConfig = getPathOpt(arguments, embeddedConfigArg);
final boolean noEmbeddedMode = getBool(arguments, noEmbeddedModeArg);
final boolean noAutoDeploy = getBool(arguments, noAutoDeployArg);

final boolean startGUI = !getBool(arguments, noGuiArg);
final boolean openQueryGUI = getBool(arguments, guiQueryDialogArg);
Expand Down Expand Up @@ -233,6 +238,7 @@ public static CommandlineOptions parse(final String[] args) throws ArgumentExcep
embedded,
embeddedConfig,
noEmbeddedMode,
noAutoDeploy,
startGUI,
openQueryGUI,
mkCol,
Expand All @@ -252,7 +258,7 @@ public static CommandlineOptions parse(final String[] args) throws ArgumentExcep
);
}

public CommandlineOptions(boolean quiet, boolean verbose, Optional<Path> outputFile, Map<String, String> options, Optional<String> username, Optional<String> password, boolean useSSL, boolean embedded, Optional<Path> embeddedConfig, boolean noEmbeddedMode, boolean startGUI, boolean openQueryGUI, Optional<XmldbURI> mkCol, Optional<XmldbURI> rmCol, Optional<XmldbURI> setCol, List<Path> parseDocs, Optional<XmldbURI> getDoc, Optional<String> rmDoc, Optional<String> xpath, List<Path> queryFiles, Optional<Integer> howManyResults, Optional<Path> traceQueriesFile, Optional<String> setDoc, Optional<Path> xupdateFile, boolean reindex, boolean reindexRecurse) {
public CommandlineOptions(boolean quiet, boolean verbose, Optional<Path> outputFile, Map<String, String> options, Optional<String> username, Optional<String> password, boolean useSSL, boolean embedded, Optional<Path> embeddedConfig, boolean noEmbeddedMode, boolean noAutoDeploy, boolean startGUI, boolean openQueryGUI, Optional<XmldbURI> mkCol, Optional<XmldbURI> rmCol, Optional<XmldbURI> setCol, List<Path> parseDocs, Optional<XmldbURI> getDoc, Optional<String> rmDoc, Optional<String> xpath, List<Path> queryFiles, Optional<Integer> howManyResults, Optional<Path> traceQueriesFile, Optional<String> setDoc, Optional<Path> xupdateFile, boolean reindex, boolean reindexRecurse) {
this.quiet = quiet;
this.verbose = verbose;
this.outputFile = outputFile;
Expand All @@ -263,6 +269,7 @@ public CommandlineOptions(boolean quiet, boolean verbose, Optional<Path> outputF
this.embedded = embedded;
this.embeddedConfig = embeddedConfig;
this.noEmbeddedMode = noEmbeddedMode;
this.noAutoDeploy = noAutoDeploy;
this.startGUI = startGUI;
this.openQueryGUI = openQueryGUI;
this.mkCol = mkCol;
Expand Down Expand Up @@ -292,6 +299,7 @@ public CommandlineOptions(boolean quiet, boolean verbose, Optional<Path> outputF
final boolean embedded;
final Optional<Path> embeddedConfig;
final boolean noEmbeddedMode;
final boolean noAutoDeploy;

final boolean startGUI;
final boolean openQueryGUI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public class InteractiveClient {
public static final String CREATE_DATABASE = "create-database";
public static final String LOCAL_MODE = "local-mode-opt";
public static final String NO_EMBED_MODE = "NO_EMBED_MODE";
public static final String NO_AUTO_DEPLOY = "no-autodeploy";

// values
protected static final String EDIT_CMD = "emacsclient -t $file";
Expand All @@ -155,6 +156,7 @@ public class InteractiveClient {
protected static final String SSL_ENABLE_DEFAULT = "FALSE";
protected static final String LOCAL_MODE_DEFAULT = "FALSE";
protected static final String NO_EMBED_MODE_DEFAULT = "FALSE";
protected static final String NO_AUTO_DEPLOY_DEFAULT = "FALSE";
protected static final String USER_DEFAULT = SecurityManager.DBA_USER;

protected static final String driver = "org.exist.xmldb.DatabaseImpl";
Expand All @@ -173,6 +175,7 @@ public class InteractiveClient {
defaultProps.setProperty(PERMISSIONS, "false");
defaultProps.setProperty(EXPAND_XINCLUDES, "true");
defaultProps.setProperty(SSL_ENABLE, SSL_ENABLE_DEFAULT);
defaultProps.setProperty(NO_AUTO_DEPLOY, NO_AUTO_DEPLOY_DEFAULT);
}

protected static final int colSizes[] = new int[]{10, 10, 10, -1};
Expand Down Expand Up @@ -333,6 +336,7 @@ protected void connect() throws Exception {
// Configure database
database.setProperty(CREATE_DATABASE, "true");
database.setProperty(SSL_ENABLE, properties.getProperty(SSL_ENABLE));
database.setProperty(NO_AUTO_DEPLOY, properties.getProperty(NO_AUTO_DEPLOY));

// secure empty configuration
final String configProp = properties.getProperty(InteractiveClient.CONFIGURATION);
Expand Down Expand Up @@ -1971,6 +1975,9 @@ protected void setPropertiesFromCommandLine(final CommandlineOptions options, fi
if(options.noEmbeddedMode) {
props.setProperty(NO_EMBED_MODE, "TRUE");
}
if (options.noAutoDeploy) {
props.setProperty(NO_AUTO_DEPLOY, "TRUE");
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public MutableDocumentSet allDocs(final DBBroker broker, final MutableDocumentSe
if(recursive && subColls != null) {
// process the child collections
for(final XmldbURI subCol : subColls) {
try(final Collection child = broker.openCollection(subCol, NO_LOCK)) { // NOTE: the recursive call below to child.addDocs will take a lock
try(final Collection child = broker.openCollection(subCol, INTENTION_READ)) { // NOTE: the recursive call below to child.addDocs will take a lock
//A collection may have been removed in the meantime, so check first
if(child != null) {
child.allDocs(broker, docs, recursive, lockMap);
Expand Down
Loading