Skip to content

Commit

Permalink
capabilities: add spaces
Browse files Browse the repository at this point in the history
changelog: add unreleased folder and .keep file

add changelog
  • Loading branch information
refs committed Sep 2, 2021
1 parent 011bc08 commit bf0f8e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Empty file added changelog/unreleased/.keep
Empty file.
5 changes: 5 additions & 0 deletions changelog/unreleased/spaces-capabilities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Add spaces to the list of capabilities

In order for clients to be aware of the new spaces feature we need to enable the `spaces` flag on the capabilities' endpoint. As we currently do, the capabilities endpoints remains a hardcoded set of capabilities, and it will default to true.

https://github.com/cs3org/reva/pull/2015
1 change: 1 addition & 0 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ type CapabilitiesDav struct {
Trashbin string `json:"trashbin" xml:"trashbin"`
Reports []string `json:"reports" xml:"reports>element" mapstructure:"reports"`
ChunkingParallelUploadDisabled bool `json:"chunkingParallelUploadDisabled" xml:"chunkingParallelUploadDisabled"`
Spaces bool `json:"spaces" xml:"spaces"`
}

// CapabilitiesFilesSharing TODO document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func (h *Handler) Init(c *config.Config) {
h.c.Capabilities.Dav.Reports = []string{"search-files"}
}

// enable spaces by default
h.c.Capabilities.Dav.Spaces = true

// sharing

if h.c.Capabilities.FilesSharing == nil {
Expand Down

0 comments on commit bf0f8e0

Please sign in to comment.