Homec4science

WebSession: fix for merge_usera_into_userb()

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Nov 1 2012, 11:22.

Description

WebSession: fix for merge_usera_into_userb()

  • Fixes a corner case in merge_usera_into_userb() usage where a user could have been "merged with himself" when his known email was stored in the database with upper and lower case characters.
  • Introduces un upgrade recipe to make all the email addresses stored in the DB lower case.
  • Disables merging for rnkPAGEVIEWS, rnkDOWNLOADS, and session tables since these are usually huge and they are not really critical from the point of view of record merging.
  • Disables locking of affected tables upon merging, at the very low risk of inconsistencies, but without the risk of locking up the service.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Nov 26 2012, 14:48
Parents
R3600:a95319a80104: WebSubmit: display login link on /submit page
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:4dd717bb7f72: WebSession: fix for merge_usera_into_userb() (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Nov 26 2012, 14:48