-
Notifications
You must be signed in to change notification settings - Fork 36
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
16
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.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ec3c79b
adding error codes for ABAC metadata function
phil198 d721ef1
Update modules/ROOT/pages/errors/gql-errors/42N0E.adoc
phil198 3f0a0c0
Update modules/ROOT/pages/errors/gql-errors/42N0F.adoc
phil198 8935ff6
pr review comment
phil198 f78e508
pr review comment
phil198 4ae76b5
reverting changes to auto-generated index.adoc
phil198 fb6efce
Update modules/ROOT/pages/errors/gql-errors/42N0F.adoc
phil198 33272c7
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
phil198 2d9cc6b
Update modules/ROOT/pages/errors/gql-errors/42N0E.adoc
phil198 85c2d98
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
renetapopova 2782606
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
phil198 1492d91
Apply suggestion from @phil198
renetapopova 5a50ac5
Update modules/ROOT/pages/errors/gql-errors/42N0D.adoc
renetapopova 2a01a2c
Update modules/ROOT/pages/errors/gql-errors/42N0F.adoc
renetapopova efc250f
regenerate the index file
renetapopova 9d52c05
remove the labels following the agreement that we will no longer use …
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,22 @@ | ||
| = 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,19 @@ | ||
| = 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,19 @@ | ||
| = 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these seem to have been lost in the rebase? (only unresolved one but it might be good to check all of them)