saleh
May 27, 2021, 2:31pm
1
Hello,
I have the latest RocketChat and Nextcloud version but after connecting a Nextcloud-Server to Rocket.chat and clicking the (+) button the file list of the Webdav folder appears.
Then i select a file. In the next dialog i enter a description and press “send”.
The file does not appear in the chat - it only displays a error on top “undefinded”.
How to fix this issue.
Note: It’s the same like the below link:
opened 05:26PM - 28 Feb 21 UTC
closed 02:40AM - 06 May 21 UTC
### Description:
Files from Webdav/Nextcloud can't be shared in the chat.
… ### Steps to reproduce:
After connecting a Nextcloud-Server to Rocket.chat and clicking the (+) button the file list of the Webdav folder appears.
Then i select a file. In the next dialog i enter a description and press "send".
The file does not appear in the chat - it only displays a error on top "undefinded".



### Expected behavior:
The file should appear in the chat.
### Actual behavior:
A error message on the top.

### Server Setup Information:
- Version of Rocket.Chat Server: 3.11.1 / 3.12.0-rc.0
- Operating System: Debian Buster
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: v12.18.4
- MongoDB Version: 4.0.23 / mmapv1 (oplog Aktiviert)
### Client Setup Information
- Desktop App or Browser Version: Chrome Version 88.0.4324.190
- Operating System: Win10
### Relevant logs:
In the logs i can see that the file is successfully send from the webdav server to rocketchat.

Then there is a message with following error:
Exception while invoking method ufsCreate TypeError: Cannot read property 'rid' of undefined at Filter.validateFileUpload [as onCheck] (app/file-upload/server/lib/FileUpload.js:62:24) at Filter.check (packages/jalik:ufs/ufs-filter.js:107:51) at MethodInvocation.ufsCreate (packages/jalik:ufs/ufs-methods.js:155:12) at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1771:12) at packages/ddp-server/livedata_server.js:1689:15 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at packages/ddp-server/livedata_server.js:1687:36 at new Promise (<anonymous>) at Server.applyAsync (packages/ddp-server/livedata_server.js:1686:12) at Server.apply (packages/ddp-server/livedata_server.js:1625:26) at Server.call (packages/ddp-server/livedata_server.js:1607:17) at Object.post (app/api/server/v1/misc.js:262:26) at app/api/server/api.js:394:82 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at Object._internalRouteActionHandler [as action] (app/api/server/api.js:394:39) at Route.share.Route.Route._callEndpoint (packages/nimble_restivus/lib/route.coffee:150:32) at packages/nimble_restivus/lib/route.coffee:59:33 at packages/simple_json-routes.js:98:9 => awaited here: at Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12) at Server.apply (packages/ddp-server/livedata_server.js:1638:22) at Server.call (packages/ddp-server/livedata_server.js:1607:17) at Object.post (app/api/server/v1/misc.js:262:26) at app/api/server/api.js:394:82 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at Object._internalRouteActionHandler [as action] (app/api/server/api.js:394:39) at Route.share.Route.Route._callEndpoint (packages/nimble_restivus/lib/route.coffee:150:32) at packages/nimble_restivus/lib/route.coffee:59:33 at packages/simple_json-routes.js:98:9

Thank you & Best Regards,
Saleh
Hi.
The fix has been merged. It will either be already in 3.14.x or in 3.15 to be released next week
saleh
June 10, 2021, 10:46am
3
Hi,
I have update to the latest rocket chat version. Now upload from nextcloud to rocket chat and download from rocket chat to nextcloud are working without any problem only the problem when we download a file from rocket chat to nextcloud larger than 1 MB not working but file smaller than 1 MB is working without an problem.
Thanks.