Comments (2)
Huh, this is a reincarnation of #295…
from keepassium.
As mentioned above, the issue is caused by TLS (transport layer security) session caching in system's code. All the TLS stuff is abstracted away deep in the system code and there is no way for an app to flush or disable that cache.
As a solution, Apple suggests to create a separate URLSession
instance for each connection. Considering that each URLSession maintains its own TLS session cache, independent sessions would avoid caching problem.
Unfortunately, this solution does not seem to work. Even when KeePassium uses a different URLSession
for each URL, it receives correct responses for both files only the first time. After that, one of the responses returns status 404.
Interestingly, the behavior differs among the tested WebDAV services. Synology WebDAV server and koofr.eu
work normally, returning different files for different users, even if using the same shared URLSession for all connections. In contrast, woelkli.com
ends up with the error even if using separate connections. Apparently, server-side caching is also involved in some cases.
The only sure-fire solution I see would be to replace URLSession
with some custom OpenSSL-based implementation. This is complicated and can be justified only for networking-focused apps like file managers and browsers. For a password manager, however, this is way too much trouble for solving such a narrow-niche issue.
This leaves us with the following workarounds offered by Apple in the linked article:
- Consider configuring your server to listen on different ports. Then use a different port number for each connection. (Port number is part of the TLS caching key.)
- If you have control over server's DNS, configure different connections to go to different subdomains, e.g.
alice.example.com
andbob.example.com
. - Append a dot (
.
) to the host name of the second connection, e.g.example.com/file
andexample.com./file
. This ends up as a different caching key, too. This is the only method that does not require control over server configuration, but it is limited to two connections only (we cannot add a chain of dots).
See also:
from keepassium.
Related Issues (20)
- Option for keeping the window open during new entry HOT 2
- Entry title missing on iPad's right panel
- Entry tags disappear after OTP setup.
- MEGA.nz Files app integration HOT 7
- macOS: TouchID prompt not in Focus HOT 1
- (faq) password protection for each field? HOT 2
- iOS Autofilling memory insufficient workaround HOT 1
- Download database file only if it has changed since last sync HOT 2
- Cant fill in any password in Safari HOT 2
- Selectable path for backup files HOT 3
- MacOS/Safari: Autofill works without TouchID and TouchID-windows still appears HOT 8
- Dropbox API connection fails with error -1005 "Network connection was lost"
- MacOS Webdav not longer working HOT 12
- Keepassium 1.53.152 crashes when trying to search HOT 4
- An entry that behaves as a shortcut to open a database HOT 5
- [iOS14+] KeePassium needs to be opened first to fill in passwords in Safari HOT 16
- Direct in-app / native support for SFTP HOT 1
- Filter for expired entries HOT 3
- macOS: clicking the URL doesn't copy it to the clipboard HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keepassium.