I have some updates.
I can confirm that the problem is “easily reproducible”.
I can also say that WAN, LAN or VPN is not the issue.
Yesterday, I downloaded v18.2 (252958),
I created a new database with 4D Server, connect, disconnect, quit client, quit server.
I did it again, and voilà, I get a new client cache. But I swear that this was not the case before!
- If I disconnect from the server, the “inuse.txt” file is removed.
- If I reconnect without restarting the client, the same cache is used.
- If I quit and relaunch the client, then connect to the same server, a new cache is created, with a new “inuse.txt” file and new “uuid.txt” file; this suggests that the app is indeed translocated.
To confirm, I look inside the “inuse.txt” file and I see the app path
I believe 4D is signed and notarised, but I suspect it is missing some entitlements, for example to access certain parts of the file system, or use the network. For my work, I actually sign and notarise 4D with my own Apple certificates and additional entitlements, for debugging plugins and doing other stuff. Today I am using an “official” copy so it does not have that advantage.
Perhaps we could discuss whether the official copy should be more entitled…
I went to system preferences and gave “Full Disk Access” to 4D. But that did not solve the translocation issue; a new cache is created yet again and the “inuse.txt” file says
This is not cool…
By the way, this is how translocation looks like in Finder:
The app is sandboxed in a temporary volume.
Translocation is a major problem for 4D. The cache folder issue is just one manifestation, and it raises a red flag saying that something is not quite right, but the real issue is that the 4D is not trusted by the system and is being translocated.