RocketChat / RocketChat/Rocket.Chat

WebHook Integration Script Field Can't Parse Newlines

Open
#20,564 2 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:

The textbox for the script on the Webhook integrations is not properly parsing new lines.

Steps to reproduce:
  1. Go to Administration -> Integrations
  2. Select an existing or create a new integration
  3. Attempt to create a new line in the textbox for the script section
Expected behavior:

Properly display script with new lines

Actual behavior:

New lines are present, but are treated as spaces.
image

Server Setup Information:
  • Version of Rocket.Chat Server: 3.11.0
  • Operating System: Ubuntu
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v12.18.4
  • MongoDB Version: 4.0.22 / wiredTiger
Client Setup Information
  • Desktop App or Browser Version: Browser Version
  • Operating System: Fedora

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 in Administration → Integrations and reproduce the issue in the webhook script textbox using a script with multiple lines. Trace how the textbox value is displayed and saved, then verify that line breaks remain visible as line breaks rather than spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
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.