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

Key: GLIFFY-906
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Copeland
Reporter: Chris Kohlhardt
Votes: 0
Watchers: 0
Operations

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

Non-unique account name results in error

Created: 29/Sep/08 01:26 PM   Updated: 30/Sep/08 10:08 AM
Component/s: None
Affects Version/s: Quasar - Iteration 3 (Gliffy Online API Release, GPFC 1.5)
Fix Version/s: Quasar - Iteration 3 (Gliffy Online API Release, GPFC 1.5)
Security Level: Anyone may view


 Description  « Hide
Steps to reproduce:
  • Sign up for a premium account twice using the same account name, but different admin email addresses.

Expected result:

  • The second time signing up should error out noting non-unique account name

Actual result:

  • The second sign-up appears to succeed, but the database shows no new premium org account. Instead, we see a single personal account created on behalf of the user.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
David Copeland - 29/Sep/08 03:28 PM
This occurs due to this code:
Account org = accountDAO.getAccountByName(orgName);
if (org != null && !org.getStatus().equals(ACCOUNT_STATUS_TRIAL)) 
    return createError(pbean,"Organization name " + orgName + " already exists.");

Basically, you can create a duplicate org name if that name is only being used in a trial account.

This is a problem, as I had assumed that org names had to be unique.

The easiest solution is to get rid of the trial status check.


David Copeland - 29/Sep/08 03:29 PM
(Also, there are no duplicate org names in production right now, so adding this business rule would not seem to affect things)

Chris Kohlhardt - 29/Sep/08 03:42 PM
It's probably bad that the org name is used both for the API and for display purposes in the UI. arg.

Does that mean that a user would have to change their org name if they signed up for trial and then switched to premium later?

It seems to me that it would be simpler for the user, and for us if:

  • Unique org name is required when signing up for Basic OR Premium accounts, Trial or not

David Copeland - 29/Sep/08 03:51 PM
Current, if the account name looks like an email address, it finds the user with that address and grants them access to a single-user premium account, if they have one, or the first basic account they created.

Couple that with the requirement that an premium account must have a unique account name, and this should address it for future singups.


David Copeland - 30/Sep/08 10:08 AM
Removed check for trial accounts; all org names must be unique.

http://crucible.gliffy.com/fisheye/changelog/Gliffy/?cs=9605