Skip to content

Commit

Permalink
Minor cleanup (#2668)
Browse files Browse the repository at this point in the history
* prevent panic

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* remove unused chunk_folder config

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* add changelog

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>

* use protobuf accessors to prevent nil

Co-authored-by: kobergj <[email protected]>

* indent list items correctly

* remove unneccessary line

Signed-off-by: jkoberg <[email protected]>

Co-authored-by: kobergj <[email protected]>
Co-authored-by: jkoberg <[email protected]>
  • Loading branch information
3 people authored Apr 5, 2022
1 parent 25d1edb commit 05267c4
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/minor-cleanup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: minor cleanup

- The `chunk_folder` config option is unused
- Prevent a panic when looking up spaces

https://github.com/cs3org/reva/pull/2668
1 change: 0 additions & 1 deletion examples/oc-phoenix/frontend.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public = true # force PKCS for public clients
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/var/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ func LookUpStorageSpacesForPathWithChildren(ctx context.Context, client gateway.
}

lSSRes, err := client.ListStorageSpaces(ctx, lSSReq)
if err != nil || lSSRes.Status.Code != rpc.Code_CODE_OK {
if err != nil {
return nil, nil, err
}
if lSSRes.Status.GetCode() != rpc.Code_CODE_OK {
return nil, lSSRes.Status, err
}

Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/drone/frontend-global.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/drone/src/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/drone/frontend.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/drone/src/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/local-mesh/frontend-global.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/var/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/local-mesh/frontend.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/var/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/local/combined.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/var/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/local/frontend-global.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/var/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down
1 change: 0 additions & 1 deletion tests/oc-integration-tests/local/frontend.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ allow_credentials = true
[http.services.ocdav]
# serve ocdav on the root path
prefix = ""
chunk_folder = "/var/tmp/reva/chunks"
# for user lookups
# prefix the path of requests to /dav/files with this namespace
# While owncloud has only listed usernames at this endpoint CERN has
Expand Down

0 comments on commit 05267c4

Please sign in to comment.