orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

[2.1.2 GA Community] different fetchplan output between 1.7.x and 2.x (was #2906)

Open giastfader opened this issue 11 years ago • 3 comments

Hi, the #2906 was closed yesterday, because I didn't see your reply to it, sorry.

However the issue is still present in 2.1.2 GA Community edition. Here are the steps to reproduce the problem:

connect plocal:/databases/test_issue_2906 admin admin
create class _bb_user
create class _BB_UserAttributes extends ORestricted
create property _BB_User.visibleByAnonymousUsers link _BB_UserAttributes
insert into _BB_UserAttributes set email = "[email protected]"
insert into _bb_user set _author="me", visibleByAnonymousUsers = #13:0 --<-- according to the output of the previous statement

connect plocal:/databases/test_issue_2906 reader reader  --<--- reconnect with a low-privilege user
select @this.tojson("fetchPlan:visibleByAnonymousUsers:1,indent:0") from _bb_user

OrientDB 1.7.9 output:

{"_author":"me","visibleByAnonymousUsers":null}

OrientDB 2.1.2 output:

{"visibleByAnonymousUsers":"#13:0","_author":"me"}

giastfader avatar Sep 23 '15 11:09 giastfader

So the expected result is "visibleByAnonymousUsers":null in 2.1.2 ?

lvca avatar Sep 23 '15 11:09 lvca

Yes

giastfader avatar Sep 23 '15 11:09 giastfader

Did you already have the chance to test with v2.2.0-rc1?

lvca avatar May 09 '16 10:05 lvca