Project

General

Profile

Actions

Bug #16683

closed

Trouble sharing with federated users

Added by Peter Amstutz over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
API
Target version:
Story points:
-
Release relationship:
Auto

Description

Workbench 1

Share with group

Steps to reproduce:

  1. Create a LoginCluster federation with 2 instances
  2. Go to the 2nd instance and log in with a non-admin federated user
  3. Create a project
  4. Go to the sharing tab
  5. Share with "all users"

On reloading the sharing tab, it'll get fiddlesticks:

request failed: x1ly6-j7d0g-fffffffffffffff%22%5D%5D%5D&limit=9223372036854775807&offset=0">https://172.17.0.3:8000/arvados/v1/users?cluster_id=&count=&filters=%5B%5B%22uuid%22%2C%22in%22%2C%5B%22x1ly6-j7d0g-fffffffffffffff%22%5D%5D%5D&limit=9223372036854775807&offset=0: 400 Bad Request: cannot execute federated list query unless count=="none" [API: 400]

Workbench 2

Sharing dialog

Fails to open with the similar error:

request failed: x1ly6-j7d0g-fffffffffffffff%22%5D%5D%5D&offset=0">https://172.17.0.3:8000/arvados/v1/users?cluster_id=&count=&filters=%5B%5B%22uuid%22%2C%22in%22%2C%5B%22x1ly6-j7d0g-fffffffffffffff%22%5D%5D%5D&offset=0: 400 Bad Request: cannot execute federated list query unless count=="none"

Sharing with user

Also observed: attempting to share with a user gets a "unknown uuid" error. This is probably due to the fact that although the user can see other users from the login cluster, the permissions are checked on the federated cluster, which doesn't know that. The validity check on the link tail for permission links should probably just suppress raising an error when the cluster id isn't the local one.

(alternately, we could skip the check entirely, this would partially address the previously reported problem of curators being unable to share with groups that they don't have access to, although they would need to add the permission link by uuid, possibly via the command line, which might not be acceptable.)


Subtasks 2 (0 open2 closed)

Task #16691: Review 16683-fed-sharing (arvados)ResolvedPeter Amstutz08/13/2020Actions
Task #16700: Review 16683-fed-sharing (workbench2)ResolvedPeter Amstutz08/13/2020Actions

Related issues

Related to Arvados - Bug #16726: other cluster's special users (root and anonymous) can appear in user listResolvedPeter Amstutz08/31/2020Actions
Is duplicate of Arvados - Bug #16681: Sharing dialog fails with "count must be none" when using LoginCluster featureDuplicateActions
Blocks Arvados - Idea #16688: Release Arvados 2.0.4ResolvedPeter Amstutz08/14/202008/17/2020Actions
Actions

Also available in: Atom PDF