Project

General

Profile

Actions

Task #1711

closed

Trim or warn about leading and trailing whitespaces

Added by Alena Peterová almost 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Ondrej Husník
Category:
Frontend
Target version:
Start date:
06/06/2019
Due date:
% Done:

100%

Estimated time:
16.00 h
Owner:

Description

Version 9.6 (current)

It's a common mistake when administrators copy values to the configuration, that they copy leading or trailing whitespace. E.g. when you set " org.postgresql.Driver" to the Database Table connector, it fails to find the driver. The extra whitespace is hard to notice.
Also when users manually fill in some text fields, they sometimes use whitespace by accident.

It would be really helpful to trim the whitespace in text fields, or at least warn about it. Everywhere :-)


Related issues

Related to Registration (reg) - Task #1111: Trim the whitespaces in reg formClosedMarek Klement05/28/2018

Actions
Actions #1

Updated by Alena Peterová over 4 years ago

This would really help with this known error in AD connector: https://wiki.czechidm.com/tutorial/adm/manage_ad?#ldapgroups_not_returned

Actions #2

Updated by Vít Švanda over 4 years ago

  • Assignee changed from Radek Tomiška to Ondrej Husník
  • Target version set to 10.1.0
Actions #3

Updated by Vít Švanda over 4 years ago

  • Priority changed from Normal to High
Actions #4

Updated by Ondrej Husník over 4 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Ondrej Husník over 4 years ago

More precise definition of the task:
1) user is warned about presence of leading/trailing whitespaces.
2) this warning is supposed to be a "soft" warning which only informs, but doesn't prevent form saving or other actions
3) this feature is available for TextField and TextArea components and is enabled by default.
4) the warning is displayed immediately after a form, containing some leading/trailing whitespaces, is opened

Actions #6

Updated by Vít Švanda over 4 years ago

  • Estimated time set to 16.00 h
Actions #7

Updated by Ondrej Husník over 4 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Ondrej Husník to Radek Tomiška
  • % Done changed from 0 to 90

Please be so kind and provide me a feedback for this task. It seems it works properly as was arranged.
Thank you.

https://github.com/bcvsolutions/CzechIdMng/pull/68/commits/1b8fd083f3322a37d53dc19b6172736a102b7d1c

Actions #8

Updated by Radek Tomiška over 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Radek Tomiška to Ondrej Husník
  • % Done changed from 90 to 100

I did test and code review, it works and code looks nice, thx for this awesome feature!

Merged into develop.

Note: I personally prefer method name "isTrimmable" (the same as notification message) :)

Actions #9

Updated by Ondrej Husník over 4 years ago

  • Status changed from Resolved to Needs feedback
  • Assignee changed from Ondrej Husník to Radek Tomiška

I'd like to ask you for a feedback of small changes we arranged before.
It seems it's working properly even after changes in AbstarctFormComponent.validation method.
Thanks.

https://github.com/bcvsolutions/CzechIdMng/pull/69/commits/34e5b97957fe814788c9cc31bcf7b071837d487e

Actions #10

Updated by Radek Tomiška over 4 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Radek Tomiška to Ondrej Husník

Thx, it's awesome!

Merged into develop.

Actions #11

Updated by Radek Tomiška about 4 years ago

  • Status changed from Resolved to Closed
Actions #12

Updated by Radek Tomiška over 3 years ago

  • Related to Task #1111: Trim the whitespaces in reg form added
Actions

Also available in: Atom PDF