-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spaces registry #2234
Merged
Merged
Spaces registry #2234
Changes from all commits
Commits
Show all changes
268 commits
Select commit
Hold shift + click to select a range
5f8edba
Do not allow cross-storage restores
aduffeck 958f9b2
Fix expected failures for s3ng
aduffeck 028b279
Be more robust when handling error cases
aduffeck 4f0949d
WIP: Fix restoring recycle items
aduffeck a5ca0f3
Fix unit tests
aduffeck df6021e
Fix license headers
aduffeck a00d562
Fix linter issues
aduffeck 7f40804
move unwrapping and wrapping of paths to the gateway
434fb0e
minimal space provider and registry prototypes
butonic 606bfc4
Merge branch 'master' into sharestorageprovider-oc10-sm
butonic 38d8d72
add missing go.sum entry
butonic e5bcf1e
fix import
butonic 5b5f8ed
add embedded mounts when listing /home
butonic 4e257e8
remove unexpected passes
butonic 6380dc1
use space registry to manage aliases
butonic e735fed
add changelog
kobergj d615470
add old logic as comment as we want to bring parts of it back for OCM
butonic 1df7cc2
Merge branch 'master' into spaces-registry-and-provider
butonic 965bf36
further work
butonic 03b1f29
Merge branch 'sharestorageprovider-oc10-sm' into spaces-registry-and-…
butonic 2f157f9
fix access vi space & path
butonic ab89f60
Merge branch 'wrap-unwrap-gateway2' into spaces-registry-and-provider
butonic 4fb0937
register /home as path alies for the users personal space
butonic e8b8376
update toml files
butonic 4704592
Merge branch 'master' into spaces-registry-and-provider
butonic 70e7123
rewrite gateway Stat()
butonic 07bde6e
rewrite ListContainer()
butonic 34a8bc7
return not found Status instead of error
butonic c37fbbd
add comment
butonic 9a465ad
fix create container
butonic 1c43cb6
introduce findAndUnwrap
butonic 31477d2
internally use spaces instead of simple download protocol
butonic 5b1a006
fix drone pipeline
butonic 02f269a
fix litmus on spaces
butonic 968cc72
check if parent exists in decomposedfs
butonic 486eaf8
align local frontend config with drone
butonic 344dcbc
fix move
butonic 43145cb
fix copy
butonic c9b8418
spaces provider is no longer needed
butonic 377e594
don't discards absolute pathes on providers
kobergj 96894af
add DeleteStorageSpace to internal storage interface
butonic f44ba49
sharesstorageprovider: implement ListStorageSpaces
butonic ad4fdcf
tune ListContainer
butonic ef9fe0b
fine tune spaces registry
butonic 61a8830
drop mount_id config, fix decomposedfs shares spaces
butonic c79ec14
try fixing shares
butonic 7b84e8b
Merge branch 'master' into spaces-registry-and-provider
butonic 865d4f3
fix shares
butonic dfff5eb
also wipe spaces when deleting users
butonic b03e65a
try with empty quota
butonic c38ad03
add NewErrtypeFromStatus() helper
butonic bf9b79d
make decomposedfs use nodeid as spaceid, hide spaces of type share
butonic 2882767
align and refactor Stat and ListContainer
butonic 9715963
make sharesstorageprovider list each share as a space
butonic 5637244
make spaces registry stat resource id instead of calling list spaces
butonic 547975d
sharesstorageprovider align stat & list
butonic 5e452f4
register shares spaces as /home/Shares/{name}
butonic fdf3500
refactor sharesstorageprovider
butonic d4eeb60
add TODO
butonic 977b304
make gateway storageprovider return correct type on stat
butonic cb03124
fix path when listing unacceptaed shares
butonic 02d7a7c
add public function commend fort hound
butonic 8e04e50
make gateway handle absolute id based stats correctly
butonic a248ca8
make spaces registry use configured provider path in id based requests
butonic ea3b97f
Merge branch 'master' into spaces-registry-and-provider
butonic 92a9b3c
update combined.toml
butonic 346e0c2
drop gateway storage_rules
butonic 5651f09
fix stat to root of space and absolute id
butonic 5cad7e1
better handle relative references
butonic 4b3f5ec
revert path mangling for unaccepted shares
butonic eb1d562
cleanup toml config
butonic 3081995
remove stale TODO
butonic 86d20e4
avoid caching sideeffects for now
butonic 3c4be00
try cleaner responsibilities
butonic e4ea550
always send spaceid!nodeid in storagespaceid
butonic d58109a
fix spaces litmus tests
butonic 8921cd3
make hound happy
butonic 316cca6
fix spaces GET
butonic 3e3f0a0
fix up & download into shares
butonic f2a3daa
send space type when resolving id based request
butonic 5565241
fix public share listing
butonic 9b53c4d
fix create container on public share
butonic 1bb67bc
use reference for internal recycle api
butonic c9232aa
fix shares
butonic ad2240a
allow CurrentUser and Space in space registry template
butonic 4c2b065
ignore error when unsetting a not existing favorite flag
butonic 7cc4aeb
update path in dav report comment
butonic dc5fd44
only list spaces as nodes if no matches were found
butonic 8f7298b
create a copy of the reference to prevent losing the original
butonic f10ab0a
get rid of /home mountpoint to make paths unique
butonic e8736fd
add template to ocs home namespace
butonic c056183
id based requests must be forwarded as is
butonic 05e7a8a
decomposedfs: fix spaces root
butonic 792fbae
fix public path_template
butonic 7a6cce5
correct config
butonic b8528db
Merge branch 'master' into spaces-registry-and-provider
butonic ab0f73a
decomposedfs: add missing error check
kobergj 701eb14
allow sending uuid in createspace
butonic 41a6263
fix drone config
kobergj f526db7
Merge remote-tracking branch 'upstream/master' into spaces-registry-a…
kobergj 9f70310
remove unexpected passes
butonic 9ecf39a
add xattrs.CopyMetadata() function
butonic 61cfb61
when constructing a folder wipe checksums from metadata
butonic cf4c62b
align sharesstorageprovider up & download
butonic d16cfc8
drop unused local toml config
butonic d08a169
decomposedfs: copy metadata from old to new revision
butonic e584953
fix loop when downloading from a share
butonic 665228d
fix npe when no checksim is set
butonic 80cb931
fix renaming share
butonic 64f9144
Merge branch 'master' into spaces-registry-and-provider
butonic d2062a9
make resharing possible
kobergj 01de9ae
work on ocs share paths
butonic 3d62801
cut off path of received shares
butonic dfea441
work on ocs shares paths
butonic 862035c
use space id when listing trash
butonic 8b31dc6
set name when err == nil
butonic 0d0a62a
use spaceid instead of owner id when deleting a resource
butonic 8ac1fea
fix pending share path
butonic d2fe978
unmount share on delete
butonic b1831ae
wrap trash item paths correctly in the gateway
butonic 9e8d93b
the trash key contains root node and relative path
butonic c5ed2d4
unprefix trash item path in ocdav
butonic 1f3a4f9
fix listing recycle in decomposedfs
butonic f87582f
add docs to public CopyMetadata()
butonic f0f8217
fix renaming shares
butonic 1064cde
wrap path in share response
butonic d5a9b80
wrap path in more share responses
butonic 2821592
fix public storage spaces path_template
butonic d74fb64
omit virtual spaces config for now
butonic eca832a
omit PUT request for empty files
butonic c153d74
Do not try to walk an empty path
aduffeck 992b8f6
publicstorageprovider: do not prefix relative path to ListContainer i…
butonic e57a60b
publicstorageprovider: fix id based stat
butonic a19db8d
return expected xml error on public link auth errors
butonic b9a8e72
fix sharesstorageprovider unit tests
kobergj 715de88
fix file_target
butonic c07ed9a
unwrap permission error from scope
butonic 920a520
fix sharing unit tests
kobergj fff6992
forward recycle item key when purging
butonic 56607fb
work on decomposedfs tree tests
butonic d290dc3
fix chunked upload
butonic 140e553
Merge branch 'master' into spaces-registry-and-provider
butonic 0fac1cc
refactor gateway RestoreRecycleItem
butonic e878c10
fix trash restore
butonic 4581ff4
return ocs body on error when stating during create share
butonic 96499d4
remove unexpected passes
butonic 551aa96
render xml when resoucre not found on /dav/meta
butonic 8ef6e9f
Add grpc integration tests for the gateway
aduffeck 1fff339
skip spaces tests and fix tree_test
kobergj a212095
when resource has same storageid delegate MOVE decision
butonic 1a5a95b
Merge branch 'master' into spaces-registry-and-provider
butonic 14b1023
make content disposition reflect request base path
butonic 9d3230b
remove EnableHome from decomposedfs
kobergj a7e7395
make unit tests presumably green
kobergj e1eb328
remove home references from decomposedfs
kobergj d1ed00d
use exact path match to find responsible ListRecycle provider
butonic eb1acc5
fix log typo
butonic 9062142
fix finding correct recycle source provider
butonic ea9b55b
fix restore ref unwrapping
butonic 3ac05e2
align expected failures
butonic 6b76b4b
fix decomposedfs/node unit tests
kobergj f043f14
fix decomposedfs/tree unit tests
kobergj fff2238
fix decomposedfs unit tests
kobergj db9865b
fix decomposedfs concurrency unit tests
kobergj 4ca5641
look up home provider from gateway
butonic 545897d
make the linter happy
kobergj 7e1ecf4
make build work again
kobergj cd6d77a
make linter even more happy
kobergj 7e5023a
more linting fixes
kobergj 6654150
add even more linting fixes
kobergj f8d31fc
fix trash item lookup
butonic adc54c2
cache spaceid -> provider lookup
butonic 91618b5
actually cache providers
butonic 693c435
first round of integration test fixes
kobergj 98f9838
get rid of old cache in spaces registry
butonic d293937
don't use custom tempdir for integration tests
kobergj 01cc82d
fix linter, add mount point caching thoughts
butonic 3a517ef
fix log typo
butonic a4a1142
update spaces Readme
butonic ddd9661
comment unused mount cache for now
butonic 052299d
integration test fixes part II
kobergj 4c73911
fix restore logic in decomposedfs
kobergj 2f707fd
fix ocis integration tests
kobergj 923eb91
Merge branch 'master' into spaces-registry-and-provider
kobergj 537d033
Add gateway integration tests for sharded directories
aduffeck a2eee7b
Start refactoring spaces registry, bring back unit tests
aduffeck 80f1686
fix spaces registry tests
butonic 9dab22f
make storageregistry service use new internal interface
butonic 55faaca
commant internal storage registry interface
butonic 5ee13de
Bring back support for id based requests
aduffeck 3f82ecc
adjust gateway to new registry API
butonic 544bbee
make static registry compatible with new gateway
butonic 6d5aafb
fix findAndUnwrap
butonic da73449
Merge branch 'spaces-registry-and-provider' into spaces-registry-and-…
butonic 38a4489
Merge pull request #225 from aduffeck/spaces-registry-and-provider-re…
butonic 6bc66c4
Merge branch 'master' into spaces-registry-and-provider
butonic bbcd336
make hound happy again
butonic 30056ff
send mount path in GetProvider response
butonic 1dd883e
add naming comment
butonic 3deb485
fix path in stat response for id based requests
butonic 761e7ab
experimental fix for integration tests
kobergj ac7c156
sharpen unwrap logic
kobergj 16eaa35
attempt to fix the problem + probdescription
kobergj 988b9e5
more sophisticated way of determining the root
kobergj cbc6529
add same logic to recycle operations
kobergj 762714a
fix stat file type mount points
butonic f981e3e
Streamline tests, increase coverage
aduffeck f286896
Increase test coverage
aduffeck db8521e
comment cleanup
butonic f203b91
fix ListStorageSpace to contain correct spaceid
butonic 6d92f08
fix linting & hound
kobergj 7f35eb8
fix linting issues
kobergj b73b107
log correct call
butonic 794de6e
extract ref from opaque for public link scope
butonic 057119a
fix publiclink corner cases and scope
butonic 1fe9b28
Clarify spaces registry configuration
aduffeck f1207a2
update expected failures
butonic 29e016e
fixing gateway.RestoreTrashItem
butonic 1cdb1b7
Remove programmatic test focus
aduffeck 4d582cd
refactor utils.SplitStorageSpaceID
butonic 724b1d9
forbid cross provider RestoreRecycleItem
butonic bc7e4e7
fix relative references in space registry
butonic 9b26327
refactor integration tests
kobergj 2aa312d
fallback to CreateHome, deprecate GetHome
butonic a213c13
Fix CreateHome/GetHome when using the static registry
aduffeck f87989d
update cache notes
butonic 9a39aa2
rename spaces registry rule struct to provider
butonic 1e5572e
add a Stat cache to the gateway
kobergj 86e2a0f
also activate the cache
kobergj 99ff5e1
Merge branch 'master' into spaces-registry-and-provider
kobergj 2730d72
fix build after master merge
kobergj 3da9965
fix integration tests (again)
kobergj 9732035
Allow read access to the root node
aduffeck 7e6da31
Add grpc integration tests for the virtual views case
aduffeck 903732b
disable cache for now
butonic 4dadbcd
add comment to PublicStorageProviderID
butonic 6d143c4
Merge remote-tracking branch 'master' into spaces-registry-and-provider
butonic dcd277f
fix sharing
butonic f96a277
fix unit tests (again)
kobergj e2c028a
fix 0 byte uploads
butonic a1e5ab3
fix concurrency tests (again)
kobergj 195c6e0
add license header for storageprovidercache
kobergj 00f4942
no longer wipe storage after every test
butonic 5be829a
fix linting (again)
kobergj cc9921b
Fix integration tests
aduffeck 124f38d
make codacy happy
kobergj 29a1ae8
Revert "no longer wipe storage after every test"
butonic cbe1a2c
make codacy happy (part II)
kobergj a023668
make codacy happy (part III)
kobergj b48b2f3
virtual views pipeline is covered by tests/integration/grpc/gateway_s…
butonic 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
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,5 @@ | ||
Change: Add a sharestorageprovider | ||
|
||
This PR adds a ShareStorageProvider which enables us to get rid of a lot of special casing in other parts of the code. It also fixes several issues regarding shares and group shares. | ||
|
||
https://github.com/cs3org/reva/pull/2023 |
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,5 @@ | ||
Change: Add a spaces registry | ||
|
||
Spaces registry is supposed to manage spaces. Read `pkg/storage/registry/spaces/Readme.md` for full details | ||
|
||
https://github.com/cs3org/reva/pull/2234 |
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,5 @@ | ||
Change: move wrapping and unwrapping of paths to the storage gateway | ||
|
||
We've moved the wrapping and unwrapping of reference paths to the storage gateway so that the storageprovider doesn't have to know its mount path. | ||
|
||
https://github.com/cs3org/reva/pull/2016 |
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
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
Oops, something went wrong.
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'd remove these lines instead of commenting them. It is clutter.
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.
Fixed in #2383