Skip to content

Commit 1bde802

Browse files
Lojjsrenetapopova
andauthored
Add new GQLSTATUS codes 22NAA and 22NAB (#349)
Introduced in neo-technology/neo4j#31849 --------- Co-authored-by: Reneta Popova <[email protected]>
1 parent 308f658 commit 1bde802

File tree

13 files changed

+84
-18
lines changed

13 files changed

+84
-18
lines changed

modules/ROOT/content-nav.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@
141141
**** xref:errors/gql-errors/22NA7.adoc[]
142142
**** xref:errors/gql-errors/22NA8.adoc[]
143143
**** xref:errors/gql-errors/22NA9.adoc[]
144+
**** xref:errors/gql-errors/22NAA.adoc[]
145+
**** xref:errors/gql-errors/22NAB.adoc[]
144146
**** xref:errors/gql-errors/22NB0.adoc[]
145147
**** xref:errors/gql-errors/22NB1.adoc[]
146148
**** xref:errors/gql-errors/22NB2.adoc[]

modules/ROOT/pages/errors/gql-errors/22NA0.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NA0
22

33
== Status description
4-
error: data exception - invalid property based access control rule. Failed to administer property rule.
4+
error: data exception - invalid property-based access control rule. Failed to administer property rule.
55

66
ifndef::backend-pdf[]
77
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/22NA1.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
== Status description
5-
error: data exception - invalid property based access control rule involving non-commutative expressions. The property `{ <<propKey>> }` must appear on the left hand side of the `{ <<operation>> }` operator.
5+
error: data exception - invalid property-based access control rule involving non-commutative expressions. The property `{ <<propKey>> }` must appear on the left hand side of the `{ <<operation>> }` operator.
66

77

88
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/22NA2.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
== Status description
5-
error: data exception - invalid property based access control rule involving multiple properties. The expression: `{ <<expr>> }` is not supported. Property rules can only contain one property.
5+
error: data exception - invalid property-based access control rule involving multiple properties. The expression: `{ <<expr>> }` is not supported. Property rules can only contain one property.
66

77

88
ifndef::backend-pdf[]

modules/ROOT/pages/errors/gql-errors/22NA3.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
== Status description
44

5-
error: data exception - invalid property based access control rule involving NaN. 'NaN' is not supported for property-based access control.
5+
error: data exception - invalid property-based access control rule involving NaN. 'NaN' is not supported for property-based access control.
66

77

88

modules/ROOT/pages/errors/gql-errors/22NA4.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NA4
22

33
== Status description
4-
error: data exception - invalid property based access control rule involving comparison with `NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`.
4+
error: data exception - invalid property-based access control rule involving comparison with `NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`.
55

66
ifndef::backend-pdf[]
77
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/22NA5.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NA5
22

33
== Status description
4-
error: data exception - invalid property based access control rule involving `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `IS NULL` instead.
4+
error: data exception - invalid property-based access control rule involving `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `IS NULL` instead.
55

66
ifndef::backend-pdf[]
77
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/22NA6.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
= 22NA6
22

33
== Status description
4-
error: data exception - invalid property based access control rule involving `IS NOT NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `IS NOT NULL` instead.
4+
error: data exception - invalid property-based access control rule involving `IS NOT NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `IS NOT NULL` instead.
55

66
ifndef::backend-pdf[]
77
[discrete.glossary]

modules/ROOT/pages/errors/gql-errors/22NA7.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
== Status description
5-
error: data exception - invalid property based access control rule involving nontrivial predicates. The expression: `{ <<expr>> }` is not supported. Only single, literal-based predicate expressions are allowed for property-based access control.
5+
error: data exception - invalid property-based access control rule involving nontrivial predicates. The expression: `{ <<expr>> }` is not supported. Only single, literal-based predicate expressions are allowed for property-based access control.
66

77

88

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
= 22NAA
2+
3+
== Status description
4+
error: data exception - invalid list for property-based access control rule. The expression `{ <<expr>> }` is not supported. Lists containing `{ <<exprType>> }` values are not supported for property-based access control.
5+
6+
== Example scenario
7+
8+
For example, try to add a property-based access control rule including a list with a `NULL` type:
9+
10+
[source,cypher]
11+
----
12+
GRANT TRAVERSE ON GRAPH * FOR (n) WHERE n.prop1 IN ["string value", NULL] TO role
13+
----
14+
15+
You will receive an error with GQLSTATUS xref:errors/gql-errors/22NA0.adoc[22NA0] and a cause with GQLSTATUS 22NAA and the following status description:
16+
17+
18+
[source]
19+
----
20+
error: data exception - invalid list for property-based access control rule. The expression 'n.prop1 IN ["string value", NULL]' is not supported. Lists containing NULL values are not supported for property-based access control.
21+
----
22+
23+
ifndef::backend-pdf[]
24+
[discrete.glossary]
25+
== Glossary
26+
27+
include::partial$glossary.adoc[]
28+
endif::[]

0 commit comments

Comments
 (0)