GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Policy equality fails for binding list order · Issue #173 · googleapis/java-core

This repository was archived by the owner on Dec 3, 2023. It is now read-only.
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Policy equality fails for binding list order #173

Copy link
Copy link
Closed
#174
Closed
Policy equality fails for binding list order#173
#174
Copy link
Assignees
frankyn
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@chingor13
chingor13
opened on Mar 10, 2020
Issue body actions

The binding list order should not matter for the equivalence of Policy objects:

  @Test
  public void testPolicyOrderShouldNotMatter() {
    Role role1 = Role.of("role1");
    Identity identity1 = Identity.user("[email protected]");
    Role role2 = Role.of("role2");
    Identity identity2 = Identity.user("[email protected]");
    Policy policy1 = Policy.newBuilder()
            .addIdentity(role1, identity1)
            .addIdentity(role2, identity2)
            .build();
    Policy policy2 = Policy.newBuilder()
            .addIdentity(role2, identity2)
            .addIdentity(role1, identity1)
            .build();
    assertEquals(policy1, policy2);
  }

Activity

  1. chingor13
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Mar 10, 2020
  2. chingor13 commented on Mar 10, 2020

    @chingor13
    chingor13
    on Mar 10, 2020
    ContributorAuthor
    More actions

    In #110, we switched the data model from a Map to a List and List equality is order dependenct

  3. frankyn
    closed this as completedin #174on Mar 10, 2020
  4. JustinBeckwith
    assigned
    frankyn
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @frankyn
    frankyn

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.