diff --git a/modules/ROOT/content-nav.adoc b/modules/ROOT/content-nav.adoc index 62efe6d8..f3e2c8ee 100644 --- a/modules/ROOT/content-nav.adoc +++ b/modules/ROOT/content-nav.adoc @@ -278,6 +278,9 @@ **** xref:errors/gql-errors/42N09.adoc[] **** xref:errors/gql-errors/42N0A.adoc[] **** xref:errors/gql-errors/42N0B.adoc[] +**** xref:errors/gql-errors/42N0D.adoc[] +**** xref:errors/gql-errors/42N0E.adoc[] +**** xref:errors/gql-errors/42N0F.adoc[] **** xref:errors/gql-errors/42N10.adoc[] **** xref:errors/gql-errors/42N11.adoc[] **** xref:errors/gql-errors/42N12.adoc[] diff --git a/modules/ROOT/pages/errors/gql-errors/42N0D.adoc b/modules/ROOT/pages/errors/gql-errors/42N0D.adoc new file mode 100644 index 00000000..3aaf4e07 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42N0D.adoc @@ -0,0 +1,23 @@ +:page-role: new-2025.10 += 42N0D + + +== Status description + +error: syntax error or access rule violation - cannot call function from this context. The function `{ <> }` cannot be called from the current context. It can only be used `{ <> }`. + +== Explanation +This error is thrown when a function is called from a context that is not allowed for that function. + +== Example scenario + +Try to call an internal security function like `abac.oidc.user_attribute()` from a regular Cypher query. +You will get this error because it is not supported in user Cypher queries and can only be called from within `AUTH RULE` creation or alteration commands. + + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file diff --git a/modules/ROOT/pages/errors/gql-errors/42N0E.adoc b/modules/ROOT/pages/errors/gql-errors/42N0E.adoc new file mode 100644 index 00000000..9d2d5b51 --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42N0E.adoc @@ -0,0 +1,20 @@ +:page-role: new-2025.10 += 42N0E + + +== Status description + +error: syntax error or access rule violation - cannot call function without metadata. The function `{ <> }` cannot be called without metadata. + +== Explanation +This error occurs when the metadata required by the function is missing from the context supplied. This is an internal error which would only ever appear in the logs. + +== Example scenario +A function is called without the required metadata. + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file diff --git a/modules/ROOT/pages/errors/gql-errors/42N0F.adoc b/modules/ROOT/pages/errors/gql-errors/42N0F.adoc new file mode 100644 index 00000000..b888c73e --- /dev/null +++ b/modules/ROOT/pages/errors/gql-errors/42N0F.adoc @@ -0,0 +1,20 @@ +:page-role: new-2025.10 += 42N0F + + +== Status description + +error: syntax error or access rule violation - cannot call function without metadata for realm. The function `{ <> }` cannot be called without metadata for realm: `{ <> }`. + +== Explanation +This error occurs when the metadata for a specific security realm is missing from the context supplied. This is an internal error which would only ever appear in the logs. + +== Example scenario +A function is called with a metadata dictionary, but there is no entry for the required realm. + +ifndef::backend-pdf[] +[discrete.glossary] +== Glossary + +include::partial$glossary.adoc[] +endif::[] \ No newline at end of file diff --git a/modules/ROOT/pages/errors/gql-errors/index.adoc b/modules/ROOT/pages/errors/gql-errors/index.adoc index d9ebd090..07917e37 100644 --- a/modules/ROOT/pages/errors/gql-errors/index.adoc +++ b/modules/ROOT/pages/errors/gql-errors/index.adoc @@ -1142,6 +1142,21 @@ Status description:: error: syntax error or access rule violation - invalid shar Status description:: error: syntax error or access rule violation - cannot replace sharded database. The database identified by `{ <>1 }` is sharded. Drop the database `{ <>2 }` before recreating. +[role=label--new-2025.10] +=== xref:errors/gql-errors/42N0D.adoc[42N0D] + +Status description:: error: syntax error or access rule violation - cannot call function from this context. The function `{ <> }` cannot be called from the current context. It can only be used `{ <> }`. + +[role=label--new-2025.10] +=== xref:errors/gql-errors/42N0E.adoc[42N0E] + +Status description:: error: syntax error or access rule violation - cannot call function without metadata. The function `{ <> }` cannot be called without metadata. + +[role=label--new-2025.10] +=== xref:errors/gql-errors/42N0F.adoc[42N0F] + +Status description:: error: syntax error or access rule violation - cannot call function without metadata for realm. The function `{ <> }` cannot be called without metadata for realm: `{ <> }`. + === xref:errors/gql-errors/42N10.adoc[42N10] Status description:: error: syntax error or access rule violation - no such role. A role with the name `{ <> }` was not found. Verify that the spelling is correct.