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

Alpha crash with shortest path query with password predicate #3657

Closed
campoy opened this issue Jul 12, 2019 · 0 comments · Fixed by #3662
Closed

Alpha crash with shortest path query with password predicate #3657

campoy opened this issue Jul 12, 2019 · 0 comments · Fixed by #3662
Labels
area/querylang/algos Related to graph algorithms, such as k-shortest path. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it.
Milestone

Comments

@campoy
Copy link
Contributor

campoy commented Jul 12, 2019

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?

docker latest and play.dgraph.io

  • Have you tried reproducing the issue with latest release?

Yes

  • What is the hardware spec (RAM, OS)?

Various N/A

  • Steps to reproduce the issue (command/config used to run Dgraph).

Send a query with a predicate containing at least one predicate of type password.
For instance, you can use the internal dgraph.password, but any other will also cause the issue.

{
  path as shortest(from: 0x1, to: 0x2) {
	  <dgraph.password>
  }
  path(func: uid(path)) {
  	name
	}
}
  • Expected behaviour and actual result.

I expected to get a result, instead I get a panic:

panic: runtime error: index out of range

goroutine 2248 [running]:
github.com/dgraph-io/dgraph/query.(*SubGraph).expandOut(0xc0015d2000, 0x4f997e0, 0xc012fc8f30, 0xc0148591a0, 0xc012fc22a0, 0xc016d28a80)
	/Users/francesc/src/github.com/dgraph-io/dgraph/query/shortest.go:186 +0xfca
created by github.com/dgraph-io/dgraph/query.shortestPath
	/Users/francesc/src/github.com/dgraph-io/dgraph/query/shortest.go:455 +0x226
@campoy campoy added kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it. area/querylang/algos Related to graph algorithms, such as k-shortest path. labels Jul 12, 2019
@campoy campoy added this to the Dgraph v1.1 milestone Jul 12, 2019
@campoy campoy modified the milestones: Dgraph v1.1, Dgraph v1.2 Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/querylang/algos Related to graph algorithms, such as k-shortest path. kind/bug Something is broken. priority/P1 Serious issue that requires eventual attention (can wait a bit) status/accepted We accept to investigate/work on it.
Development

Successfully merging a pull request may close this issue.

1 participant