Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1192252

Summary: Error message of Non-maintainer put-project and put-version should be "User xxx is not a maintainer" in stead of "Incorrect username/password"
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-MavenAssignee: Patrick Huang <pahuang>
Status: CLOSED UPSTREAM QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: client-3.4CC: zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 02:12:43 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 Ding-Yi Chen 2015-02-13 00:46:03 UTC
Description of problem:
When a non-maintainer put-project or put-version on an existing project,
the expected behavior should show error message  "User xxx is not a maintainer" error status 403.

However, Zanata showed error message "Invalid username/password" (Error status 401), which is misleading.



Version-Release number of selected component (if applicable):
Zanata 3.6.0-SNAPSHOT (git-server-3.5.1-152-g3b2474e) |

How reproducible:
Always

Steps to Reproduce:
1. Find a existing project
2. Run following with a user who is neither maintainer nor admin
mvn -B -e org.zanata:zanata-maven-plugin:put-version -Dzanata.versionProject=$PROJECT_SLUG -Dzanata.versionSlug=$VERSION_SLUG

Actual results:
[ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:3.4.1:put-version (default-cli) on project standalone-pom: Zanata mojo exception: Incorrect username/password -> [Help1] 

Expected results:
[ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:3.4.1:put-version (default-cli) on project standalone-pom: Zanata mojo exception: User xxx is not the maintainer -> [Help1]

Comment 1 Zanata Migrator 2015-07-29 02:12:43 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-158