Comment 3 for bug 1036185

Revision history for this message
Curtis Hovey (sinzui) wrote : Re: Bugs don't respect bug sharing policy

This is roughly what I think is missing.

class BugInformationTypeNotPermitted:
    """The information type is forbidden by the project's BugSharingPolicy."""

Bug.transitionToInformationType()
        if information_type not in self.getAllowedBugInformationTypes():
            raise BugSharingPolicyError()

^ Maybe we want to treat this as a separate bug because creation policy is correct, we just want to revise Bug.transitionToInformationType().

I also see we need to remove the from_api arg and drop the BugCannotBePrivate guard, because we do allow proprietary. I will report this as a separate bug.