Skip to content

Wrong permissions or missing WRITE permission #1311

@susnux

Description

@susnux

When parsing the permissions we only provide the Nextcloud storage permissions:

  • readable
  • updatable
  • deletable
  • createable
  • shareable

But DAV also has writeable as a separate permission for files because updatable as in the NV DAV permission just means the node can be moved or renamed (metadata update) but it does not mean the content is updatable.
So we should maybe add a dedicated writable to the permissions or add a new flag for it on the node.

Ref for permission string: https://github.com/nextcloud/server/blob/dae7c159f728a90ffa53247d6e033abdae5d2bd6/lib/public/Files/DavUtil.php#L36

Here we have:

  • NV -> The file or folder can be renamed (moved)
  • G -> The file or folder can be read
  • R -> The file or folder can be shared
  • D -> The file or folder can be deleted
  • W -> File only the file can be updated (write)
  • CK -> Folder only new children can be created

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to develop1️⃣ Accepted and waiting to be taken care oftype: bug🐛 Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions