Bug 840752 - Edit profile: very long name causes an unhelpful error page to be displayed
Summary: Edit profile: very long name causes an unhelpful error page to be displayed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-UI
Version: 1.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 1.7.2
Assignee: David Mason
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-17 07:17 UTC by David Mason
Modified: 2012-12-03 03:19 UTC (History)
2 users (show)

Fixed In Version: 1.7.2-SNAPSHOT (20120810-0001).
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-11-26 04:37:56 UTC
Embargoed:


Attachments (Terms of Use)

Description David Mason 2012-07-17 07:17:19 UTC
Description of problem:
If save is pressed after entering more than 80 characters in the name field, the browser redirects to a general error page with no information about what went wrong (404 for error.seam.seam not being found).

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

How reproducible:
Always

Steps to Reproduce:
1.Sign in, go to profile, click "Edit Profile"
2.Enter more than 80 characters in name field
3.Click "Save"
  
Actual results:
Directs to error.seam with 404 message about not finding error.seam.seam

Expected results:
Adds validation message next to name field showing that the entered name is too long.

Additional info:

Comment 1 David Mason 2012-07-17 07:19:42 UTC
Prevented error.seam.seam url rewriting:
https://github.com/zanata/zanata/commit/8dd37b2bad34f1546681af277069245da4c616dd

Added validation annotation for names:
https://github.com/zanata/zanata/commit/74be457544690cac034599a1b97b418cd12941f5

Comment 2 Ding-Yi Chen 2012-08-13 03:53:33 UTC
VERIFIED Zanata version 1.8.0-SNAPSHOT (20120810-0025)
Zanata version 1.7.2-SNAPSHOT (20120810-0001).


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