occ files:transfer-ownership user1 user3
Transfer of welcome.txt to user2 succeeded.
± % occ files:transfer-ownership user1 user3
Analysing files of user1 ...
Collecting all share information for files and folder of user1 ...
Transferring files to user3/files/transferred from user1 on 2016-11-03T13:56:18+00:00 ...
Restoring shares ...
Cannot increase permissions of /user3/files/transferred from user1 on 2016-11-03T13:56:18+00:00/welcome.txt
Observed on v9.0.5 and possibly present in later versions.
This situation is possible to create only from OC < 9 because back then the OCS Share API allows to create file shares with permissions > 19 while the max permissions is actually 19 for file shares.
Note that the web UI created such shares properly but shares created with other clients might have sent higher permissions.
@davivel @nasli I remember that there were some misunderstandings about sharing permissions in the mobile apps so it is likely that some older versions allowed setting permissions higher than 19 and create this kind of situatoin.
Fix is here #26542
@PVince81 It was mostly about federated shares, default permissions and allow give share permissions or not.
Max file permission for files I think always has been 19 and 31 for folders
A better fix here using a repair step: #26562