-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oc_properties must use fileid instead of path #25563
Comments
The code in question is here: https://github.com/owncloud/core/blob/master/apps/dav/lib/Files/CustomPropertiesBackend.php The tricky part is migrating from the old structure to the new one, basically trying to identify the files by path to find their ids. I suspect that in many envs entries are orphaned already, so need to clean those up.
|
@PVince81 should I keep old fields in DB for migration marking them as deprecated for the next major version or keep the whole table and populate existing entries into a new table as a repair step? |
Is it cheaper to create a new table than migrating the existing table and deleting the column ? I'd say that we migrate the data to the new structure and delete the old structure once we're done. No deprecation. Note that in 10.0 we have Doctrine migrations, so you could/should use that instead of repair steps when doing the migration. |
@PVince81 >in 10.0 we have Doctrine migrations |
No, it already works. But core doesn't have a single migration checked in yet. |
@PVince81 @DeepDiver1975 any reason why we have |
We probably never moved it when creating the "dav" app. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The oc_properties table contains any custom Webdav properties that might have been set by third party clients.
The trouble is that this table contains the full path to the target file and doesn't properly detect renames... so properties can get lost.
Furthermore, the column is too small and longer paths might not fit.
To be able to better preserve properties, we should make this table use the fileid instead of the path.
@DeepDiver1975
The text was updated successfully, but these errors were encountered: