Skip to content
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

Public cannot open the document via the public link of the project space #5025

Closed
ScharfViktor opened this issue Nov 10, 2022 · 0 comments · Fixed by #5037
Closed

Public cannot open the document via the public link of the project space #5025

ScharfViktor opened this issue Nov 10, 2022 · 0 comments · Fixed by #5037
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug

Comments

@ScharfViktor
Copy link
Contributor

ownCloud Web UI 6.0.0-rc.6
Infinite Scale 2.0.0-rc.1

is still open in another project. I moved it to ocis so I wouldn't forget.

Steps:

  • up ocis with wopi or use https://ocis.ocis-wopi.released.owncloud.works/
  • user creates project space with document (format doesn't matter) check collabora and onlyoffice
  • user creates public link for space
  • public opens file in collabora or onlyoffice

Actual: 500 error
Screenshot 2022-11-10 at 12 55 16

ocis log:

{"level":"error","service":"proxy","error":"gateway: grpc failed with code CODE_PERMISSION_DENIED","time":"2022-11-10T11:58:07.012160013Z","message":"error when calling Createhome"}

goroutine 64303 [running]:

runtime/debug.Stack()

runtime/debug/stack.go:24 +0x68

runtime/debug.PrintStack()

runtime/debug/stack.go:16 +0x20

github.com/cs3org/reva/v2/internal/grpc/interceptors/recovery.recoveryFunc({0x38cab50, 0x4002a48a50}, {0x349d400, 0x4ce3170})

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/recovery/recovery.go:48 +0x30

github.com/grpc-ecosystem/go-grpc-middleware/recovery.recoverFrom({0x38cab50?, 0x4002a48a50?}, {0x349d400?, 0x4ce3170?}, 0x4002344838?)

github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:61 +0x3c

github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1.1()

github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:29 +0x7c

panic({0x349d400, 0x4ce3170})

runtime/panic.go:838 +0x204

github.com/cs3org/reva/v2/internal/grpc/interceptors/auth.checkRelativeReference({0x38cab50, 0x4002a48a80}, 0x40029128c0, 0x4000c0ca50, {0x38ec7d0, 0x4000115368})

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:193 +0xec

github.com/cs3org/reva/v2/internal/grpc/interceptors/auth.resolvePublicShare({0x38cab50, 0x4002a48a80}, 0x40013bbfe0?, 0x4002a48c60, {0x38ec7d0, 0x4000115368}, {0x38ba8d8, 0x40017d05d8})

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:168 +0xcc

github.com/cs3org/reva/v2/internal/grpc/interceptors/auth.expandAndVerifyScope({0x38cab50, 0x4002a48a80}, {0x3792720?, 0x40090e9560?}, 0x40090e9560?, 0x40075eaab0, {0x2057fdc, 0xe}, {0x38ba8d8, 0x40017d05d8})

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:73 +0x594

github.com/cs3org/reva/v2/internal/grpc/interceptors/auth.dismantleToken({0x38cab50, 0x4002a48a80}, {0x4001eb2e00?, 0x20dbd28?}, {0x3792720, 0x40090e9560}, {0x38ba8d8?, 0x40017d05d8?}, {0x2057fdc, 0xe})

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/auth.go:296 +0x14c

github.com/cs3org/reva/v2/internal/grpc/interceptors/auth.NewUnary.func2({0x38cab50, 0x4002a48a50}, {0x3792720, 0x40090e9560}, 0x400091ee80, 0x400091eec0)

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/auth.go:128 +0x334

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?})

github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40

github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?}, 0x40039171b8?, 0xeb2a60?)

github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:33 +0x98

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?})

github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40

github.com/cs3org/reva/v2/internal/grpc/interceptors/log.NewUnary.func1({0x38cab50, 0x4002a48a50}, {0x3792720, 0x40090e9560}, 0x400091ee80, 0x400091ef00)

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/log/log.go:39 +0x6c

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?})

github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40

github.com/cs3org/reva/v2/internal/grpc/interceptors/useragent.NewUnary.func1({0x38cab50, 0x4002a489c0}, {0x3792720, 0x40090e9560}, 0x1?, 0x400091ef20)

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/useragent/useragent.go:38 +0xd4

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a489c0?}, {0x3792720?, 0x40090e9560?})

github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40

github.com/cs3org/reva/v2/internal/grpc/interceptors/token.NewUnary.func1({0x38cab50, 0x4002a48930}, {0x3792720, 0x40090e9560}, 0x4003917458?, 0x400091ef40)

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/token/token.go:44 +0x120

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48930?}, {0x3792720?, 0x40090e9560?})

