RocketChat / Rocket.Chat.Electron

Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
https://rocket.chat/
MIT License
1.6k stars 709 forks source link

[4.0.2] PDF get not shown and download does not work #2939

Closed CvH closed 2 months ago

CvH commented 2 months ago

Search before asking

Operating System

Operating System Version

Windows 11

It happens on the web browser too?

No, it just happens on the Desktop app

Rocket.Chat Desktop App Version

4.0.2

Rocket.Chat Server Version

6.9.3

Describe the bug

Clicking at the PDF redirects me into some wired view and offers the download without any preview. image

To download the same pdf again (for example if you clicked cancel at the save dialog) you need to exit the RC client or click at a different PDF before it offers the download again. It just redirects to the pdf view linked above with no download.

How to Reproduce

upload two pdfs, clicking at the first multiple times offers the download just one time clicking at the second pdf the download works clicking at the first pdf again the download works again one time

Describe your Expected behavior

Anything else

No response

Are you willing to submit a code contribution?

CvH commented 2 months ago

Error at the console leads me to https://github.com/electron/electron/issues/43314 ?

node:electron/js2c/renderer_init:2 Unexpected error while loading URL Error: Error invoking remote method 'GUEST_VIEW_MANAGER_CALL': Error: ERR_FAILED (-2) loading 'https://rocket.myname.de/file-upload/66d6b762c9fd8a79368596eb/test.pdf'
    at IpcRendererInternal.invoke (node:electron/js2c/renderer_init:2:11342)
(anonymous) @ node:electron/js2c/renderer_init:2
Promise.catch (async)
parse @ node:electron/js2c/renderer_init:2
SrcAttribute.handleMutation @ node:electron/js2c/renderer_init:2
handleWebviewAttributeMutation @ node:electron/js2c/renderer_init:2
attributeChangedCallback @ node:electron/js2c/renderer_init:2
setValueForProperty @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:855
updateDOMProperties @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:9738
updateProperties @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:10143
commitUpdate @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:11047
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24389
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24346
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24346
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24346
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24346
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24456
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24576
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24346
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24346
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24576
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24576
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24332
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24293
rMyNamersivelyTraverseMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24273
commitMutationEffectsOnFiber @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24432
commitMutationEffects @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:24243
commitRootImpl @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:26810
commitRoot @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:26682
finishConcurrentRender @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:25981
performConcurrentWorkOnRoot @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:25809
workLoop @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\scheduler\cjs\scheduler.development.js:266
flushWork @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\scheduler\cjs\scheduler.development.js:239
performWorkUntilDeadline @ C:\MyName\Rocket.Chat\resources\app.asar\node_modules\scheduler\cjs\scheduler.development.js:533
processImmediate @ node:internal/timers:478
jeanfbrito commented 2 months ago

Please update to the latest server version.