Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 391171

Summary: Incorrect error message when resetting user password with misconfigured email
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ServerAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 2.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-10-04 18:36:23 EDT
For testing I set up my local Orion server with this email config:

> mail.smtp.host=safa
> mail.smtp.port=25
> mail.smtp.user=a
> mail.smtp.password=b
> mail.smtp.auth=true
> mail.from=a

Then I tried to reset my password using the "forgot password" link on the login page. When I enter my user id, I get an error saying:

> User mark doesn't have its email set. Contact administrator to reset your password.

The message is wrong -- the problem is not with the user but with the server's email configuration. We should give a better error, something like "the password reset email could not be sent. contact your system administrator."
Comment 1 Malgorzata Janczarska CLA 2012-11-07 10:48:23 EST
Actually the message is not entirely wrong, in normal conditions you get "Cannot send email" message when the email configuration is not correct and "User doesn't have email" when user does not have an email send or it was not yet confirmed.
I suppose in your situation the scenario was as follows
1. You tried to set the email address when your configuration was same as comment 0
2. Your profile was updated, confirmation email could not be send, but error message was not presented to you - Bug 393778
3. Your email is recorded in profile, but it's hanging as "not confirmed", information about this is not displayed in the profile view, so you have a feeling that your email  is set - Bug 388922
4. When you try to reset email we display "user doesn't have email", I agree we should change message to "please confirm your email first" - Bug 391171 (this bug)
Comment 2 Malgorzata Janczarska CLA 2013-02-07 10:49:27 EST
OK, bugs from points 2 and 3 are fixed and I just fixed point 4, so the bug is fixed.