[ZBX-7196] some fields allow to type more than 64 symbols instead of limit them Created: 2013 Oct 24  Updated: 2017 Oct 16  Resolved: 2017 Oct 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.1.9
Fix Version/s: None

Type: Problem report Priority: Minor
Reporter: jabalv Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-12828 Wrong fields length validation on fro... Closed

 Description   

If there is hardcoded limit condition - zbx_strlen($user['alias']) > 64) , why also form is not limited itself to maxlength="64"? Or actually by limiting form can avoid
writing conditions for str length.?

Forms affected:
User group - name
Users - Alias
Users - Name ( 100 symbol limit)
Users - Surname

Password field 255 symbols?



 Comments   
Comment by Oleksii Zagorskyi [ 2015 Sep 17 ]

Still actual for 2.4.5
Error message when try to add (or update) a user group:

Value "'213452345234 5234523452345234523452345 234523452345234523452 34523'" is too long for field "name" - 66 characters. Allowed length is 64 characters. [usergrps.php:193 → CFrontendApiWrapper->create() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CUserGroup->create() → DB::insert() → DB::checkValueTypes() → DB::exception() in /zab/www-dev/2.4/include/classes/db/DB.php:334]
Comment by Rostislav Palivoda [ 2017 Oct 16 ]

Please switch to ZBX-12828 to follow status.

Generated at Sat Mar 15 07:17:01 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.