Skip to content

Commit adc787f

Browse files
committed
Review comments
1 parent 40ea219 commit adc787f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

modules/ROOT/pages/errors/gql-errors/42NA8.adoc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
== Status description
44
error: syntax error or access rule violation - invalid reference in command. Invalid reference in command `{ <<cmd>> }`.
55

6+
== Explanation
7+
This error occurs as the cause of other exceptions, for example, when trying to grant or deny privileges to, or revoke privileges from, a role that does not exist.
8+
Another example is when you try to grant or deny privileges to, or revoke privileges from, a role to perform administration commands on a database that does not exist.
9+
A third example is when you try to revoke a role from a user in Cypher 25, where either the role or the user does not exist.
10+
In Cypher 5, this last example will instead give a notification, see xref:notifications/all-notifications.adoc/#_neo_clientnotification_security_impossiblerevokecommand[Impossible revoke command].
11+
612
== Example scenario
713

814
For example, given that `role1` exists but `role2` does not, try to grant a privilege to both roles:
@@ -12,20 +18,18 @@ For example, given that `role1` exists but `role2` does not, try to grant a priv
1218
GRANT WRITE ON GRAPH * TO role1, role2
1319
----
1420

15-
You will receive an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001].
16-
This error will have a cause with GQLSTATUS 42NA8 and the status description below.
17-
The cause has a subsequent cause with GQLSTATUS xref:errors/gql-errors/42N10.adoc[42N10].
18-
19-
2021
[source]
2122
----
2223
error: syntax error or access rule violation - invalid reference in command. Invalid reference in command `GRANT WRITE ON GRAPH * NODES * TO role2`.
2324
----
2425

26+
The command returns an error with GQLSTATUS xref:errors/gql-errors/42001.adoc[42001] and a cause with this GQLSTATUS 42NA8 and the status description above.
27+
The cause has a subsequent cause with GQLSTATUS xref:errors/gql-errors/42N10.adoc[42N10].
28+
2529
[NOTE]
2630
====
2731
The command in the status description might not be the exact command you typed.
28-
Internally, Neo4j administration commands are separated into more specific sub-commands and the Cypher shown corresponds to the sub-command which was executed when the error occurred.
32+
Internally, the Neo4j administration commands are separated into more specific sub-commands, and the Cypher shown corresponds to the sub-command that was executed when the error occurred.
2933
====
3034

3135
ifndef::backend-pdf[]

0 commit comments

Comments
 (0)