Skip to content

Commit 11f2ae8

Browse files
committed
Fixing paths as they should be lowercase.
1 parent e94f1a2 commit 11f2ae8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/main/java/org/utplsql/cli/DataSourceProvider.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public class DataSourceProvider {
2828
* or the TNS_ADMIN environment variable on its own, but it doesn't look into ORACLE_HOME.
2929
* The property takes precedence over the environment variable, so it must not be set when TNS_ADMIN is.
3030
*
31-
* @return ORACLE_HOME/NETWORK/ADMIN when neither {@value TNS_ADMIN_PROPERTY} nor TNS_ADMIN is set, otherwise null
31+
* @return ORACLE_HOME/network/admin (lowercase, as in Oracle installations; paths are case-sensitive on Linux) when neither {@value TNS_ADMIN_PROPERTY} nor TNS_ADMIN is set, otherwise null
3232
*/
3333
static String getTnsAdminFallback(String tnsAdminProperty, String tnsAdminEnv, String oracleHome) {
3434
if (isEmpty(tnsAdminProperty) && isEmpty(tnsAdminEnv) && !isEmpty(oracleHome)) {
35-
return String.join(File.separator, oracleHome, "NETWORK", "ADMIN");
35+
return String.join(File.separator, oracleHome, "network", "admin");
3636
}
3737
return null;
3838
}

‎src/test/java/org/utplsql/cli/DataSourceProviderTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DataSourceProviderTest {
1313

1414
@Test
1515
void tnsAdminFallsBackToOracleHome() {
16-
assertEquals(String.join(File.separator, ORACLE_HOME, "NETWORK", "ADMIN"),
16+
assertEquals(String.join(File.separator, ORACLE_HOME, "network", "admin"),
1717
DataSourceProvider.getTnsAdminFallback(null, null, ORACLE_HOME));
1818
}
1919

0 commit comments

Comments
 (0)