sql exception when deleting a user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
18.04 |
Fix Released
|
High
|
Unassigned | ||
18.10 |
Fix Released
|
High
|
Cecilia Vela Gurovic |
Bug Description
When trying to delete users with the delete_
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
[WAR] f1 (lib/errors.
Call stack (most recent first):
* log_message(
* log_warn(
* SQLException-
* get_recordset_
* get_records_
* ArtefactTypeFil
* ArtefactTypeIma
* call_user_
* call_static_
* ArtefactType:
* ArtefactTypeFol
* delete_
[WAR] f1 (lib/dml.php:517) Failed to get a recordset: postgres8 error: [-1: ERROR: column "aff1.artefact" must appear in the GROUP BY clause or be used in an aggregate function
[WAR] f1 (lib/dml.php:517) LINE 2: SELECT aff1.*, a.artefacttype
[WAR] f1 (lib/dml.php:517) ^] in adodb_throw(
[WAR] f1 (lib/dml.php:517) SELECT aff1.*, a.artefacttype
[WAR] f1 (lib/dml.php:517) FROM "artefact_
[WAR] f1 (lib/dml.php:517) JOIN "artefact" a ON aff1.artefact = a.id
[WAR] f1 (lib/dml.php:517) WHERE artefact IN (<list of artefact ids>)
[WAR] f1 (lib/dml.php:517) GROUP BY fileid
[WAR] f1 (lib/dml.php:517) HAVING COUNT(aff1.
[WAR] f1 (lib/dml.php:517) (SELECT COUNT(aff2.
[WAR] f1 (lib/dml.php:517) FROM "artefact_
[WAR] f1 (lib/dml.php:517) WHERE aff1.fileid = aff2.fileid), )Command was:
[WAR] f1 (lib/dml.php:517) SELECT aff1.*, a.artefacttype
[WAR] f1 (lib/dml.php:517) FROM "artefact_
[WAR] f1 (lib/dml.php:517) JOIN "artefact" a ON aff1.artefact = a.id
[WAR] f1 (lib/dml.php:517) WHERE artefact IN (<list of artefact ids>)
[WAR] f1 (lib/dml.php:517) GROUP BY fileid
[WAR] f1 (lib/dml.php:517) HAVING COUNT(aff1.
[WAR] f1 (lib/dml.php:517) (SELECT COUNT(aff2.
[WAR] f1 (lib/dml.php:517) FROM "artefact_
[WAR] f1 (lib/dml.php:517) WHERE aff1.fileid = aff2.fileid)
Call stack (most recent first):
* get_recordset_
* get_records_
* ArtefactTypeFil
* ArtefactTypeIma
* call_user_
* call_static_
* ArtefactType:
* ArtefactTypeFol
* delete_
A nonrecoverable error occurred. This probably means you have encountered a bug in the system
Changed in mahara: | |
status: | New → Confirmed |
Changed in mahara: | |
importance: | Undecided → High |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
status: | Confirmed → Fix Committed |
no longer affects: | mahara/17.04 |
no longer affects: | mahara/17.10 |
Patch for "master" branch: https:/ /reviews. mahara. org/8892