typedb-studio
typedb-studio copied to clipboard
Enterprise server address field can be obstructed with line breaks
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
- TypeDB distribution: Core
- TypeDB version: 2.25.7
- Environment: macOS 13.4.1
- Studio version: 2.25.0
- Other details:
Reproducible Steps
-
Set up Open Studio, Connect to TypeDB window. Select TypeDB Enterprise, open Manage Enterprise Addresses window.
-
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.
Inserting any valid address now will not enable the Add button, as the invisible lines are obstructing validation.
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.
After removing all the redundant lines, it should work again.
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.