mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11349
[Bug 1095179] [NEW] file name consisting of blanks only accepted but misbehaves
Public bug reported:
When an uploaded file is renamed to a filename consisting of spaces
only, this is accepted but misbehaves.
Steps to reproduce:
1) Log in as administrator.
2) Go to Administration -> Configure site -> Site files.
3) Upload a file.
4) Click on the pencil icon to the right of the file.
5) Change the name field to a single space and click "Save changes". Observe that the save succeeds.
6) Click on the pencil icon to the right of the file. Observe that the name field is blank (no spaces).
7) Click on "Save changes". Observe that the save fails with the error "The name field is required".
Expected behaviour:
a) the save fails in step 5 with the error message "The name field is required"; or, failing that,
b) the spaces are preserved for step 6 and the save succeeds in step 7.
Versions:
* 1.6_STABLE 4892034
* master bf58c38
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1095179
Title:
file name consisting of blanks only accepted but misbehaves
Status in Mahara ePortfolio:
New
Bug description:
When an uploaded file is renamed to a filename consisting of spaces
only, this is accepted but misbehaves.
Steps to reproduce:
1) Log in as administrator.
2) Go to Administration -> Configure site -> Site files.
3) Upload a file.
4) Click on the pencil icon to the right of the file.
5) Change the name field to a single space and click "Save changes". Observe that the save succeeds.
6) Click on the pencil icon to the right of the file. Observe that the name field is blank (no spaces).
7) Click on "Save changes". Observe that the save fails with the error "The name field is required".
Expected behaviour:
a) the save fails in step 5 with the error message "The name field is required"; or, failing that,
b) the spaces are preserved for step 6 and the save succeeds in step 7.
Versions:
* 1.6_STABLE 4892034
* master bf58c38
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1095179/+subscriptions
Follow ups
-
[Bug 1095179] Re: file name consisting of blanks only accepted but misbehaves
From: Robert Lyon, 2016-10-21
-
[Bug 1095179] A change has been merged
From: Mahara Bot, 2016-10-06
-
[Bug 1095179] A patch has been submitted for review
From: Mahara Bot, 2016-10-06
-
[Bug 1095179] A change has been merged
From: Mahara Bot, 2016-10-06
-
[Bug 1095179] Re: file name consisting of blanks only accepted but misbehaves
From: Robert Lyon, 2016-10-06
-
[Bug 1095179] A patch has been submitted for review
From: Mahara Bot, 2016-10-05
-
[Bug 1095179] Re: file name consisting of blanks only accepted but misbehaves
From: Cecilia Vela Gurovic, 2016-10-05
-
[Bug 1095179] Re: file name consisting of blanks only accepted but misbehaves
From: Cecilia Vela Gurovic, 2016-10-05
-
[Bug 1095179] Re: file name consisting of blanks only accepted but misbehaves
From: Kristina Hoeppner, 2016-03-13
-
[Bug 1095179] [NEW] file name consisting of blanks only accepted but misbehaves
From: Jiri Baum (Catalyst), 2013-01-02
References