Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Roles creation/update responses incorrectly set null permissions when not provided. #7247

@ocket8888

Description

@ocket8888

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

When the client creates or updates a Role, they may omit the permissions property, or explicitly set it to null. This is implicitly the same as an empty collection, as further GET requests will reveal. However, in those cases, the immediate response to the PUT or POST request in question will show permissions as null.

Expected behavior:

Representations should be consistent, an empty collection is properly represented as an empty collection, not null.

Steps to reproduce:

  1. Create or Update a Role, omitting the permissions property thereof in the request payload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsbugsomething isn't working as intendedlow difficultythe estimated level of effort to resolve this issue is lowlow impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions