Project

General

Profile

Actions

Bug #11837

closed

[API][Workbench] user can see other users' trash

Added by Radhika Chippada almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Target version:
Story points:
-
Actions #1

Updated by Radhika Chippada almost 7 years ago

Due to the update made @ https://dev.arvados.org/projects/arvados/repository/revisions/695a100d4bd3bf4f5534c7e489c118c2917bf35a/diff/services/api/app/controllers/arvados/v1/collections_controller.rb, the readable_by filter is no longer working with unscoped and a user can see other users' trash.

Actions #2

Updated by Radhika Chippada almost 7 years ago

  • Status changed from New to In Progress

Branch 11837-trash-access has two failing tests, one each in controllers/trash_items_controller_test.rb and integration/trash_test.rb

Actions #3

Updated by Radhika Chippada almost 7 years ago

  • Assigned To set to Radhika Chippada
  • Target version set to 2017-06-21 sprint
Actions #4

Updated by Radhika Chippada almost 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset arvados|commit:0e3369b7179c4e483faf681e67279d762feaa33c.

Actions #5

Updated by Nico César almost 7 years ago

Radhika ... how can I test if the bug is present ?

I see that the test failed for it
https://ci.curoverse.com/job/run-tests-services-nodemanager/344//console

I don't know if it is temporary or not. I'm re-running those tests and let's see tomorrow

Actions #6

Updated by Radhika Chippada almost 7 years ago

Nico asked: Radhika ... how can I test if the bug is present ?

Nico, I am sorry. I forgot to send you the instructions (as promised) before merging the code into master.

To test: need to login as a non-admin user and visit the https://workbench.4xphq.arvadosapi.com/trash page. Now you will see trashed collections in this user's projects or any other shared collections. Before the fix, the page listed the same collections as when an admin user accesses this page.

Actions

Also available in: Atom PDF