Bug 990349
Summary: | Group name length is not validated correctly | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | wangjing <jingwang> |
Component: | general | Assignee: | Amit Saha <asaha> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 0.13 | CC: | aigao, asaha, dcallagh, ebaak, llim, qwan, rmancy |
Target Milestone: | 0.15 | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-03 02:27:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
wangjing
2013-07-31 03:17:42 UTC
Beaker needs to validate the group name length instead of letting MySQL silently truncate it. *** Bug 990351 has been marked as a duplicate of this bug. *** On Gerrit: http://gerrit.beaker-project.org/#/c/2140/1 As it turns out, we already had Group name validation in place for the Web UI, but it was wrongly setup to allow 255 characters, whereas the database allowed only 16. The patch increases the group length name in the tg_group table to 255 characters. Validation did not exist for the XML-RPC interface and has been added. verify on beaker-devel(20130806)-->pass steps: 1. via CLI: bkr group-modify --group-name=<morethan255charactersname> groupname bkr group-create <morethan255characters-group name> bkr group-modify --group-name=<255characterslongname> groupname bkr group-create <255characterslong-group name> 2. via webUI: 1)add a new group with a group name more than 255 characters. 2)modify a group name to more than 255 characters. 3)add a new group with a group name which is 255 characters long. 4)modify a group name to a name which is 255 characters long. results: return proper warning text and limit to 255 characters. Beaker 0.15 has been released. *** Bug 962646 has been marked as a duplicate of this bug. *** |