nextcloud / nextcloud/richdocuments
File picker gets stuck
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 453
- Forks
- 147
- Avg merge
- 14h 54m
- Merged PRs (30d)
- 83
Description
Describe the bug
Hello,
as promised @juliusknorr here is the issue from our weekly meeting:
Review > Document Compare...
Triggers UI_InsertFile postmessage; Opens frozen filepicker “Insert file from Nextcloud”
https://github.com/nextcloud/richdocuments/blame/main/src/view/FilesAppIntegration.js#L179-L181
vue.runtime.esm.js:3065 SyntaxError: "undefined" is not valid JSON
at JSON.parse (<anonymous>)
at Object.<anonymous> (FilesAppIntegration.js:178:41)
at FilePicker.vue:276:43
at i.Oe (FilePicker.vue:320:2)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Review > Document Compare flow and start in src/view/FilesAppIntegration.js around lines 178–181, where the JSON.parse error is reported. Then inspect FilePicker.vue around lines 276 and 320 to follow how the integration result reaches the picker. Done means the “Insert file from Nextcloud” picker no longer freezes in this flow and the reported undefined JSON error is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100