Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #7742

Closed
Open
Created Dec 16, 2012 by Trac@tracbot

re-attach event listeners -- reloaded

Damian,

I looked more closely at the various authentication paths after your email0. And I concluded, I still don't like the hook in BaseController.msg. 8-)

This patch set1 is my second attempt to find an alternative approach. Basically, call _post_authentication() at the end of each connection.authentication* function. This covers 2 of the 3 use cases you presented.

If someone goes to the trouble to hand-compose an AUTHENTICATE message string to send through BC.msg, they should be sophisticated enough to re-attach event listeners on their own. Someone reaching that deeply into the abstraction layer can protect themselves.

This is my last, best argument for moving the hook. I respect your decision either way.

Trac:
Username: robinson

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking