Bug 746857

Summary: Returned 500 (Internal Server Error) with maven putuser
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-MavenAssignee: Carlos Munoz <camunoz>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.4.1CC: aeng, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.5-SNAPSHOT Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-23 04:32:52 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:
Attachments:
Description Flags
Client log none

Description Ding-Yi Chen 2011-10-18 01:12:36 UTC
Created attachment 528677 [details]
Client log

Description of problem:
The server return 500 (Internal Server Error) when putuser with maven.


Version-Release number of selected component (if applicable):
Client 1.4.2-SNAPSHOT
Server Zanata version 1.4.2-SNAPSHOT (20111017-1543)


How reproducible:
Always

Steps to Reproduce:
1. Create a user "autotrans" with following command
mvn -e -U org.zanata:zanata-maven-plugin:putuser -Dzanata.url=http://zanata-endeavour.lab.eng.bne.redhat.com:8080/ -Dzanata.username=admin -Dzanata.key=b6d7044e9ee3b2447c28fb7c50d86d98 -Dzanata.userRoles=translator -Dzanata.userDisabled=false -Dzanata.userEmail=autotrans -Dzanata.userKey=23456789012345678901234567890123 -Dzanata.userLangs=ja,zh-Hans "-Dzanata.userName=Auto Translator" -Dzanata.userUsername=autotrans -Dzanata.userPasswordHash=UoT7kD9H6euhylD6H3oOPg==
  
Actual results:
Failed with 500 (Internal Server Error)

Expected results:
Successfully create the user "autotrans" without error.

Additional info:

Comment 1 Carlos Munoz 2012-01-06 00:15:25 UTC
500 errors were being caused by a missing xml root element declaration on the Account class, and a null pointer exception when accessing an empty list on the same class. Both issues fixed and ready for validation.

Comment 3 Alex Eng 2012-01-06 01:35:15 UTC
Verified in 1.5.