History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2464
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Steve Luo
Reporter: Gavin Wood
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

JIRA authenticator creates malformed email address

Created: 08/Jun/15 07:52 PM   Updated: 03/Apr/16 07:15 AM
Component/s: None
Affects Version/s: 6.0.13, 6.0.18
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. JiraUser.JPG
(13 kb)

2. QBuser.JPG
(14 kb)
Environment: Latest Amazon Linux, Open JDK 1.8.0_31, QB 6.0.13 and 6.0.18


 Description  « Hide
When migrating from QB 6.0.13 to 6.0.18 this error occurred:
2015-06-08 18:41:46,073 ERROR - Error migrating.
com.pmease.quickbuild.validation.ValidationException: not a well-formed email address (class:com.pmease.quickbuild.model.User, property:email, value:gavin dot wood at us dot panasonic dot com)
        at com.pmease.quickbuild.web.component.editor.EditContext.validate(EditContext.java:191)
        at com.pmease.quickbuild.web.component.editor.EditContext.validate(EditContext.java:140)
        at com.pmease.quickbuild.util.BeanUtils.validate(BeanUtils.java:367)
        at com.pmease.quickbuild.entitymanager.impl.DefaultDataManager.importData(DefaultDataManager.java:970)
        at com.pmease.quickbuild.Quickbuild.importData(Quickbuild.java:909)
        at com.pmease.quickbuild.bootstrap.Migrate$7.execute(Migrate.java:374)
        at com.pmease.quickbuild.Quickbuild$3.run(Quickbuild.java:627)
        at java.lang.Thread.run(Thread.java:745)
*********************** IMPORTANT ***********************
Migration process is failed and the data of previous version may got deleted from database. To restore the previous data, please delete and re-create the database and run below command:
/usr/lib64/quickbuild-6.0.13/bin/restore.sh /usr/lib64/quickbuild-6.0.18/migrate/2015.06.08_18.40.57.zip

The suggested restore did not work for the same reason.
I edited the Users.xml in the migrate zip file and changed two email entries from the format "alias at some dot domain dot com" to "alias@some.domain.com". and then followed procedures to remove/recreate the database, restore to 6.0.13 and retry the migration to 6.0.18, which subsequently worked.

Whenever a user logs into QB using the JIRA Authenticator, the email address will be malformed in this manner. You can correct the email address, but it will be malformed again at next logon.

 All   Comments   Work Log   Change History      Sort Order:
Change by Robin Shen [08/Jun/15 11:30 PM]
Field Original Value New Value
Assignee Robin Shen [ robinshine ] Steve Luo [ steve ]

Change by Gavin Wood [19/Jun/15 02:03 PM]
Attachment JiraUser.JPG [ 10460 ]
Attachment QBuser.JPG [ 10461 ]

Change by Steve Luo [03/Apr/16 07:15 AM]
Status Open [ 1 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]