Repository navigation
Closed
Labels
Description
curl -v -k -u richard:superfluidity -X PROPFIND https://localhost:9200/remote.php/dav/files => HTTP/1.1 500 Internal Server Error
ocis logs:
2020-10-26T12:02:04+05:45 INF core access token generated pkg=rhttp service=storage traceid=847205d7ba0f340c11a15483f48ed3aa
goroutine 720 [running]:
runtime/debug.Stack(0x0, 0xc340fbad7057284, 0xaad38ef48354a111)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x22
github.com/cs3org/reva/internal/grpc/interceptors/recovery.recoveryFunc(0x3f7d3a0, 0xc001f10c60, 0x33e0860, 0xc001de2cc0, 0x0, 0x0)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/interceptors/recovery/recovery.go:48 +0x26
github.com/grpc-ecosystem/go-grpc-middleware/recovery.recoverFrom(0x3f7d3a0, 0xc001f10c60, 0x33e0860, 0xc001de2cc0, 0x3acbbb8, 0xc0005a4c20, 0x148a2c6)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:61 +0x5a
github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1.1(0xc0005a53df, 0x3f7d3a0, 0xc001f10c60, 0xc0004180d0, 0xc0005a5488)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:29 +0x6d
panic(0x33e0860, 0xc001de2cc0)
/usr/local/go/src/runtime/panic.go:679 +0x1b2
github.com/cs3org/reva/internal/grpc/services/gateway.(*svc).split(0xc001b08000, 0x3f7d3a0, 0xc001f10f60, 0xc001cce68a, 0x6, 0x2, 0x0)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/services/gateway/storageprovider.go:1990 +0x513
github.com/cs3org/reva/internal/grpc/services/gateway.(*svc).isSharedFolder(...)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/services/gateway/storageprovider.go:1965
github.com/cs3org/reva/internal/grpc/services/gateway.(*svc).Stat(0xc001b08000, 0x3f7d3a0, 0xc001f10f60, 0xc0019a3590, 0xc001b08000, 0x33ad920, 0x3ec5258)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/services/gateway/storageprovider.go:1315 +0x657
github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1._GatewayAPI_Stat_Handler.func1(0x3f7d3a0, 0xc001f10f60, 0x384efc0, 0xc0019a3590, 0x390e700, 0xc0019aa800, 0x3f7d3a0, 0xc001f10f60)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/cs3/gateway/v1beta1/gateway_api.pb.go:2690 +0x89
github.com/cs3org/reva/internal/grpc/interceptors/auth.NewUnary.func1(0x3f7d3a0, 0xc001f10c60, 0x384efc0, 0xc0019a3590, 0xc001a07580, 0xc001a075a0, 0x0, 0x0, 0x0, 0x0)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/interceptors/auth/auth.go:96 +0x32b
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x3f7d3a0, 0xc001f10c60, 0x384efc0, 0xc0019a3590, 0x3530180, 0x58cf458, 0x0, 0x0)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x63
github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1(0x3f7d3a0, 0xc001f10c60, 0x384efc0, 0xc0019a3590, 0xc001a07580, 0xc001a075c0, 0x0, 0x0, 0x0, 0x0)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:33 +0xf7
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x3f7d3a0, 0xc001f10c60, 0x384efc0, 0xc0019a3590, 0xc00044ea80, 0x7f898fde3d98, 0x0, 0xc001a076a0)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x63
github.com/cs3org/reva/internal/grpc/interceptors/log.NewUnary.func1(0x3f7d3a0, 0xc001f10c60, 0x384efc0, 0xc0019a3590, 0xc001a07580, 0xc001a075e0, 0x0, 0xc001a07680, 0x1, 0x1)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/interceptors/log/log.go:39 +0x9e
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x3f7d3a0, 0xc001f10c60, 0x384efc0, 0xc0019a3590, 0x2, 0x3f7d3a0, 0xc001f10c60, 0xc001f10c30)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x63
github.com/cs3org/reva/internal/grpc/interceptors/token.NewUnary.func1(0x3f7d3a0, 0xc001f10c00, 0x384efc0, 0xc0019a3590, 0xc001a07580, 0xc001a07600, 0x397c4c0, 0xc001eb6960, 0x3f7d3a0, 0xc001f10c00)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/interceptors/token/token.go:44 +0xb4
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x3f7d3a0, 0xc001f10c00, 0x384efc0, 0xc0019a3590, 0xc001f10c00, 0xc001734a00, 0x4f, 0x1f4)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x63
github.com/cs3org/reva/internal/grpc/interceptors/appctx.NewUnary.func1(0x3f7d3a0, 0xc001f10ba0, 0x384efc0, 0xc0019a3590, 0xc001a07580, 0xc001a07620, 0x291ae8a, 0x3740500, 0xc001a07640, 0xc001a07580)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/interceptors/appctx/appctx.go:36 +0x4fc
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1(0x3f7d3a0, 0xc001f10ba0, 0x384efc0, 0xc0019a3590, 0xc00057c300, 0xc001a07540, 0xc001aefac0, 0x14385a8)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x63
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1(0x3f7d3a0, 0xc001f10ba0, 0x384efc0, 0xc0019a3590, 0xc001a07580, 0xc001a075a0, 0xc0005cdb30, 0x14d4438, 0x37c84c0, 0xc001f10ba0)
/home/artur/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:34 +0xd5
github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1._GatewayAPI_Stat_Handler(0x39f91c0, 0xc001b08000, 0x3f7d3a0, 0xc001f10ba0, 0xc001eb68a0, 0xc00047c5a0, 0x3f7d3a0, 0xc001f10ba0, 0xc001cce680, 0xa)
/home/artur/go/pkg/mod/github.com/cs3org/[email protected]/cs3/gateway/v1beta1/gateway_api.pb.go:2692 +0x14b
google.golang.org/grpc.(*Server).processUnaryRPC(0xc001ad6300, 0x3f9fde0, 0xc000271b00, 0xc00057c300, 0xc00047c750, 0x5591ce8, 0x0, 0x0, 0x0)
/home/artur/go/pkg/mod/google.golang.org/[email protected]/server.go:1024 +0x4f4
google.golang.org/grpc.(*Server).handleStream(0xc001ad6300, 0x3f9fde0, 0xc000271b00, 0xc00057c300, 0x0)
/home/artur/go/pkg/mod/google.golang.org/[email protected]/server.go:1313 +0xd99
google.golang.org/grpc.(*Server).serveStreams.func1.1(0xc0000505d0, 0xc001ad6300, 0x3f9fde0, 0xc000271b00, 0xc00057c300)
/home/artur/go/pkg/mod/google.golang.org/[email protected]/server.go:722 +0xbb
created by google.golang.org/grpc.(*Server).serveStreams.func1
/home/artur/go/pkg/mod/google.golang.org/[email protected]/server.go:720 +0xa1
2020-10-26T12:02:04+05:45 ERR split: len(parts) < 2: path:/users parts:[users] pkg=rgrpc service=storage traceid=847205d7ba0f340c11a15483f48ed3aa
2020-10-26T12:02:04+05:45 ERR unary code=Internal end="26/Oct/2020:12:02:04 +0545" from=tcp://127.0.0.1:36452 pkg=rgrpc service=storage start="26/Oct/2020:12:02:04 +0545" time_ns=307313 traceid=847205d7ba0f340c11a15483f48ed3aa uri=/cs3.gateway.v1beta1.GatewayAPI/Stat user-agent=grpc-go/1.26.0
2020-10-26T12:02:04+05:45 ERR error sending a grpc stat request to ref: path:"/users" error="rpc error: code = Internal desc = split: len(parts) < 2: path:/users parts:[users]" pkg=rhttp service=storage traceid=847205d7ba0f340c11a15483f48ed3aa
2020-10-26T12:02:04+05:45 ERR http end="26/Oct/2020:12:02:04 +0545" host=127.0.0.1 method=PROPFIND pkg=rhttp proto=HTTP/1.1 service=storage size=0 start="26/Oct/2020:12:02:03 +0545" status=500 time_ns=181771973 traceid=847205d7ba0f340c11a15483f48ed3aa uri=/remote.php/dav/files url=/remote.php/dav/files
Activity
bug demonstration scenario for #751
bug demonstration scenario for #751
Merge pull request #752 from owncloud/bugDemoFor751
commit f3fb12b
bug demonstration scenario for owncloud/ocis/issues/751
exalate-issue-sync commentedon Oct 26, 2020
Michael Barz commented: It should return 405
[tests-only] bug demonstration scenario for owncloud/ocis/issues/751 (#…
exalate-issue-sync commentedon Nov 12, 2020
Alex Unger commented: it also happens without basic auth:
exalate-issue-sync commentedon Nov 12, 2020
Alex Unger commented: so the panic comes from Reva:
exalate-issue-sync commentedon Nov 13, 2020
Alex Unger commented: getting to the bottom of it whenever the request to the webdav api on reva doesn't contain any file it panics, we should return
405instead as noted by [~mbarz] but the problem is that method not allowed is not present in go-cs3api.exalate-issue-sync commentedon Nov 13, 2020
Alex Unger commented: applying the following patch to reva does return
405on handling of the propfind:exalate-issue-sync commentedon Nov 13, 2020
Alex Unger commented: PR opened against cs3org/reva => cs3org/reva#1320
exalate-issue-sync commentedon Nov 24, 2020
Jörn Friedrich Dreyer commented: verifying that 405 is what clients should expect:
exalate-issue-sync commentedon Nov 25, 2020
Benedikt Kulmann commented: On an updated ocis.owncloud.works I get this in the logs when trying to log in with the iOS app:
exalate-issue-sync commentedon Nov 26, 2020
Alex Unger commented: fixed on 1320 already merged
exalate-issue-sync commentedon Nov 26, 2020
Alex Unger commented: The previous update was pulling the wrong version. Here is a fix: #957