Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open access files should be accessible for everyone #1961

Closed
2 tasks done
aalex opened this issue Jul 23, 2019 · 2 comments
Closed
2 tasks done

Open access files should be accessible for everyone #1961

aalex opened this issue Jul 23, 2019 · 2 comments
Assignees
Labels
Bug [Type] Something isn't working

Comments

@aalex
Copy link
Contributor

aalex commented Jul 23, 2019

Description

This bug touches two issues:

  • The DCF file acl are not accounted for
  • The open access files (acl = *) are not accounted for

Steps to reproduce

  • Navigate to https://portal.kidsfirstdrc.org/file/GF_TFW9T293 - its ACL is set to * in the data service.
  • The "Download" button should be enabled for every user, for that file.
  • Instead, it is not. Also, note the "File is locked." message. It should not be there.

Note

Can only be reproduce on non-Gen3 files. Gen3 files should be properly available.

Can be reproduced on both Gen3 and DCF files when the file is open access.

Screenshot

image.png

Technical details

  • This file should be have open Access ACL - meaning, they do not require the user to be granted permission to be able to download them.
  • It seems like in services/fileAccessControl.js, the code looks up the contents of the acl field in the file-centric index.
  • see src/components/EntityPage/File/index.js:413. Only GEN3 access are validated.
@aalex aalex added the Bug [Type] Something isn't working label Jul 23, 2019
@aalex aalex added this to the KF - Sprint 30 milestone Jul 23, 2019
@aalex
Copy link
Contributor Author

aalex commented Jul 25, 2019

It might a config problem with the lambdas or the key manager.

@jberube jberube self-assigned this Aug 5, 2019
@jberube
Copy link
Contributor

jberube commented Aug 9, 2019

The fix that was done was incomplete, as it only addressed a part of the issue, which was that DCF acl where not accounted for.

The second part is that "open access" files (acl = *) are not taken into account inside the FileEntity page.

To validate: the validation of the acl in the file repository page could also have the same bug.

@jberube jberube changed the title World-readable files should be accessible for everyone Open access files should be accessible for everyone Aug 19, 2019
@jecos jecos closed this as completed Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug [Type] Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants