Bug 737736

Summary: Version create: error messages should show the exact reason of failing.
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-UIAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: low Docs Contact:
Priority: low    
Version: 1.4-RCCC: aeng, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 1.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.7-SNAPSHOT (20120720-0026) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-27 08:11:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ding-Yi Chen 2011-09-13 01:07:38 UTC
Description of problem:
When fail to create version, zanata shows "This slug is not available".

It will be better if zanata show the exact reason of failing, such as:
"The format of the ID is not correct"
"The Version ID has been used in this project"
"Cannot connect to server"
"You do not have permission to create version"

Version-Release number of selected component (if applicable):
1.4-SNAPSHOT (20110906-1403)

How reproducible:
Always

Steps to Reproduce:
1. Create a project "Proj"
2. Under "Proj", create a version "1"
3. Create a version, whose ID is also "1"
  
Actual results:
Error message: "This slug is not available".

Expected results:
"The Version ID has been used in this project"

Additional info:

Comment 2 Ding-Yi Chen 2012-06-07 04:54:45 UTC
Tested with Zanata version 1.6.1-SNAPSHOT (20120606-0019)

Actual result:
This Version ID is not available

Expected results:
"The Version ID has been used in this project"

REASSIGNED.

Comment 3 Alex Eng 2012-06-18 00:15:07 UTC
Changed message to "The Version ID has been used in this project"

See https://github.com/zanata/zanata/commit/9c5dbc2d49870aa8e8b1c4ea59e0b00cc54103cc

Comment 4 Ding-Yi Chen 2012-07-20 02:12:06 UTC
VERIFIED with Zanata version 1.7-SNAPSHOT (20120720-0026)