Skip to content

[regression] dav properties on non-files are not stored/retrieved properly #29047

Closed

Description

@DeepDiver1975

description

regression was introduced in #27005

symptom: dav properties on calendars cannot be set owncloud/calendar#812

action

  • bring back the property path value
  • if no fileid can be retrieved: use the property path
  • kill OC\Connector\Sabre\CustomPropertiesBackend

Activity

  1. added
    p1-urgent
    on Sep 18, 2017
  2. added this to the development milestone on Sep 18, 2017
  3. VicDeo commented on Sep 19, 2017

    @VicDeo
    Contributor

    @DeepDiver1975 the main idea behind this change was to reduce table size.
    Should we make the property path shorter than before?

  4. DeepDiver1975 commented on Sep 19, 2017

    @DeepDiver1975
    ContributorAuthor

    The table should remain small if we only Save the path in cases where we dont have the fileid like for calendars

  5. VicDeo commented on Sep 19, 2017

    @VicDeo
    Contributor

    @DeepDiver1975 it should be also taken into account

    • propertypath makes no sense without an owner
    • migration from propertypath to fileid drops all property values with unresolvable propertypath
    • instead of index for fileid solely, it should be compound (fileId, owner, propertypath or smth like this)
  6. VicDeo commented on Oct 2, 2017

    @VicDeo
    Contributor

    @DeepDiver1975 I need your input on the following approach:

    • table oc_properties referenced by userid and path
    • table oc_file_properties referenced by fileid
    • Lazy migration to fileid where possible while accessing the properties.

    And I haven't found the class OC\Connector\Sabre\CustomPropertiesBackend anywhere.
    Did you mean one of those:

    apps/dav/lib/Files/CustomPropertiesBackend.php:class CustomPropertiesBackend implements BackendInterface {
    apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php:class CustomPropertiesBackend implements BackendInterface {
    
  7. DeepDiver1975 commented on Oct 2, 2017

    @DeepDiver1975
    ContributorAuthor

    And I haven't found the class OC\Connector\Sabre\CustomPropertiesBackend anywhere.
    Did you mean one of those:

    yes

  8. DeepDiver1975 commented on Oct 2, 2017

    @DeepDiver1975
    ContributorAuthor

    propertypath makes no sense without an owner

    this is true for webdav v1. But in webdav v2 we have the user in the path
    remote.php/webdav/welcome.txt vs remote.php/dav/files/viktar/welcome.txt

    We might want to add a table for all properties of non files dav resources oc_dav_properties
    oc_properties can remain the way they are.

  9. reopened this on Oct 2, 2017
  10. VicDeo commented on Oct 2, 2017

    @VicDeo
    Contributor

    @DeepDiver1975 apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php is used in OCA\DAV\Connector\Sabre\ServerFactory with 'webdav' endpoint aka webdav v1

    while apps/dav/lib/Files/CustomPropertiesBackend.php is used in OCA\DAV\Server with 'dav' endpoint aka webdav v2

  11. DeepDiver1975 commented on Oct 2, 2017

    @DeepDiver1975
    ContributorAuthor

    I know - this needs to be cleanup. Properties set via dav need to be retrievable via webdav as well. And vis-versa. I suspect this can all be done in one backend - no need for two.

  12. VicDeo commented on Oct 2, 2017

    @VicDeo
    Contributor

    @DeepDiver1975 they looks pretty the same in general, but apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php has more code
    namely

    and depth support for directories
    9f6dcb9#diff-ee47f0ce20207c0c51ddd0481e47c580R112

    I'm not sure whether the latter is used anywhere.

  13. VicDeo commented on Oct 18, 2017

    @VicDeo
    Contributor

    Fixed in 10.0.4beta2
    master: #29136
    stable10: #29273

  14. lock commented on Aug 1, 2019

    @lock

    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.

  15. locked as resolved and limited conversation to collaborators on Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type:Bugp1-urgentregressionstatus/STALE

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions