Skip to content

Commit

Permalink
Fixed default protocol on ocm-share-create
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Apr 4, 2023
1 parent a4f0127 commit 0d6a180
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/ocm-share-create-webdav.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Fixed default protocol on ocm-share-create

https://github.com/cs3org/reva/pull/3770
4 changes: 4 additions & 0 deletions cmd/reva/ocm-share-create.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func ocmShareCreateCommand() *command {
return errors.New("IdP cannot be empty: use -idp flag\n" + cmd.Usage())
}

if !*webdav && !*webapp && !*transfer {
*webdav = true
}

fn := cmd.Args()[0]

ctx := getAuthContext()
Expand Down

0 comments on commit 0d6a180

Please sign in to comment.