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

Duplicated fields for regex pattern on attribute's page #2312

Open
aliaksander-samuseu opened this issue Mar 8, 2023 · 0 comments
Open

Duplicated fields for regex pattern on attribute's page #2312

aliaksander-samuseu opened this issue Mar 8, 2023 · 0 comments
Assignees
Milestone

Comments

@aliaksander-samuseu
Copy link
Contributor

aliaksander-samuseu commented Mar 8, 2023

Description

When custom validation rule is defined for an attribute using "Regex Pattern" field, a duplicated field with the same value appears on the attribute's page

Steps To Reproduce

  1. Login to oxTrust
  2. Move to "Attributes" page
  3. Edit attribute "Password" by adding next regex as "Regex pattern" property: ^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#&()–[{}]:;'.,?/*~$^+=<>]).{8,32}$
  4. Move to another page, then get back to "Attributes" page and open properties of the attribute modified before

Actual behavior

For some reason, additional property "Validation RegExp" appears, containing the same value set for "Regex Pattern" before. It seems like a legacy name for this field that somehow still comes up on the page. It isn't related to any feature (but better to double-check with Gasmyr or Yuriy about that).

There is also "Enable custom validation for this attribute" checkbox there which purpose isn't exactly clear. It seems to hide/unhide "Validation RegExp" field, but if you try to put something in the later and save the page, nothing seems to persist. Seems like only "Regex pattern" actually accepts input - and when this happens, "Enable custom validation for this attribute" checkbox gets set automatically.

Overall, the functionality is very confusing and needs to be streamlined.

Selection_008

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