github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40

github.com/cs3org/reva/v2/internal/grpc/interceptors/appctx.NewUnary.func1({0x38cab50, 0x4002a48810}, {0x3792720, 0x40090e9560}, 0x0?, 0x400091ef60)

github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/appctx/appctx.go:51 +0x594

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48810?}, {0x3792720?, 0x40090e9560?})

github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40

github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x38cab50, 0x4002a48810}, {0x3792720, 0x40090e9560}, 0x4001f1a9f8?, 0x8d0b58?)

github.com/grpc-ecosystem/[email protected]/chain.go:34 +0xbc

github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1._GatewayAPI_OpenInApp_Handler({0x387c7c0?, 0x400131f500}, {0x38cab50, 0x4002a48810}, 0x40075a2850, 0x4001cba2d0)

github.com/cs3org/[email protected]/cs3/gateway/v1beta1/gateway_api.pb.go:3248 +0x13c

google.golang.org/grpc.(*Server).processUnaryRPC(0x40016cd2c0, {0x38da310, 0x4000424ea0}, 0x400198de60, 0x4001cba480, 0x4d21778, 0x0)

google.golang.org/[email protected]/server.go:1340 +0xb90

google.golang.org/grpc.(*Server).handleStream(0x40016cd2c0, {0x38da310, 0x4000424ea0}, 0x400198de60, 0x0)

google.golang.org/[email protected]/server.go:1713 +0x840

google.golang.org/grpc.(*Server).serveStreams.func1.2()

google.golang.org/[email protected]/server.go:965 +0x88

created by google.golang.org/grpc.(*Server).serveStreams.func1

google.golang.org/[email protected]/server.go:963 +0x298

{"level":"error","service":"gateway","pkg":"rgrpc","traceid":"00000000000000000000000000000000","time":"2022-11-10T11:58:07.017859846Z","message":"runtime error: invalid memory address or nil pointer dereference; stack: goroutine 64303 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x68\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/recovery.recoveryFunc({0x38cab50, 0x4002a48a50}, {0x349d400, 0x4ce3170})\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/recovery/recovery.go:50 +0x50\ngithub.com/grpc-ecosystem/go-grpc-middleware/recovery.recoverFrom({0x38cab50?, 0x4002a48a50?}, {0x349d400?, 0x4ce3170?}, 0x4002344838?)\n\tgithub.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:61 +0x3c\ngithub.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1.1()\n\tgithub.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:29 +0x7c\npanic({0x349d400, 0x4ce3170})\n\truntime/panic.go:838 +0x204\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/auth.checkRelativeReference({0x38cab50, 0x4002a48a80}, 0x40029128c0, 0x4000c0ca50, {0x38ec7d0, 0x4000115368})\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:193 +0xec\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/auth.resolvePublicShare({0x38cab50, 0x4002a48a80}, 0x40013bbfe0?, 0x4002a48c60, {0x38ec7d0, 0x4000115368}, {0x38ba8d8, 0x40017d05d8})\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:168 +0xcc\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/auth.expandAndVerifyScope({0x38cab50, 0x4002a48a80}, {0x3792720?, 0x40090e9560?}, 0x40090e9560?, 0x40075eaab0, {0x2057fdc, 0xe}, {0x38ba8d8, 0x40017d05d8})\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:73 +0x594\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/auth.dismantleToken({0x38cab50, 0x4002a48a80}, {0x4001eb2e00?, 0x20dbd28?}, {0x3792720, 0x40090e9560}, {0x38ba8d8?, 0x40017d05d8?}, {0x2057fdc, 0xe})\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/auth.go:296 +0x14c\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/auth.NewUnary.func2({0x38cab50, 0x4002a48a50}, {0x3792720, 0x40090e9560}, 0x400091ee80, 0x400091eec0)\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/auth.go:128 +0x334\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40\ngithub.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?}, 0x40039171b8?, 0xeb2a60?)\n\tgithub.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:33 +0x98\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/log.NewUnary.func1({0x38cab50, 0x4002a48a50}, {0x3792720, 0x40090e9560}, 0x400091ee80, 0x400091ef00)\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/log/log.go:39 +0x6c\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48a50?}, {0x3792720?, 0x40090e9560?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/useragent.NewUnary.func1({0x38cab50, 0x4002a489c0}, {0x3792720, 0x40090e9560}, 0x1?, 0x400091ef20)\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/useragent/useragent.go:38 +0xd4\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a489c0?}, {0x3792720?, 0x40090e9560?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/token.NewUnary.func1({0x38cab50, 0x4002a48930}, {0x3792720, 0x40090e9560}, 0x4003917458?, 0x400091ef40)\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/token/token.go:44 +0x120\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48930?}, {0x3792720?, 0x40090e9560?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40\ngithub.com/cs3org/reva/v2/internal/grpc/interceptors/appctx.NewUnary.func1({0x38cab50, 0x4002a48810}, {0x3792720, 0x40090e9560}, 0x0?, 0x400091ef60)\n\tgithub.com/cs3org/reva/[email protected]/internal/grpc/interceptors/appctx/appctx.go:51 +0x594\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x38cab50?, 0x4002a48810?}, {0x3792720?, 0x40090e9560?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:25 +0x40\ngithub.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x38cab50, 0x4002a48810}, {0x3792720, 0x40090e9560}, 0x4001f1a9f8?, 0x8d0b58?)\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:34 +0xbc\ngithub.com/cs3org/go-cs3apis/cs3/gateway/v1beta1._GatewayAPI_OpenInApp_Handler({0x387c7c0?, 0x400131f500}, {0x38cab50, 0x4002a48810}, 0x40075a2850, 0x4001cba2d0)\n\tgithub.com/cs3org/[email protected]/cs3/gateway/v1beta1/gateway_api.pb.go:3248 +0x13c\ngoogle.golang.org/grpc.(*Server).processUnaryRPC(0x40016cd2c0, {0x38da310, 0x4000424ea0}, 0x400198de60, 0x4001cba480, 0x4d21778, 0x0)\n\tgoogle.golang.org/[email protected]/server.go:1340 +0xb90\ngoogle.golang.org/grpc.(*Server).handleStream(0x40016cd2c0, {0x38da310, 0x4000424ea0}, 0x400198de60, 0x0)\n\tgoogle.golang.org/[email protected]/server.go:1713 +0x840\ngoogle.golang.org/grpc.(*Server).serveStreams.func1.2()\n\tgoogle.golang.org/[email protected]/server.go:965 +0x88\ncreated by google.golang.org/grpc.(*Server).serveStreams.func1\n\tgoogle.golang.org/[email protected]/server.go:963 +0x298\n"}

