Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14627

Deleting a tenant membership is not limited to the user or group

      Environment (Required on creation):

      Camunda Automation Platform 7.17.1

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      When deleting a tenant membership using IdentityService#deleteTenantUserMembership or IdentityService#deleteTenantGroupMembership all memberships for the tenant are deleted.

      Steps to reproduce (Required on creation):

      1. Enable Authorization
      2. Create two groups
      3. Create a tenant
      4. Create memberships for each tenant and group combination
      5. Delete one membership using IdentityService#deleteTenantGroupMembership

      Observed Behavior (Required on creation):

      All memberships related to the tenant are gone.

      Expected behavior (Required on creation):

      Only the membership related to the respective group/user and tenant is deleted.

      Root Cause (Required on prioritization):

      The WHERE condition in the SQL query doesn't restrict the deletion to the respective user or group.

      Solution Ideas (Optional):

      Use queries that restrict the deletion to a user or group.

      Hints (optional):

        This is the controller panel for Smart Panels app

            [CAM-14627] Deleting a tenant membership is not limited to the user or group

            Tassilo Weidner created issue -
            Tassilo Weidner made changes -
            Labels New: SUPPORT
            Tassilo Weidner made changes -
            Component/s New: engine [ 11656 ]
            Tassilo Weidner made changes -
            Description Original: h3. Environment (Required on creation):

            Camunda Automation Platform 7.17.1
            h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

            When deleting a tenant membership using {{IdentityService#deleteTenantUserMembership}} or {{IdentityService#deleteTenantGroupMembership}} all memberships for the tenant are deleted.

            h3. Steps to reproduce (Required on creation):

            # Enable Authorization
            # Create two groups
            # Create a tenant
            # Create memberships for each tenant and group combination
            # Delete one membership using {{IdentityService#deleteTenantGroupMembership}}

            h3. Observed Behavior (Required on creation):

            All memberships related to the tenant are gone.

            h3. Expected behavior (Required on creation):

            Only the membership related to the respective group and tenant is deleted.

            h3. Root Cause (Required on prioritization):

            The {{WHERE}} condition in the SQL query doesn't restrict the deletion to the respective user or group.

            h3. Solution Ideas (Optional):

            Use queries that restrict the deletion to a user or group.

            h3. Hints (optional):

            * The same misbehavior exists for deleting tenant <-> user memberships.
            * See PR:
            New: h3. Environment (Required on creation):

            Camunda Automation Platform 7.17.1
            h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

            When deleting a tenant membership using {{IdentityService#deleteTenantUserMembership}} or {{IdentityService#deleteTenantGroupMembership}} all memberships for the tenant are deleted.

            h3. Steps to reproduce (Required on creation):

            # Enable Authorization
            # Create two groups
            # Create a tenant
            # Create memberships for each tenant and group combination
            # Delete one membership using {{IdentityService#deleteTenantGroupMembership}}

            h3. Observed Behavior (Required on creation):

            All memberships related to the tenant are gone.

            h3. Expected behavior (Required on creation):

            Only the membership related to the respective group and tenant is deleted.

            h3. Root Cause (Required on prioritization):

            The {{WHERE}} condition in the SQL query doesn't restrict the deletion to the respective user or group.

            h3. Solution Ideas (Optional):

            Use queries that restrict the deletion to a user or group.

            h3. Hints (optional):

            * The same misbehavior exists for deleting tenant <-> user memberships.
            * See PR: https://github.com/camunda/camunda-bpm-platform/pull/1902
            Tassilo Weidner made changes -
            Description Original: h3. Environment (Required on creation):

            Camunda Automation Platform 7.17.1
            h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

            When deleting a tenant membership using {{IdentityService#deleteTenantUserMembership}} or {{IdentityService#deleteTenantGroupMembership}} all memberships for the tenant are deleted.

            h3. Steps to reproduce (Required on creation):

            # Enable Authorization
            # Create two groups
            # Create a tenant
            # Create memberships for each tenant and group combination
            # Delete one membership using {{IdentityService#deleteTenantGroupMembership}}

            h3. Observed Behavior (Required on creation):

            All memberships related to the tenant are gone.

            h3. Expected behavior (Required on creation):

            Only the membership related to the respective group and tenant is deleted.

            h3. Root Cause (Required on prioritization):

            The {{WHERE}} condition in the SQL query doesn't restrict the deletion to the respective user or group.

            h3. Solution Ideas (Optional):

            Use queries that restrict the deletion to a user or group.

            h3. Hints (optional):

            * The same misbehavior exists for deleting tenant <-> user memberships.
            * See PR: https://github.com/camunda/camunda-bpm-platform/pull/1902
            New: h3. Environment (Required on creation):

            Camunda Automation Platform 7.17.1
            h3. Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

            When deleting a tenant membership using {{IdentityService#deleteTenantUserMembership}} or {{IdentityService#deleteTenantGroupMembership}} all memberships for the tenant are deleted.

            h3. Steps to reproduce (Required on creation):

            # Enable Authorization
            # Create two groups
            # Create a tenant
            # Create memberships for each tenant and group combination
            # Delete one membership using {{IdentityService#deleteTenantGroupMembership}}

            h3. Observed Behavior (Required on creation):

            All memberships related to the tenant are gone.

            h3. Expected behavior (Required on creation):

            Only the membership related to the respective group/user and tenant is deleted.

            h3. Root Cause (Required on prioritization):

            The {{WHERE}} condition in the SQL query doesn't restrict the deletion to the respective user or group.

            h3. Solution Ideas (Optional):

            Use queries that restrict the deletion to a user or group.

            h3. Hints (optional):

            * The same misbehavior exists for deleting tenant <-> user memberships.
            * See PR: https://github.com/camunda/camunda-bpm-platform/pull/1902
            Tassilo Weidner made changes -
            Link New: This issue is related to SUPPORT-13565 [ SUPPORT-13565 ]
            Thorben Lindhauer made changes -
            Fix Version/s New: 7.15.x [ 16600 ]
            Fix Version/s New: 7.16.x [ 16897 ]
            Fix Version/s New: 7.17.x [ 17395 ]
            Fix Version/s New: 7.18.0 [ 17394 ]
            Thorben Lindhauer made changes -
            Remote Link New: This issue links to "Page (camunda confluence)" [ 17418 ]
            Thorben Lindhauer made changes -
            Assignee New: Tassilo Weidner [ tassilo.weidner ]
            DRI New: Tassilo Weidner [ tassilo.weidner ]
            Tassilo Weidner made changes -
            Assignee Original: Tassilo Weidner [ tassilo.weidner ] New: Nikola Koevski [ nikola.koevski ]
            Resolution New: Fixed [ 1 ]
            Reviewer New: Nikola Koevski [ nikola.koevski ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            Remaining Estimate New: 0 minutes [ 0 ]
            Original Estimate New: 0 minutes [ 0 ]

              tassilo.weidner Tassilo Weidner
              tassilo.weidner Tassilo Weidner
              Tassilo Weidner Tassilo Weidner
              Nikola Koevski Nikola Koevski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: