Actions
Bug #21764
closedCrash when trying to copy file from collection
Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Story points:
-
Release:
Release relationship:
Auto
Description
Steps to reproduce in jutro
(doesn't happen in tordo
and pirca
):
- Get into a collection with at least 1 file
- Right-click on the file and select "Copy item into existing collection" to display the dialog
- Expand the "Shared with me" subtree to make the app crash. (if copying a file from a "shared with me" collection, this subtree will get automatically expanded, and the app will also crash)
This error is displayed when using a dev version of workbench:
× Error: Objects are not valid as a React child (found: object with keys {createdAt, currentVersionUuid, deleteAt, description, etag, fileCount, fileSizeTotal, href, isTrashed, kind, modifiedAt, modifiedByClientUuid, modifiedByUserUuid, name, ownerUuid, portableDataHash, preserveVersion, properties, replicationConfirmed, replicationConfirmedAt, replicationDesired, storageClassesConfirmed, storageClassesConfirmedAt, storageClassesDesired, trashAt, uuid, version}). If you meant to render a collection of children, use an array instead. in span (at tree.tsx:280) in span (at tree.tsx:278) in div (at tree.tsx:277) in div (at tree.tsx:255) in div (at tree.tsx:229) in FlatTree (at tree.tsx:387) in div (at tree.tsx:350) in ul (created by List) in List (created by WithStyles(List)) in WithStyles(List) (at tree.tsx:345) in Unknown (created by WithStyles(Component)) in WithStyles(Component) (created by Connect(WithStyles(Component))) in Connect(WithStyles(Component)) (created by Connect(Connect(WithStyles(Component)))) in Connect(Connect(WithStyles(Component))) (created by Connect(Connect(Connect(WithStyles(Component))))) in Connect(Connect(Connect(WithStyles(Component)))) (at projects-tree-picker.tsx:174) in div (at projects-tree-picker.tsx:173) in div (at projects-tree-picker.tsx:163) in div (at projects-tree-picker.tsx:156) in FileInputComponent (created by WithStyles(FileInputComponent)) in WithStyles(FileInputComponent) (created by Connect(WithStyles(FileInputComponent))) in Connect(WithStyles(FileInputComponent)) (at tree-picker-field.tsx:73) in div (at tree-picker-field.tsx:72) in div (at tree-picker-field.tsx:71) in DirectoryTreePickerFieldComponent (created by Connect(DirectoryTreePickerFieldComponent)) in Connect(DirectoryTreePickerFieldComponent) (created by ConnectedField) in ConnectedField (created by Connect(ConnectedField)) in Connect(ConnectedField) (created by Field) in Field (at collection-form-fields.tsx:65) in DirectoryPickerField (at dialog-collection-partial-copy-to-existing-collection.tsx:29) in Unknown (at form-dialog.tsx:71) in div (created by DialogContent) in DialogContent (created by WithStyles(DialogContent)) in WithStyles(DialogContent) (at form-dialog.tsx:70) in form (at form-dialog.tsx:66) in div (created by Paper) in Paper (created by WithStyles(Paper)) in WithStyles(Paper) (created by Dialog) in div (created by Dialog) in Transition (created by Fade) in Fade (created by WithTheme(Fade)) in WithTheme(Fade) (created by Dialog) in RootRef (created by Modal) in div (created by Modal) in Portal (created by Modal) in Modal (created by WithStyles(Modal)) in WithStyles(Modal) (created by Dialog) in Dialog (created by WithStyles(Dialog)) in WithStyles(Dialog) (at form-dialog.tsx:59) in Unknown (created by WithStyles(Component)) in WithStyles(Component) (at dialog-collection-partial-copy-to-existing-collection.tsx:17) in DialogCollectionPartialCopyToExistingCollection (at picker-id.tsx:16) in Unknown (created by Form(Component)) in Form(Component) (created by Connect(Form(Component))) in Connect(Form(Component)) (created by ReduxForm) in ReduxForm (created by Connect(ReduxForm)) in Connect(ReduxForm) (at workbench.tsx:425) in div (created by Grid) in Grid (created by WithStyles(Grid)) in WithStyles(Grid) (at workbench.tsx:331) in Unknown (created by WithStyles(Component)) in WithStyles(Component) (at main-panel-root.tsx:67) in div (created by Grid) in Grid (created by WithStyles(Grid)) in WithStyles(Grid) (at main-panel-root.tsx:64) in Unknown (created by WithStyles(Component)) in WithStyles(Component) (created by Connect(WithStyles(Component))) in Connect(WithStyles(Component)) (at src/index.tsx:199) in MainPanelComponent (created by Route) in Route (at src/index.tsx:219) in Switch (at src/index.tsx:206) in Router (created by ConnectedRouter) in ConnectedRouter (at src/index.tsx:205) in Provider (at src/index.tsx:204) in Unknown (at src/index.tsx:203) in MuiThemeProviderOld (at src/index.tsx:202) in App (at src/index.tsx:230) ▶ 75 stack frames were collapsed. default src/store/data-explorer/data-explorer-middleware.ts:110 107 | } 108 | }); 109 | }), > 110 | default: () => next(action), | ^ 111 | }); 112 | }; 113 | }; View compiled evalMatch src/index.ts:125 match src/index.ts:129 (anonymous function) src/store/data-explorer/data-explorer-middleware.ts:32 29 | handler(data); 30 | } 31 | }; > 32 | dataExplorerActions.match(action, { | ^ 33 | SET_PAGE: handleAction(() => { 34 | api.dispatch(actions.REQUEST_ITEMS(false)); 35 | }), View compiled (anonymous function) src/store/tree-picker/tree-picker-middleware.ts:50 47 | } 48 | 49 | // pass it on to the reducer > 50 | const r = next(action); | ^ 51 | 52 | treePickerSearchActions.match(action, { 53 | SET_TREE_PICKER_PROJECT_SEARCH: ({ pickerId }) => View compiled default src/store/data-explorer/data-explorer-middleware.ts:110 107 | } 108 | }); 109 | }), > 110 | default: () => next(action), | ^ 111 | }); 112 | }; 113 | }; View compiled evalMatch src/index.ts:125 match src/index.ts:129 (anonymous function) src/store/data-explorer/data-explorer-middleware.ts:32 29 | handler(data); 30 | } 31 | }; > 32 | dataExplorerActions.match(action, { | ^ 33 | SET_PAGE: handleAction(() => { 34 | api.dispatch(actions.REQUEST_ITEMS(false)); 35 | }), View compiled default src/store/data-explorer/data-explorer-middleware.ts:110 107 | } 108 | }); 109 | }), > 110 | default: () => next(action), | ^ 111 | }); 112 | }; 113 | }; View compiled This screen is visible only in development. It will not appear if the app crashes in production. Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.
Actions