RocketChat / RocketChat/Rocket.Chat

Error: error-invalid-post-as-user updating an integration

Open
#10,952 11 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:
  1. Logged in as administrator I have created an Incoming WebHook Integration with Post as set to redmine.bot (this user exists).
  2. After that I have changed username redmine.bot to redmine.
  3. After that I have changed Post as to redmine on the Incoming WebHook Integration. Click on SAVE CHANGES shows me the error on top right: error-invalid-post-as-user
Server Setup Information:
  • Version of Rocket.Chat Server: rocketchat/rocket.chat:0.63.0 (docker)
  • Operating System: Ubuntu Server
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • mongoDB Version: mongo:3.2 (docker)
Expected behavior:

Save the changes of the Incoming WebHook Integration.

Actual behavior:

Don't saves the changes and shows error: error-invalid-post-as-user

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

Start with the Incoming WebHook Integration settings flow and the validation for its Post as user after a username change. Reproduce the described rename and save sequence, then trace where error-invalid-post-as-user is produced. Done means the integration saves successfully with the renamed existing user and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.