Skip to content

Commit c01ef6e

Browse files
committed
Merge branch 'release/2.0.10'
2 parents 328c56c + 8f99161 commit c01ef6e

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Changes to prior versions can be found on the [Github release page](https://gith
99

1010
## [Unreleased]
1111

12+
## [2.0.9] - 2025-04-04
13+
1214
### Added
1315
* File /CHANGELOG.md to keep track of changes
1416

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.cryptomator</groupId>
55
<artifactId>webdav-nio-adapter</artifactId>
6-
<version>2.0.9</version>
6+
<version>2.0.10</version>
77
<name>WebDAV-NIO Adapter</name>
88
<description>Embedded Jetty serving a WebDAV servlet to access resources at a given NIO path.</description>
99
<url>https://github.com/cryptomator/webdav-nio-adapter</url>
@@ -20,7 +20,7 @@
2020

2121
<!-- dependencies -->
2222
<integrations-api.version>1.5.1</integrations-api.version>
23-
<webdavservlet.version>1.2.7</webdavservlet.version>
23+
<webdavservlet.version>1.2.8</webdavservlet.version>
2424
<jetty.version>10.0.25</jetty.version>
2525
<slf4j.version>2.0.17</slf4j.version>
2626

src/main/java/org/cryptomator/frontend/webdav/mount/MacAppleScriptMounter.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ protected String getContextPath() {
8383

8484
@Override
8585
protected Mount mount(WebDavServerHandle serverHandle, WebDavServletController servlet, URI uri) throws MountFailedException {
86+
try {
87+
// store credentials:
88+
ProcessBuilder storeCredentials = new ProcessBuilder("security", "add-internet-password", //
89+
"-a", "anonymous", //
90+
"-s", "localhost", //
91+
"-P", String.valueOf(uri.getPort()), //
92+
"-r", "http", //
93+
"-D", "Cryptomator WebDAV Access", //
94+
"-T", "/System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthSysAgent");
95+
ProcessUtil.startAndWaitFor(storeCredentials, 10, TimeUnit.SECONDS);
96+
} catch (IOException | TimeoutException e) {
97+
LOG.warn("Unable to store credentials for WebDAV access: {}", e.getMessage());
98+
}
8699
try {
87100
// mount:
88101
String mountAppleScript = String.format("mount volume \"%s\"", uri.toASCIIString());

0 commit comments

Comments
 (0)