Identity - Links identities to account 1

Bug #421169 reported by Stefano Rivera
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Critical
Stefano Rivera

Bug Description

Shadowfire:
Aug 29 19:13:41 <testtumble> hi
Aug 29 19:13:42 * Dazzle waves to testtumble
Aug 29 19:13:44 <testtumble> who am i
[Dazzle has address ~<email address hidden>]
Aug 29 19:13:44 <Dazzle> testtumble on shadowfire
Aug 29 19:15:23 <testtumble> i am testtumble on atrum
Aug 29 19:15:24 <Dazzle> Sure
Aug 29 19:15:30 <testtumble> x5YQqSXLSXXiENBZ
Aug 29 19:15:31 <Dazzle> Identity added
Aug 29 19:15:33 <testtumble> who am i
Aug 29 19:15:34 <Dazzle> tumbleweed is [UC]tumbleweed on titan, tumblehome on titan, tumbleweed on atrum, [UC]tumbleweed on moseisley, tumbleweed on shadowfire and testtumble on shadowfire

Atrum:
Aug 29 19:13:54 <testtumble> who am i?
Aug 29 19:13:55 <Dazzle> testtumble on atrum
Aug 29 19:15:24 <Dazzle> Please send me this message from testtumble on shadowfire: x5YQqSXLSXXiENBZ

Revision history for this message
Stefano Rivera (stefanor) wrote :

OK, the problem appears to be that
                account = event.session.query(Account) \
                        .join(Identity.account) \
                        .filter(func.lower(Identity.identity) == identity.lower()) \
                        .filter(func.lower(Identity.source) == source.lower()).first()

is generating

SELECT accounts.id AS accounts_id, accounts.username AS accounts_username FROM accounts, identities WHERE lower(identities.identity) = 'testtumble' AND lower(identities.source) = 'atrum' ORDER BY accounts.id

tags: added: sqlalchemy0.4
Changed in ibid:
status: New → In Progress
assignee: nobody → Stefano Rivera (stefanor)
Changed in ibid:
status: In Progress → Fix Released
visibility: private → public
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

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