Login error when using a different language

Bug #1784762 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon

Bug Description

In master we can get this error:
[WAR] 10 (lib/errors.php:859) Failed to get a recordset: postgres8 error: [-1: ERROR: operator does not exist: character varying = bigint
LINE 1: ... $2 AND resourcetype = 'artefact' AND resourceid IN (SELECT...

To get this error, you need to have:
1) Site on latest master - using postgres
2) Have installed a language pack or 2
3) On homepage when logged out select language from dropdown and press the 'change' button
4) Login

Changed in mahara:
status: New → In Progress
Revision history for this message
Steven (stevens-q) wrote :

Manual Test Script
-------------------------------------

Preconditions:
-------------------------
1. Language packs installed for French
2. Postgres DB used for site
3. User logged out

Test Script:
-------------------------

1. User select "Francais" from the language drop down field (located top right of Mahara home page login)
2. click the change button
3. Confirm that the displayed text on page is noe displayed in French ✔
4. Log in
5. Confirm there are no error messages ✔
6. Confirm that user is now on their dashboard page ✔

Catalyst QA Approved ✔

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9035
Committed: https://git.mahara.org/mahara/mahara/commit/55b7bef0231ed448cf241976674660c80d77aa89
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 55b7bef0231ed448cf241976674660c80d77aa89
Author: Robert Lyon <email address hidden>
Date: Wed Aug 1 13:55:13 2018 +1200

Bug 1784762: Need to typecast tag results when using another language

To test:
1) Site on latest master - using postgres
2) Have installed a lang pack
3) On homepage when logged out select language from dropdown
4) Login

before: errors
after: no errors

behatnotneeded

Change-Id: I2f61a9c319c98335749aa5e628e4a378c3cdc23e
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
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.