What happened?
ProjectAccessResource.getProjectAccessPrivilege builds a query that selects PROJECT_USER_ACCESS.PRIVILEGE, but the query starts from WORKFLOW_USER_ACCESS and filters on DATASET_USER_ACCESS.UID.
Before: project grant/revoke authorization -> project privilege lookup -> SQL references workflow/dataset access tables.
After: project grant/revoke authorization -> project privilege lookup -> SQL reads PROJECT_USER_ACCESS by (pid, uid).
This can make users with valid project access fail project write checks, and can surface database errors instead of the expected project privilege.
How to reproduce?
- On
main, create a project through ProjectResource.createProject, which inserts a PROJECT_USER_ACCESS WRITE row for the creator.
- Call
ProjectAccessResource.getProjectAccessPrivilege(pid, creatorUid).
- The lookup should return
WRITE, but the current query references the wrong access tables.
Branch
main
Commit Hash (Optional)
bf2f92c
What browsers are you seeing the problem on?
N/A - backend bug
Relevant log output
ProjectAccessResource.getProjectAccessPrivilege selects PROJECT_USER_ACCESS.PRIVILEGE from WORKFLOW_USER_ACCESS and filters DATASET_USER_ACCESS.UID.
What happened?
ProjectAccessResource.getProjectAccessPrivilegebuilds a query that selectsPROJECT_USER_ACCESS.PRIVILEGE, but the query starts fromWORKFLOW_USER_ACCESSand filters onDATASET_USER_ACCESS.UID.Before: project grant/revoke authorization -> project privilege lookup -> SQL references workflow/dataset access tables.
After: project grant/revoke authorization -> project privilege lookup -> SQL reads
PROJECT_USER_ACCESSby(pid, uid).This can make users with valid project access fail project write checks, and can surface database errors instead of the expected project privilege.
How to reproduce?
main, create a project throughProjectResource.createProject, which inserts aPROJECT_USER_ACCESSWRITE row for the creator.ProjectAccessResource.getProjectAccessPrivilege(pid, creatorUid).WRITE, but the current query references the wrong access tables.Branch
main
Commit Hash (Optional)
bf2f92c
What browsers are you seeing the problem on?
N/A - backend bug
Relevant log output