RocketChat / RocketChat/Rocket.Chat
Error: error-invalid-post-as-user updating an integration
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
- Logged in as
administratorI have created an Incoming WebHook Integration with Post as set toredmine.bot(this user exists). - After that I have changed username
redmine.bottoredmine. - After that I have changed Post as to
redmineon the Incoming WebHook Integration. Click onSAVE CHANGESshows 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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