-
Notifications
You must be signed in to change notification settings - Fork 299
Open
0 / 20 of 2 issues completedOpen
0 / 20 of 2 issues completed
Copy link
Labels
bugSomething isn't workingSomething isn't workingcriCustomer Reported issueCustomer Reported issuedocumentationImprovements or additions to documentationImprovements or additions to documentationhacktoberfesttriageissues to be triagedissues to be triagedvalidation
Milestone
Description
What happened?
While DAB will still work fine, I was able to specify two roles with the same name for the same entity, for example:
"permissions": [
{
"role": "test1",
"actions": [
{
"action": "*",
"policy": {
"database": "@item.some_string eq 'Hello'"
}
}
]
},
{
"role": "test1",
"actions": [
{
"action": "*",
"policy": {
"database": "@item.some_number gt 10"
}
}
]
}
]I didn't get any error, but also it is not clear which role will be actually used (from looking at the generated SQL code, it looks like the last one wins).
During startup DAB should at least warn of the problem and return which role will be used or even just error out and stop execution. (I think giving a warning is better, and maybe we can error out only if some "strict" option is specified in the command line.
Version
Microsoft.DataApiBuilder 0.9.5-rc+73a02dcd3b85a73ac36a5675432a45b7a3cc4a7d
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
No response
Relevant log output
No errors returned
Code of Conduct
- I agree to follow this project's Code of Conduct
Sub-issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcriCustomer Reported issueCustomer Reported issuedocumentationImprovements or additions to documentationImprovements or additions to documentationhacktoberfesttriageissues to be triagedissues to be triagedvalidation
Type
Projects
Status
Todo