This repository has been archived by the owner on Jan 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
environment updates for the username userid split #420
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f905988
environment updates for the username userid split
butonic f0ad60d
update reva to v1.0.1-0.20200810113514-38919badfcc7
butonic 38176a8
go mod tidy
butonic d7978e0
update ocis-reva with reva@master
refs aec920b
Update reva to v1.1.1-0.20200813152025-baea1c67fb87
b1b712a
Adjust expected results of apiShareManagementBasic-createShare.featur…
phil-davis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Change: environment updates for the username userid split | ||
|
||
We updated the owncloud storage driver in reva to properly look up users by userid or username using the userprovider instead of taking the path segment as is. This requires the user service address as well as changing the default layout to the userid instead of the username. The latter is not considered a stable and persistent identifier. | ||
|
||
https://github.com/owncloud/ocis-reva/pull/420 | ||
https://github.com/cs3org/reva/pull/1033 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,8 +303,8 @@ func StorageHomeDataWithConfig(cfg *config.Config) []cli.Flag { | |
}, | ||
&cli.StringFlag{ | ||
Name: "storage-owncloud-layout", | ||
Value: "{{.Username}}", | ||
Usage: `"layout of the users home dir path on disk, in addition to {{.Username}}, {{.UsernameLower}} and {{.Provider}} also supports prefixing dirs: "{{.UsernamePrefixCount.2}}/{{.UsernameLower}}" will turn "Einstein" into "Ei/Einstein" `, | ||
Value: "{{.Id.OpaqueId}}", | ||
Usage: `"layout of the users home dir path on disk, in addition to {{.Username}}, {{.Mail}}, {{.Id.OpaqueId}}, {{.Id.Idp}} also supports prefixing dirs: "{{substr 0 1 .Username}}/{{.Username}}" will turn "Einstein" into "Ei/Einstein" `, | ||
EnvVars: []string{"REVA_STORAGE_OWNCLOUD_LAYOUT"}, | ||
Destination: &cfg.Reva.Storages.OwnCloud.Layout, | ||
}, | ||
|
@@ -318,5 +318,15 @@ func StorageHomeDataWithConfig(cfg *config.Config) []cli.Flag { | |
EnvVars: []string{"REVA_GATEWAY_URL"}, | ||
Destination: &cfg.Reva.Gateway.URL, | ||
}, | ||
|
||
// User provider | ||
|
||
&cli.StringFlag{ | ||
Name: "users-url", | ||
Value: "localhost:9144", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
Usage: "URL to use for the reva service", | ||
EnvVars: []string{"REVA_USERS_URL"}, | ||
Destination: &cfg.Reva.Users.URL, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -327,10 +327,20 @@ func StorageOCWithConfig(cfg *config.Config) []cli.Flag { | |
}, | ||
&cli.StringFlag{ | ||
Name: "storage-owncloud-layout", | ||
Value: "{{.Username}}", | ||
Usage: `"layout of the users home dir path on disk, in addition to {{.Username}}, {{.UsernameLower}} and {{.Provider}} also supports prefixing dirs: "{{.UsernamePrefixCount.2}}/{{.UsernameLower}}" will turn "Einstein" into "Ei/Einstein" `, | ||
Value: "{{.Id.OpaqueId}}", | ||
Usage: `"layout of the users home dir path on disk, in addition to {{.Username}}, {{.Mail}}, {{.Id.OpaqueId}}, {{.Id.Idp}} also supports prefixing dirs: "{{substr 0 1 .Username}}/{{.Username}}" will turn "Einstein" into "Ei/Einstein" `, | ||
EnvVars: []string{"REVA_STORAGE_OWNCLOUD_LAYOUT"}, | ||
Destination: &cfg.Reva.Storages.OwnCloud.Layout, | ||
}, | ||
|
||
// User provider | ||
|
||
&cli.StringFlag{ | ||
Name: "users-url", | ||
Value: "localhost:9144", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
Usage: "URL to use for the reva service", | ||
EnvVars: []string{"REVA_USERS_URL"}, | ||
Destination: &cfg.Reva.Users.URL, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,8 +305,8 @@ func StorageOCDataWithConfig(cfg *config.Config) []cli.Flag { | |
}, | ||
&cli.StringFlag{ | ||
Name: "storage-owncloud-layout", | ||
Value: "{{.Username}}", | ||
Usage: `"layout of the users home dir path on disk, in addition to {{.Username}}, {{.UsernameLower}} and {{.Provider}} also supports prefixing dirs: "{{.UsernamePrefixCount.2}}/{{.UsernameLower}}" will turn "Einstein" into "Ei/Einstein" `, | ||
Value: "{{.Id.OpaqueId}}", | ||
Usage: `"layout of the users home dir path on disk, in addition to {{.Username}}, {{.Mail}}, {{.Id.OpaqueId}}, {{.Id.Idp}} also supports prefixing dirs: "{{substr 0 1 .Username}}/{{.Username}}" will turn "Einstein" into "Ei/Einstein" `, | ||
EnvVars: []string{"REVA_STORAGE_OWNCLOUD_LAYOUT"}, | ||
Destination: &cfg.Reva.Storages.OwnCloud.Layout, | ||
}, | ||
|
@@ -320,5 +320,15 @@ func StorageOCDataWithConfig(cfg *config.Config) []cli.Flag { | |
EnvVars: []string{"REVA_GATEWAY_URL"}, | ||
Destination: &cfg.Reva.Gateway.URL, | ||
}, | ||
|
||
// User provider | ||
|
||
&cli.StringFlag{ | ||
Name: "users-url", | ||
Value: "localhost:9144", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
Usage: "URL to use for the reva service", | ||
EnvVars: []string{"REVA_USERS_URL"}, | ||
Destination: &cfg.Reva.Users.URL, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember people complaining here, that a URL should always have
http(s)://
. Please adjust. ;-)