owncloud/core — pull request #650 by schiesbn (2012-11-30 13:28:23+00:00)
Title: fix regression in file versioning for shared files

fix some obvious regressions in master with respect to versioning of shared files.

Even with this fix versioning of shared files does not work completely in master. The function used to get the source of a shared file only works for files directly shared but not for files in a shared folder because such files are not stored in the oc_share database.

@MTGap we really need to find a solution here. We have various places where we need to find the file source of files somewhere in a shared folder. This does not work with the database queries provided by OCP\Share::get*. Will this work with the new file cache and the adapted sharing? Otherwise I would really like to get apps/files_sharing/lib/util.php from stable45 into master. There are more and more issues which are resolved in stable45 but can't be fixed in master because such a function is missed.

Nevertheless I would like to get this patch into master because it fixes some obvious regressions.