Bug 838826 - Caught "A system error has occurred.If the problem persists,please contect Red Hat support" error when click the confirm link twice after register.
Summary: Caught "A system error has occurred.If the problem persists,please contect Re...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: ---
Assignee: Keith Shaw
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-10 09:02 UTC by Yujie Zhang
Modified: 2015-05-15 01:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-13 17:30:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yujie Zhang 2012-07-10 09:02:26 UTC
Description of problem:

If I clicked the confirm link using invalid parameter, and then click the correct confirm link, it will return "A system error....." message and if I click the confirm link the second time after I accept and login, it will also return "A system....." message.

Version-Release number of selected component (if applicable):

devenv_1882

How reproducible:always


Steps to Reproduce:
1.Go to openshift website and register a new account
2.Click the email confirm link using invalid parameter and then click the correct link
3.Click the email confirm link after confirm and login
  
Actual results:

It will return "A system error has occurred.If the problem persists,please contect Red Hat support" message.

Expected results:

It should return the correct message.

Additional info:

Comment 1 Clayton Coleman 2012-07-10 17:22:05 UTC
Getting an exception from streamline on /wapps/streamline/confirm.html (with a preused key).

Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an int
ernal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>org.spri
ngframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.N
ullPointerException
        org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
        org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
</pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException
        com.redhat.www.streamline.controller.EmailConfirmationController.handleRequestInternal(EmailCon
firmationController.java:94)
        org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:15
3)
        org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandl
erAdapter.java:48)

Comment 3 Clayton Coleman 2012-07-10 20:33:48 UTC
Moving this to streamline team.  Giving low severity and high priority to reflect the fact that it doesn't block critical path and because it's now owned by a separate team.

Comment 4 Keith Shaw 2012-07-13 17:30:57 UTC
This issue has been fixed and release to prod.  Streamline should now respond with the following json in this case: 

{"errors":["user_email_failed_confirmation","invalid_token"]}


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