-
Notifications
You must be signed in to change notification settings - Fork 35
adding error codes for ABAC metadata function #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
phil198
wants to merge
15
commits into
neo4j:dev
Choose a base branch
from
phil198:add-gql-codes-for-abac-metadata-function
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+81
−0
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b84ca46
adding error codes for ABAC metadata function
phil198 ec9aa26
Update modules/ROOT/pages/errors/gql-errors/42N0E.adoc
phil198 1e42e44
Update modules/ROOT/pages/errors/gql-errors/42N0F.adoc
phil198 cdf66dd
pr review comment
phil198 0d04352
pr review comment
phil198 a309515
reverting changes to auto-generated index.adoc
phil198 b50c299
Update modules/ROOT/pages/errors/gql-errors/42N0F.adoc
phil198 cab1847
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
phil198 cb99a23
Update modules/ROOT/pages/errors/gql-errors/42N0E.adoc
phil198 9fa34b4
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
renetapopova 987fe4f
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
phil198 e18285f
Apply suggestion from @phil198
renetapopova 7026077
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
renetapopova da27743
Update modules/ROOT/pages/errors/gql-errors/42N0F.adoc
renetapopova 132a7bd
regenerate the index file
renetapopova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 `{ <<fun>> }` cannot be called from the current context. It can only be used `{ <<context>> }`. | ||
|
|
||
| == 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. | ||
|
|
||
renetapopova marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ifndef::backend-pdf[] | ||
| [discrete.glossary] | ||
| == Glossary | ||
|
|
||
| include::partial$glossary.adoc[] | ||
| endif::[] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| :page-role: new-2025.10 | ||
| = 42N0E | ||
phil198 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| == Status description | ||
|
|
||
| error: syntax error or access rule violation - cannot call function without metadata. The function `{ <<fun>> }` 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::[] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| :page-role: new-2025.10 | ||
| = 42N0F | ||
phil198 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| == Status description | ||
|
|
||
| error: syntax error or access rule violation - cannot call function without metadata for realm. The function `{ <<fun>> }` cannot be called without metadata for realm: `{ <<auth>> }`. | ||
|
|
||
| == 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::[] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.