nextcloud / nextcloud/richdocuments

File picker gets stuck

Open
#5,536 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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”

Image Image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.