mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #43681
[Bug 1711485] Re: Group group_create() wrong error if shortname is not lowercase
Here are the test cases and test results for this bug
URL: https://bugs.launchpad.net/mahara/+bug/1711485
Scenario 1:
Bug description: Creating a group via CSV is throwing incorrect error
message if short name is not lower case.
Environment to be tested: Master branch
Browser testing: Not applicable
Steps to Reproduce:
1. Log in as a site admin user.
2. Navigate to Main menu > Groups.
3. Click the ‘Create group’ button.
4. Enter ‘Group name’ as ‘Mahara’.
5. Click the ‘Save group’ button.
6. Click the ‘Settings’ button.
7. Change the 'Short name' to ‘Test’.
8. Click the ‘Save group’ button.
9. Now navigate to Administration menu > Administer groups.
10. Click on ‘Export groups in CSV format’.
11. Navigate to Administration menu > Groups > Add groups by CSV.
12. Switch ‘Update groups’ to ‘Yes’.
13. Choose the saved file at step 8 and click on ‘Add groups by CSV’ button.
Expected Result: An error message is displayed as
"group_create: The supplied short name 'Test' needs to be lower-case,
eg 'test'.”
Actual Result: NO error message is displayed, this test case is a fail.
Scenario 2:
Bug description: Creating a new group via a CSV file and have an upper
case short name.
Environment to be tested: Master branch
Browser testing: Not applicable
Steps to Reproduce:
Precondition: Create a CSV file for a new group with short name as
‘Groupone’.
1. Navigate to Administration menu > Add groups by CSV.
2. Click on ‘Choose file’ from ‘CSV file’ field.
3. Select the CSV file (see precondition).
4. Click the ‘Add groups by CSV’ button.
Expected Result: An error message is displayed as
"group_create: The supplied short name 'Test' needs to be lowercase, eg 'test'.
Actual Result: Error message is displayed correct but it says the site is unavailable and the following message is displayed.
“Mahara: Site unavailable
Something in the way you're interacting with Mahara is causing an error.
Details if any, follow:”
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1711485
Title:
Group group_create() wrong error if shortname is not lowercase
Status in Mahara:
In Progress
Bug description:
If you try to create a group via csv with a non-lowecase shortname, eg
'Cats' it complains:
"group_create: The supplied shortname 'Cats' is already taken. This
shortname 'cats' is available."
It should do a different complaint, eg:
"group_create: The supplied shortname 'Cats' needs to be lower-case,
eg 'cats'."
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1711485/+subscriptions
References