You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Orphaned share when moving a shared folder into another #13356
Login as "user3" and see if "test3" is still visible
Now login as "user2"
Create a folder "test4"
Share "test4" with "user3"
Move "test4" into "test2"
Check the share dropdown on "test2/test4"
Login as "user3"
Expected result
"user3" still has access to "test3" and "test4"
Share dropdown for "test2/test3" shows that it is shared with user3.
Share dropdown for "test2/test4" shows that it is shared with user3.
Actual result
"user3" only has access to "test3" (the one moved by owner of both shares)
"user3" does NOT have access to "test4", and the share dropdown doesn't show it.
The database shows that the former share for "test4" is orphaned, pointing to a non-existing id: select * from oc_share where item_source not in (select fileid from oc_filecache);
Could be partially due to file id instability: #13310
Please note that the orphaned shares do not appear in the list "Shared with you".
I remember seeing reports in the past where it did.
File id isn't an issue an more, it was fixed: #13310
The share information is now kept.
However there are additional issues: when moving "test4" into "test2", login as user3 and "test4" appears. But it is not possible to navigate into "test4".
I suspect that moving the shares doesn't properly update the parent-child relationships of the shares.
This error appears in the log:
{"reqId":"thauO4joDyi01YHsuPCi","remoteAddr":"127.0.0.1","app":"files_sharing","message":"Unable to get mount for shared storage '3' user 'user2'","level":3,"time":"2015-04-14T08:50:01+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2Ftest4&sort=name&sortdirection=asc"}
{"reqId":"thauO4joDyi01YHsuPCi","remoteAddr":"127.0.0.1","app":"files_sharing","message":"Unable to get mount for shared storage '3' user 'user2'","level":3,"time":"2015-04-14T08:50:01+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/ajax\/list.php?dir=%2Ftest4&sort=name&sortdirection=asc"}
@schiesbn do we even have logic that updates parent-child relationships when moving a share into another ?
Activity
PVince81 commentedon Jan 16, 2015
File id stability #13310 is not fixable in 8.0. Deferring to 8.1 as per the blocking ticket.
PVince81 commentedon Apr 14, 2015
File id isn't an issue an more, it was fixed: #13310
The share information is now kept.
However there are additional issues: when moving "test4" into "test2", login as user3 and "test4" appears. But it is not possible to navigate into "test4".
I suspect that moving the shares doesn't properly update the parent-child relationships of the shares.
This error appears in the log:
@schiesbn do we even have logic that updates parent-child relationships when moving a share into another ?
PVince81 commentedon Apr 14, 2015
Since this issue here is about orphaned shares, I'll raise another one with less steps.
PVince81 commentedon Apr 14, 2015
Raised here: #15591