You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Ben Schiefer (Jira)" <ji...@apache.org> on 2020/03/27 14:48:00 UTC

[jira] [Created] (UNOMI-299) Revoking consent does not work if there is a scope supplied

Ben Schiefer created UNOMI-299:
----------------------------------

             Summary: Revoking consent does not work if there is a scope supplied
                 Key: UNOMI-299
                 URL: https://issues.apache.org/jira/browse/UNOMI-299
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 1.4.0
            Reporter: Ben Schiefer


When GRANTING a consent, the consent is added to the consent object with a key of 
```

consent.getScope() + "/" + consent.getTypeIdentifier()

```

When REVOKING a consent, only the typeIdentifier is used to find the key (see [https://github.com/apache/unomi/blob/ea1b788ec82b2ad8e404236e21d974a11e68429a/api/src/main/java/org/apache/unomi/api/Profile.java#L226])

 

Expected Result:

The profile.setConsent method should be consistent in using the same key for all consentStatuses.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)