On my system, for some reason the sid column used by Masquerade is 32 characters, while the sessions table has a 64 character sid. The sids my system generates are longer than 32 characters, preventing Masquerade from working; it gives a database error when trying to copy the sid over.

I'm using Drupal-5.10 with Postgres.

Simply changing the column type to 64 characters solves the problem completely. With that change the module works beautifully, and is very helpful. Thanks!

Comments

deekayen’s picture

Assigned: Unassigned » deekayen

md5 hashes are 32 characters, which was the assumption of the session id until 5, when it supported 64.

deekayen’s picture

Status: Active » Fixed

I added an update function to resolve this for others for 5.x, 6.x, and HEAD.

scottgifford’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 26f1ab5 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #392738 - increase sid column to match core sessions table length #...

  • Commit 26f1ab5 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by deekayen:
    #392738 - increase sid column to match core sessions table length #...