different users storing same file to same folder results in 403

Description

User report of an error from Gates Foundation related work. This is preventing Gates data contributors from uploading data files to Synapse.

Two users were trying to store the same file (same contents/md5) to the same directory with the following line of Python code (parent ID and file changed):

The original creator stores the file successfully. Subsequent attempts by a DIFFERENT user fail with a 403, like:

If the subsequent attempts omit the 'name' parameter, it succeeds:

Environment

Any

Activity

Show:
Bruce Hoff
May 30, 2020, 1:39 AM

. would you please have a look?

Jordan Kiang
June 2, 2020, 4:37 PM

A 403 error would present in two separate spots internally when storing a File entity without an id over an existing File whose File handle was created by another user. Previous fixes for this bug fixed one of the spots but not the other. Fix for the second is here

I’ve built a new 2.1.0 RC (2.1.0.25) and it’s available to validate.

Here are my own validation steps:

Jordan Kiang
June 2, 2020, 4:40 PM

can you revalidate when you have a chance using the new RC (2.1.0.25)?

Kara Woo
June 2, 2020, 6:06 PM

Confirmed that this is now working as expected. Thanks !

Bruce Hoff
June 2, 2020, 6:26 PM

Thanks, !

Assignee

Jordan Kiang

Reporter

Kenneth Daily

Labels

Validator

Kara Woo

Development Area

Synapse Core Infrastructure

Release Version History

None

Sprint

None

Fix versions

Affects versions

Priority

Critical
Configure