Folder should not be deleted if containing submitted files or subfolders

Bug #1031592 reported by Son Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Son Nguyen

Bug Description

Version: master
Database: all
Browser: all
Assumptions
 - a group with "Allow to submit"
 - a submitted page has "File(s) to download" block and "Folder" block
Actions
 - Delete folders which contains files defined in "File(s) to download" block and/or subfolders defined in "Folder" block.
Expected results
 - These actions shouldnot be carried out.

Changed in mahara:
status: New → Triaged
importance: Undecided → High
Son Nguyen (ngson2000)
Changed in mahara:
assignee: nobody → Son Nguyen (ngson2000)
status: Triaged → In Progress
Revision history for this message
Son Nguyen (ngson2000) wrote :
Changed in mahara:
milestone: none → 1.6.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1472
Committed: http://gitorious.org/mahara/mahara/commit/ba9d425cc20bc793ead22dcc065cfc77a89e183c
Submitter: Hugh Davenport (<email address hidden>)
Branch: master

commit ba9d425cc20bc793ead22dcc065cfc77a89e183c
Author: Son Nguyen <email address hidden>
Date: Tue Aug 14 10:36:39 2012 +1200

    Folder should not be deleted if containing submitted files or subfolders

    (Bug #1031592)

    Add a function can_be_deleted() to file and folder artefact to check if
    all its children artefact are not locked.

    Change-Id: I31fe49c426439748d3d7174943c302e7275d758c
    Signed-off-by: Son Nguyen <email address hidden>

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/1507
Committed: http://gitorious.org/mahara/mahara/commit/3e6d8cddb5a1b1badbc2b9d440ac2b86f3060d38
Submitter: Hugh Davenport (<email address hidden>)
Branch: 1.6_STABLE

commit 3e6d8cddb5a1b1badbc2b9d440ac2b86f3060d38
Author: Son Nguyen <email address hidden>
Date: Tue Aug 14 10:36:39 2012 +1200

    Folder should not be deleted if containing submitted files or subfolders

    (Bug #1031592)

    Add a function can_be_deleted() to file and folder artefact to check if
    all its children artefact are not locked.

    Change-Id: I31fe49c426439748d3d7174943c302e7275d758c
    Signed-off-by: Son Nguyen <email address hidden>

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 status fixreleased
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iJwEAQECAAYFAlCbHO8ACgkQuMoJ2LQ3zxH8TAP/YN4BiCJZsn5a899/0UzV31Qg
lM8LXAwZWa6zFv6t0BQUHCqe6eFK9wPp51qgCWWXjUZ3vvvVcsyeWp6626aBFKSU
pCQXI9E7huPw802nJQ9WcZXRBUmgw87ww72Tx4mybnu7SPSrkZgXdnPGSMwDs89N
oWvTpl7Xuac48e6p0lU=
=ouU+
-----END PGP SIGNATURE-----

Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.