{"level":"error","service":"gateway","pkg":"rgrpc","traceid":"00000000000000000000000000000000","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","from":"tcp://127.0.0.1:44956","uri":"/cs3.gateway.v1beta1.GatewayAPI/OpenInApp","start":"10/Nov/2022:11:58:07 +0000","end":"10/Nov/2022:11:58:07 +0000","time_ns":4819625,"code":"Internal","time":"2022-11-10T11:58:07.017923304Z","message":"unary"}

{"level":"error","service":"frontend","pkg":"rhttp","traceid":"00000000000000000000000000000000","request-id":"d089118728e6/e6B0F0N4p0-005614","error":"rpc error: code = Internal desc = runtime error: invalid memory address or nil pointer dereference","time":"2022-11-10T11:58:07.018692221Z","message":"Error contacting the requested application, please use a different one or try again later"}

{"level":"error","service":"frontend","pkg":"rhttp","traceid":"00000000000000000000000000000000","host":"127.0.0.1","method":"POST","uri":"/app/open?file_id=1284d238-aa92-42ce-bdc4-0b0000009157%249c741128-f470-4267-a0fe-7eb1656f3baf%2126436985-93bf-4792-b3b9-449452a55f0a&lang=en&app_name=Collabora","url":"/app/open?file_id=1284d238-aa92-42ce-bdc4-0b0000009157%249c741128-f470-4267-a0fe-7eb1656f3baf%2126436985-93bf-4792-b3b9-449452a55f0a&lang=en&app_name=Collabora","proto":"HTTP/1.1","status":500,"size":134,"start":"10/Nov/2022:11:58:07 +0000","end":"10/Nov/2022:11:58:07 +0000","time_ns":6288875,"time":"2022-11-10T11:58:07.018751054Z","message":"http"}

​

@micbar micbar added the Priority:p2-high Escalation, on top of current planning, release blocker label Nov 10, 2022
@micbar micbar added this to the 2.0.0 General Availability milestone Nov 10, 2022
@amrita-shrestha amrita-shrestha moved this from Done to Needs Tests in Infinite Scale Team Board Dec 22, 2022
@ScharfViktor ScharfViktor moved this from Needs Tests to Done in Infinite Scale Team Board May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants