Skip to content

[BUG] Mapping Value dialog in administrator replaces tabs with newlines #6425

@EdMowse

Description

@EdMowse

Describe the bug
Mapping Value dialog in administrator replaces tabs with newlines.

I believe this isssue may be caused by this line in ViewContentDialog constructor:
messageContent.setText(text.replaceAll("\t", "\n"));

To Reproduce
Setup steps:
You will need a message with a mapping variable that contains tabs

Steps to reproduce the behavior:

  1. Select message in Mirth Connect Administrator
  2. Click on the Mappings tab
  3. Double click Value item
  4. Mapping Value dialog displays value with tabs removed and spurious newlines added.

Expected behavior
The Mapping Value dialog should display data accurately

Actual behavior
The Mapping Value dialog replaces tabs with newlines

Environment (please complete the following information):

  • OS: Windows 11
  • Java Distribution/Version: Eclipse Adoptium 17.0.8.1
  • Connect Version: 4.5.2

Additional context
A similar issue exists in the Log Information dialog, accessed from the Server Log tab in the Dashboard. In this case tabs are retained but spurious newlines are inserted. See this line in ViewServerLogContentDialog constructor:
serverLogTextPane1.setText(text.replaceAll("\t", "\n\t"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions