icgc-argo / icgc-argo/program-service

InviteUser - You should not be able to invite a user to join a program with a "Banned" role

Open
#95 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
3
Forks
0
Avg merge
14h 34m
Merged PRs (30d)
2

Description

When a request is made to invite a user to a group, the role is provided as an enum in the request message.

enum UserRole {
COLLABORATOR = 0;
ADMIN = 1;
CURATOR = 2;
SUBMITTER = 3;
BANNED = 4;
}

You should not be able to send an invitation request for a user to have a "Banned" role, and have it complete successfully.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the invite request handling that consumes the UserRole enum, focusing on how invitation requests are validated. Done means an invitation using the BANNED role is rejected rather than completing successfully; add or update coverage for that behavior if the existing test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authorization, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.