-
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
Spaces registry #2234
Changes from 222 commits
5f8edba
958f9b2
028b279
4f0949d
a5ca0f3
df6021e
a00d562
7f40804
434fb0e
606bfc4
38d8d72
e5bcf1e
5b5f8ed
4e257e8
6380dc1
e735fed
d615470
1df7cc2
965bf36
03b1f29
2f157f9
ab89f60
4fb0937
e8b8376
4704592
70e7123
07bde6e
34a8bc7
c37fbbd
9a465ad
1c43cb6
31477d2
5b1a006
02f269a
968cc72
486eaf8
344dcbc
43145cb
c9b8418
377e594
96894af
f44ba49
ad4fdcf
ef9fe0b
61a8830
c79ec14
7b84e8b
865d4f3
dfff5eb
b03e65a
c38ad03
bf9b79d
2882767
9715963
5637244
547975d
5e452f4
fdf3500
d4eeb60
977b304
cb03124
02d7a7c
8e04e50
a248ca8
ea3b97f
92a9b3c
346e0c2
5651f09
5cad7e1
4b3f5ec
eb1d562
3081995
86d20e4
3c4be00
e4ea550
d58109a
8921cd3
316cca6
3e3f0a0
f2a3daa
5565241
9b53c4d
1bb67bc
c9232aa
ad2240a
4c2b065
7cc4aeb
dc5fd44
8f7298b
f10ab0a
e8736fd
c056183
05e7a8a
792fbae
7a6cce5
b8528db
ab0f73a
701eb14
41a6263
f526db7
9f70310
9ecf39a
61cfb61
cf4c62b
d16cfc8
d08a169
e584953
665228d
80cb931
64f9144
d2062a9
01de9ae
3d62801
dfea441
862035c
8b31dc6
0d0a62a
8ac1fea
d2fe978
b1831ae
9e8d93b
c5ed2d4
1f3a4f9
f87582f
f0f8217
1064cde
d5a9b80
2821592
d74fb64
eca832a
c153d74
992b8f6
e57a60b
a19db8d
b9a8e72
715de88
c07ed9a
920a520
fff6992
56607fb
d290dc3
140e553
0fac1cc
e878c10
4581ff4
96499d4
551aa96
8ef6e9f
1fff339
a212095
1a5a95b
14b1023
9d3230b
a7e7395
e1eb328
d1ed00d
eb1acc5
9062142
ea9b55b
3ac05e2
6b76b4b
f043f14
fff2238
db9865b
4ca5641
545897d
7e1ecf4
cd6d77a
7e5023a
6654150
f8d31fc
adc54c2
91618b5
693c435
98f9838
d293937
01cc82d
3a517ef
a4a1142
ddd9661
052299d
4c73911
2f707fd
923eb91
537d033
a2eee7b
80f1686
9dab22f
55faaca
5ee13de
3f82ecc
544bbee
6d5aafb
da73449
38a4489
6bc66c4
bbcd336
30056ff
1dd883e
3deb485
761e7ab
ac7c156
16eaa35
988b9e5
cbc6529
762714a
f981e3e
f286896
db8521e
f203b91
6d92f08
7f35eb8
b73b107
794de6e
057119a
1fe9b28
f1207a2
29e016e
1cdb1b7
4d582cd
724b1d9
bc7e4e7
9b26327
2aa312d
a213c13
f87989d
9a39aa2
1e5572e
86e2a0f
99ff5e1
2730d72
3da9965
9732035
7e6da31
903732b
4dadbcd
6d143c4
dcd277f
f96a277
e2c028a
a1e5ab3
195c6e0
00f4942
5be829a
cc9921b
124f38d
29a1ae8
cbe1a2c
a023668
b48b2f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
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 |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,41 +44,19 @@ import ( | |
) | ||
|
||
func (s *svc) OpenInApp(ctx context.Context, req *gateway.OpenInAppRequest) (*providerpb.OpenInAppResponse, error) { | ||
p, st := s.getPath(ctx, req.Ref) | ||
if st.Code != rpc.Code_CODE_OK { | ||
if st.Code == rpc.Code_CODE_NOT_FOUND { | ||
return &providerpb.OpenInAppResponse{ | ||
Status: status.NewNotFound(ctx, "gateway: resource not found:"+req.Ref.String()), | ||
}, nil | ||
} | ||
return &providerpb.OpenInAppResponse{ | ||
Status: st, | ||
}, nil | ||
} | ||
|
||
if s.isSharedFolder(ctx, p) { | ||
return &providerpb.OpenInAppResponse{ | ||
Status: status.NewInvalid(ctx, "gateway: can't open shared folder"), | ||
}, nil | ||
} | ||
|
||
resName, resChild := p, "" | ||
if s.isShareChild(ctx, p) { | ||
resName, resChild = s.splitShare(ctx, p) | ||
} | ||
|
||
statRes, err := s.stat(ctx, &storageprovider.StatRequest{ | ||
Ref: &storageprovider.Reference{Path: resName}, | ||
resChild := "" | ||
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.
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. Nope. Removed in #2383 |
||
statRes, err := s.Stat(ctx, &storageprovider.StatRequest{ | ||
Ref: req.Ref, | ||
}) | ||
if err != nil { | ||
return &providerpb.OpenInAppResponse{ | ||
Status: status.NewInternal(ctx, err, "gateway: error calling Stat on the resource path for the app provider: "+req.Ref.GetPath()), | ||
}, nil | ||
} | ||
if statRes.Status.Code != rpc.Code_CODE_OK { | ||
err := status.NewErrorFromCode(statRes.Status.GetCode(), "gateway") | ||
return &providerpb.OpenInAppResponse{ | ||
Status: status.NewInternal(ctx, err, "Stat failed on the resource path for the app provider: "+req.Ref.GetPath()), | ||
Status: statRes.Status, | ||
}, nil | ||
} | ||
|
||
|
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