typedb-studio icon indicating copy to clipboard operation
typedb-studio copied to clipboard

Enterprise server address field can be obstructed with line breaks

Open izmalk opened this issue 1 year ago • 0 comments

Description

Pasting a text with line breaks can create invisible lines that will not let the address to be validated. So the Add button will be disabled all the time even if the correct address is inserted into the visible line.

Environment

  1. TypeDB distribution: Core
  2. TypeDB version: 2.25.7
  3. Environment: macOS 13.4.1
  4. Studio version: 2.25.0
  5. Other details:

Reproducible Steps

  1. Set up Open Studio, Connect to TypeDB window. Select TypeDB Enterprise, open Manage Enterprise Addresses window.

  2. Execute Copy some text with line breaks:

[WARNING]
=====
----

Paste it into the address field. The Add button is disabled due to an invalid field value. Then, use the Delete or Backspace keys to remove visible content (the [WARNING] line). Now you have visibility of an empty address that will not work.

Screenshot 2023-11-28 at 17 35 56

Inserting any valid address now will not enable the Add button, as the invisible lines are obstructing validation. Screenshot 2023-11-28 at 17 36 12

If you heat the Delete key one more time at the very end of the visible line, the following redundant line will reveal itself. You'll need to repeat that for every redundant line until all are visible.

Screenshot 2023-11-28 at 17 36 17

After removing all the redundant lines, it should work again.

Screenshot 2023-11-28 at 17 36 25

Expected result

The address field should not take multi-line inputs.

Additional information

Possible solutions: Ignoring line breaks, omitting everything after the first line break, or enlarging the field to show all the lines.

izmalk avatar Nov 28 '23 17:11 izmalk