6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/19/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#44] Postgres Session Serialization strips char
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..___.._. __. __ |\ | _/ | (__ / ` | \|./__._|_.__)\__.
Comment
> I will describe symptoms, cause and fix (at least for my system): > > > > ** Symptoms: > > > > Some links (the Password link for instance) don't work: you are > redirected back to /imp/mailbox.php. (After debugging I found that > Auth::getAuth() didn't work > > after the first time) > > > > > > ** CAUSE > > > > horde/lib/SQL.php, line 64, strips the first two chars of the value > of the session_data column (horde_sessionhandler table). > > > > This only occurs when you use pgsql as dbsyntax (line 63: case 'pgsql': ). > > This is strange since the store-code does not prepend any characters. > This seems to be a hack circumventing some problem (hard to believe > it is a deliberate bug!). > > > > B.t.w., we use PostgreSQL 7.4.1, and the table looks like: > > > > horde=# \d horde_sessionhandler > > Table "public.horde_sessionhandler" > > Column | Type | Modifiers > > ----------------------+-----------------------+----------- > > session_id | character varying(32) | not null > > session_lastmodified | integer | not null > > session_data | bytea | > > > > > > ** FIX: > > > > replace > > $data = substr($result, 2); > > by > > $data = $result; > > > > > > > > Greetings, > > > > Kenney Westerhof
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers