Having two permissions with same ID in manifest.webapp
should trigger a warning or an error
#3118
Labels
manifest.webapp
should trigger a warning or an error
#3118
In
cozy-pass-wab
manifest I had two different rules using the same ID :With this configuration, the stack starts without any warning but if I query a
DELETE
onbitwarden/contacts/:id
then I get aninvalid token
error.This stack seems to use authorizations from
io.cozy.contacts
.However if I fix the manifest everything is working fine and I can
DELETE
my bitwarden's contact :My understanding is that the stack is indexing permissions by unique ID and if multiple rules have the same ID, then the last rule replace all rules with the same ID that were previously declared.
Maybe we should detect this scenario and trigger a warning or an error when the app is installed.
The text was updated successfully, but these errors were encountered: