Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@
**** xref:errors/gql-errors/22NA7.adoc[]
**** xref:errors/gql-errors/22NA8.adoc[]
**** xref:errors/gql-errors/22NA9.adoc[]
**** xref:errors/gql-errors/22NAA.adoc[]
**** xref:errors/gql-errors/22NAB.adoc[]
**** xref:errors/gql-errors/22NB0.adoc[]
**** xref:errors/gql-errors/22NB1.adoc[]
**** xref:errors/gql-errors/22NB2.adoc[]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA0.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= 22NA0

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

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


== Status description
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.
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.


ifndef::backend-pdf[]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


== Status description
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.
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.


ifndef::backend-pdf[]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA3.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

== Status description

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



Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA4.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= 22NA4

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

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA5.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= 22NA5

== Status description
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.
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.

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA6.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= 22NA6

== Status description
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.
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.

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NA7.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


== Status description
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.
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.



Expand Down
28 changes: 28 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/22NAA.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= 22NAA

== Status description
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.

== Example scenario

For example, try to add a property-based access control rule including a list with a `NULL` type:

[source,cypher]
----
GRANT TRAVERSE ON GRAPH * FOR (n) WHERE n.prop1 IN ["string value", NULL] TO role
----

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:


[source]
----
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.
----

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
28 changes: 28 additions & 0 deletions modules/ROOT/pages/errors/gql-errors/22NAB.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
= 22NAB

== Status description
error: data exception - mixed type list for property-based access control rule. The expression `{ <<expr>> }` is not supported. All elements in a list must be literals of the same type for property-based access control.

== Example scenario

For example, try to add a property-based access control rule that contains a list of mixed types:

[source,cypher]
----
GRANT TRAVERSE ON GRAPH * FOR (n) WHERE n.prop1 IN ["string value", 5] TO role
----

You will receive an error with GQLSTATUS xref:errors/gql-errors/22NA0.adoc[22NA0] and a cause with GQLSTATUS 22NAB and the following status description:


[source]
----
error: data exception - mixed type list for property-based access control rule. The expression 'n.prop1 IN ["string value", 5]' is not supported. All elements in a list must be literals of the same type for property-based access control.
----

ifndef::backend-pdf[]
[discrete.glossary]
== Glossary

include::partial$glossary.adoc[]
endif::[]
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/gql-errors/22NB0.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= 22NB0

== Status description
error: data exception - invalid property based access control rule involving `WHERE` and `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `WHERE` syntax in combination with `IS NULL` instead.
error: data exception - invalid property-based access control rule involving `WHERE` and `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `WHERE` syntax in combination with `IS NULL` instead.

ifndef::backend-pdf[]
[discrete.glossary]
Expand Down
26 changes: 17 additions & 9 deletions modules/ROOT/pages/errors/gql-errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -533,35 +533,35 @@ Status description:: error: data exception - wrong token during deserialization.

=== xref:errors/gql-errors/22NA0.adoc[22NA0]

Status description:: error: data exception - invalid property based access control rule. Failed to administer property rule.
Status description:: error: data exception - invalid property-based access control rule. Failed to administer property rule.

=== xref:errors/gql-errors/22NA1.adoc[22NA1]

Status description:: 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.
Status description:: 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.

=== xref:errors/gql-errors/22NA2.adoc[22NA2]

Status description:: 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.
Status description:: 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.

=== xref:errors/gql-errors/22NA3.adoc[22NA3]

Status description:: error: data exception - invalid property based access control rule involving NaN. 'NaN' is not supported for property-based access control.
Status description:: error: data exception - invalid property-based access control rule involving NaN. 'NaN' is not supported for property-based access control.

=== xref:errors/gql-errors/22NA4.adoc[22NA4]

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

=== xref:errors/gql-errors/22NA5.adoc[22NA5]

Status description:: 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.
Status description:: 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.

=== xref:errors/gql-errors/22NA6.adoc[22NA6]

Status description:: 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.
Status description:: 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.

=== xref:errors/gql-errors/22NA7.adoc[22NA7]

Status description:: 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.
Status description:: 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.

=== xref:errors/gql-errors/22NA8.adoc[22NA8]

Expand All @@ -571,9 +571,17 @@ Status description:: error: data exception - parsing JSON failure. Underlying er

Status description:: error: data exception - unexpected map entry. Invalid input. Unexpected key `{ <<mapKey>> }`, expected keys are `{ <<mapKeyList>> }`.

=== xref:errors/gql-errors/22NAA.adoc[22NAA]

Status description:: 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.

=== xref:errors/gql-errors/22NAB.adoc[22NAB]

Status description:: error: data exception - mixed type list for property-based access control rule. The expression `{ <<expr>> }` is not supported. All elements in a list must be literals of the same type for property-based access control.

=== xref:errors/gql-errors/22NB0.adoc[22NB0]

Status description:: error: data exception - invalid property based access control rule involving `WHERE` and `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `WHERE` syntax in combination with `IS NULL` instead.
Status description:: error: data exception - invalid property-based access control rule involving `WHERE` and `IS NULL`. The property value access rule pattern `{ <<pred>> }` always evaluates to `NULL`. Use `WHERE` syntax in combination with `IS NULL` instead.

=== xref:errors/gql-errors/22NB1.adoc[22NB1]

Expand Down