Project

General

Profile

Actions

Bug #18173

closed

App crashes when accessing a shared collection directly from the home project

Added by Lucas Di Pentima over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Normal
Assigned To:
Category:
Workbench2
Story points:
-

Description

When a user shares a collection that lives below it's "home project", and another user attempts to access it, is getting the following error on the JS console:

react-dom.production.min.js:198 TypeError: Cannot read properties of undefined (reading 'indexOf')
    at Function.mapToProps (collection-panel.tsx:124)
    at r (wrapMapToProps.js:43)
    at selectorFactory.js:52
    at h (selectorFactory.js:69)
    at selectorFactory.js:74
    at Object.run (connectAdvanced.js:26)
    at a.onStateChange (connectAdvanced.js:199)
    at Object.notify (Subscription.js:26)
    at e.notifyNestedSubs (Subscription.js:65)
    at a.onStateChange (connectAdvanced.js:202)

I think this has to do with the read-only check that wb2 does; probably writable_by is undefined when the parent is a user.


Subtasks 1 (0 open1 closed)

Arvados - Task #18352: ReviewResolvedStephen Smith11/12/2021Actions
Actions #1

Updated by Peter Amstutz over 2 years ago

  • Assigned To set to Daniel Kutyła
Actions #2

Updated by Peter Amstutz over 2 years ago

  • Target version changed from 2021-10-13 sprint to 2021-10-27 sprint
  • Assigned To deleted (Daniel Kutyła)
Actions #3

Updated by Peter Amstutz over 2 years ago

  • Target version changed from 2021-10-27 sprint to 2021-11-10 sprint
Actions #4

Updated by Peter Amstutz over 2 years ago

  • Target version changed from 2021-11-10 sprint to 2021-11-24 sprint
Actions #5

Updated by Ward Vandewege over 2 years ago

  • Subject changed from App crashes when accesing a shared collection directly from the home project to App crashes when accessing a shared collection directly from the home project
Actions #6

Updated by Lucas Di Pentima over 2 years ago

  • Assigned To set to Lucas Di Pentima
  • Category deleted (Workbench2)
Actions #7

Updated by Lucas Di Pentima over 2 years ago

  • Status changed from New to In Progress
Actions #8

Updated by Lucas Di Pentima over 2 years ago

  • Category set to Workbench2
Actions #9

Updated by Lucas Di Pentima over 2 years ago

I'm unable to reproduce this problem, even testing with workbench2 2.2.2, but OTOH I'm seeing that a shared with write access collection directly from users's A home project, is seeing as "read-only" when accessed with user B, so I'll be tackling that bug instead.

Actions #10

Updated by Lucas Di Pentima over 2 years ago

The "directly shared collection" bug is already registered at #17400. So I'll just mark this issue as rejected because I cannot reproduce it now.

Actions #11

Updated by Lucas Di Pentima over 2 years ago

  • Status changed from In Progress to Rejected
Actions #12

Updated by Peter Amstutz over 2 years ago

  • Release deleted (45)
Actions

Also available in: Atom PDF