SharingService.deletePillarSharee revokes all access to any involved artifacts

Bug #1009281 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Ian Booth

Bug Description

SharingService.deletePillarSharee does this:

        # Second delete any access artifact grants.
        ap_grant_flat = getUtility(IAccessPolicyGrantFlatSource)
        to_delete = list(ap_grant_flat.findArtifactsByGrantee(
            sharee, pillar_policies))
        if len(to_delete) > 0:
            accessartifact_grant_source = getUtility(
                IAccessArtifactGrantSource)
            accessartifact_grant_source.revokeByArtifact(to_delete)

So it finds any artifacts that the person has grants on, and then removes every grant to those artifacts -- even grants for other people.

Related branches

William Grant (wgrant)
Changed in launchpad:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
tags: added: sharing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.