The following scripts allows to reproduce the issue (tested on a linux client)
```
#!/bin/sh
file="file="/srv/nfs/X.X.X.X_VFS_hosting-1463916/test"
if [ -f "$file" ]; then
id # uid=0(root) gid=0(root) groups=0(root)
content=`cat $file` # this will open the file and wrongly get write delegation for uid 0
echo "file content: $content"
stat "$file"
# File: '/srv/nfs/X.X.X.X_VFS_hosting-1463916/test'
# Size: 7 Blocks: 1 IO Block: 131072 regular file
# Device: 2bh/43d Inode: 321333 Links: 1
# Access: (0664/-rw-rw-r--) Uid: ( 5101/hosting-db) Gid: ( 5101/hosting-db)
sleep 2
echo "trying tee as hosting-db"
su hosting-db -s /bin/bash -c 'echo blabbb | tee '$file'' # this will try to setattr using the cached write delegation with uid 0
# should output: tee: /srv/nfs/X.X.X.X_VFS_hosting-1463916/test: Permission denied
fi
```