Skip to content

bug: shared Tasks are not accessible and get a 404 #1303

@zenithwolf1000

Description

@zenithwolf1000

When a task is shared with a member, that member cannot "View Task" from the Workspace page for that task.

Steps to Reproduce:

  1. Be an Organization member (Member A)
  2. Log into Coder and create a Task
  3. Click ... on that task and Share
  4. Share with another Organization member (Member B)
  5. Log in as Member B and navigate to the Workspaces page
  6. Find the task workspace using the "Shared Workspaces" filter
  7. Go to the task workspace page
  8. Click on "View Task"

Expected Behavior:
Member B is able to view task since it was shared.

Actual Behavior:
Member B gets a 404 for that task. api/v2/tasks/<user>/<task-id> throws a 404 because Member B is likely missing access.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions