Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload file and mention user function not working #32118

Open
santalii opened this issue Apr 3, 2024 · 2 comments
Open

upload file and mention user function not working #32118

santalii opened this issue Apr 3, 2024 · 2 comments

Comments

@santalii
Copy link

santalii commented Apr 3, 2024

Description:

Upload file and mention user at the same time in the message.
Username spotlight will not work.

Steps to reproduce:

  1. Upload a file and write some message , mention any user at the same time.

Expected behavior:

mentioned user should be spotlight and notified.

Actual behavior:

Username spotlight will not work. Get error log message.

Server Setup Information:

  • Version of Rocket.Chat Server: 6.5.5
  • Operating System: Debian
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 14.21.3
  • MongoDB Version: 5.0.18

Additional context

Relevant logs:

Exception while invoking method 'spotlight' Error: invalid username at Proxy.findOneByUsernameIgnoringCase (server/models/raw/Users.js:388:10) at server/lib/spotlight.js:240:35 at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 => awaited here: at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at server/publications/spotlight.ts:53:21 at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 => awaited here: at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at getCurrentMethodInvocationResult (packages/ddp-server/livedata_server.js:781:32) at packages/meteor.js:365:18 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1389:31) at packages/ddp-server/livedata_server.js:791:46 at new Promise (<anonymous>) at Session.method (packages/ddp-server/livedata_server.js:739:23) at packages/ddp-server/livedata_server.js:603:43

@SySagar
Copy link
Contributor

SySagar commented Apr 8, 2024

OK just let me get this clear. So bsically when you are uploading a file, in the descripton u want to mention suppose a user but on posting it it isnt getting hightlighted am I right?

@santalii
Copy link
Author

santalii commented Apr 10, 2024

Yes, uploading a file, mention user in the description but username is not highlighted.
And error logs as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants