Skip to content

Commit

Permalink
LDEV-4540 - change the approach for setting implicit value
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jun 13, 2023
1 parent 0b70523 commit 54649c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions core/src/main/java/lucee/commons/sql/SQLUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,13 @@ public static String connectionStringTranslatedPatch(Config config, String connS

// MSSQL
if (StringUtil.startsWithIgnoreCase(connStr, "jdbc:sqlserver://")) {
if (StringUtil.indexOfIgnoreCase(connStr, ";encrypt=") != -1) {
if (StringUtil.indexOfIgnoreCase(connStr, ";trustServerCertificate=") != -1) {
return connStr;
}
return connStr + ";encrypt=false"; // we want default behaviour to state as before, if someone whishes encryption it can be set
// explicitly as the default behaviour was before
return connStr + (StringUtil.isEmpty(connStr, true) || connStr.endsWith(";") ? "" : ";") + "trustServerCertificate=true"; // we want default behaviour to state as
// before, if someone
// whishes encryption it can be set
// explicitly as the default behaviour was before
}

return connStr;
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="5.4.0.79-SNAPSHOT"/>
<property name="version" value="5.4.0.80-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>5.4.0.79-SNAPSHOT</version>
<version>5.4.0.80-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit 54649c5

Please sign in to comment.