Bug 973509

Summary: User not aware they can use other characters in Group ID
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: Component-UIAssignee: Damian Jansen <djansen>
Status: CLOSED CURRENTRELEASE QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: developmentCC: dchen, zanata-bugs
Target Milestone: ---   
Target Release: 3.5   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 3.5.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-1873) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 23:28:02 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:

Description Damian Jansen 2013-06-12 05:20:51 UTC
Description of problem:
Help / error dialog does not indicate the use of period (".")

Version-Release number of selected component (if applicable):
3.0

How reproducible:
Always

Steps to Reproduce:
1. Go to http://(zanata-host)/zanata/version-group/list
2. Click Create Group
3. Enter a group ID of My\Group
4. Error shows "must start and end with letter or number, and contain only letters, numbers, underscores and hyphens."
5. Enter a group ID of My.Group
6. Add a group name, press Create

Actual results:
Group is created.

Expected results:
According to help / error bubble, . is not an acceptable character, so either the help is inaccurate or the check is flawed.

Additional info:

Comment 1 Damian Jansen 2013-06-17 01:32:50 UTC
User can also use { and }
The pattern in SlugValidator.java reads
"[a-zA-Z0-9]+([a-zA-Z0-9_\\-{.}]*[a-zA-Z0-9]+)?"

I'm expecting this is correct, i.e. some thought has gone into adding the {.}
These characters do not appear to have any adverse effects on creating a group.

Comment 2 Damian Jansen 2014-07-28 03:44:10 UTC
https://github.com/zanata/zanata-server/pull/541

Comment 3 Ding-Yi Chen 2014-08-11 06:59:07 UTC
VERIFIED with Zanata 3.5.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-1873)