Bug 1192252 - Error message of Non-maintainer put-project and put-version should be "User xxx is not a maintainer" in stead of "Incorrect username/password"
Summary: Error message of Non-maintainer put-project and put-version should be "User x...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Zanata
Classification: Retired
Component: Component-Maven
Version: client-3.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Patrick Huang
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-13 00:46 UTC by Ding-Yi Chen
Modified: 2015-07-29 02:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-29 02:12:43 UTC
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.