Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jun 18, 2019

When setViewerMode(false) is called, the permissions should be fetched from the available dirInfo, otherwise creating a file is not possible.

Fixes #16238

Steps to reproduce:

  • Open a pdf file
  • Close the pdf file
  • Check for the create a new file button

@juliusknorr
Copy link
Member Author

/backport to stable16

@juliusknorr
Copy link
Member Author

/backport to stable15

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 19, 2019
@skjnldsv
Copy link
Member

Jsunit fails

--------------
3193 | undefined
3194 | TypeError: undefined is not an object (evaluating 'fileList.setFiles') in apps/files/tests/js/filelistSpec.js (line 3460)
3195 | apps/files/tests/js/filelistSpec.js:3460:12
3196 | TypeError: undefined is not an object (evaluating 'fileList.showFileBusyState') in apps/files/tests/js/filelistSpec.js (line 3464)
3197 | apps/files/tests/js/filelistSpec.js:3464:12
3198 | TypeError: undefined is not an object (evaluating 'notificationStub.restore') in apps/files/tests/js/filelistSpec.js (line 187)
3199 | apps/files/tests/js/filelistSpec.js:187:19
3200 | PhantomJS 2.1.1 (Linux 0.0.0) OCA.Files.FileList tests showFileBusyState accepts multiple input formats FAILED
3201 | TypeError: Attempted to wrap redirect which is already wrapped in build/lib/node_modules/sinon/pkg/sinon.js (line 3901)
3202 | undefined
3203

@skjnldsv skjnldsv added 2. developing Work in progress and removed 4. to release Ready to be released and/or waiting for tests to finish labels Jun 19, 2019
When setViewerMode(false) is called, the permissions should be fetched from the available dirInfo

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the bugfix/noid/showActions-permission branch from 75091b2 to 51683fa Compare July 5, 2019 10:21
@juliusknorr
Copy link
Member Author

Ok, jsunit tests should be fine now.

@juliusknorr juliusknorr added 3. to review Waiting for reviews high and removed 2. developing Work in progress labels Jul 5, 2019
@skjnldsv skjnldsv merged commit 2f86fd6 into master Jul 7, 2019
@delete-merged-branch delete-merged-branch bot deleted the bugfix/noid/showActions-permission branch July 7, 2019 18:20
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 7, 2019
@backportbot-nextcloud
Copy link

backport to stable16 in #16282

@backportbot-nextcloud
Copy link

backport to stable15 in #16283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: files high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

You don’t have permission to upload or create files here

4 participants