Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enterprise server address field can be obstructed with line breaks #803

Open
izmalk opened this issue Nov 28, 2023 · 0 comments
Open

Enterprise server address field can be obstructed with line breaks #803

izmalk opened this issue Nov 28, 2023 · 0 comments

Comments

@izmalk
Copy link
Contributor

izmalk commented Nov 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants