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

Error on retrieving record by traverse function & enabled record security #5766

Closed
AlexanderRay opened this issue Feb 23, 2016 · 6 comments
Closed
Assignees

Comments

@AlexanderRay
Copy link

Hi, I have issues by execution following query with enabled RecordSecurity (through ORestricted) if some of vertexes have no read access by current user. "select @Rid from (traverse * from #10:19 WHILE $depth <= 2) where $depth in [0,2] limit 100"

screen shot 2016-02-23 at 17 30 18

@wolf4ood
Copy link
Member

hi @AlexanderRay

can you post the permissions of user manager?

@AlexanderRay
Copy link
Author

user manager have no permissions for reading on vertex #5:0, but that vertex is connected to vertex #10:19. should I made some demo-db and upload it somewhere?

@wolf4ood
Copy link
Member

Yes thanks

@AlexanderRay
Copy link
Author

Hi, here is the dropbox link to the issue demo db "https://db.tt/y3yTQx6M"

sql for reproduce "select @Rid from (traverse * from #12:1 WHILE $depth <= 2) where $depth in [0,2] limit 100"

logged in user is "writer"

screen shot 2016-02-23 at 18 26 33

@wolf4ood wolf4ood self-assigned this Feb 23, 2016
@wolf4ood
Copy link
Member

hi @AlexanderRay

which version are you using?
I tried with 2.1.11 from console
and i got no results back which i think is correct because user writer is not allowed to read record
#12:0
If i do

select @rid from (traverse * from #12:1 WHILE $depth <= 2) where $depth in [0,2] limit 100

with record #12:1 i get your exception but i think because you specify travers with *
that means that it will try to traverse also the _allow* links, and user writer cannot read that clusters
You can solve it by traversing only graph relationship

select @rid from (traverse both() from #12:1 WHILE $depth <= 2) where $depth in [0,2] limit 100

@AlexanderRay
Copy link
Author

@i'm using 2.1.9

I see, it works also for graph relations and not for link types, but it's ok for me.

thanks a lot)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants