Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C6762200D44 for ; Mon, 20 Nov 2017 15:44:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C4F05160BF9; Mon, 20 Nov 2017 14:44:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1E1E4160BEC for ; Mon, 20 Nov 2017 15:44:32 +0100 (CET) Received: (qmail 12057 invoked by uid 500); 20 Nov 2017 14:44:32 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 12048 invoked by uid 99); 20 Nov 2017 14:44:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2017 14:44:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 80DB1C4F61 for ; Mon, 20 Nov 2017 14:44:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id T9GWa0wkDZkJ for ; Mon, 20 Nov 2017 14:44:30 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3A71560F61 for ; Mon, 20 Nov 2017 14:44:30 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 70433E0635 for ; Mon, 20 Nov 2017 14:44:29 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id E93E3603A6; Mon, 20 Nov 2017 14:44:25 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 56495] Application behind mod_proxy does not get SessionHeader from mod_session Date: Mon, 20 Nov 2017 14:44:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_session X-Bugzilla-Version: 2.4.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luca@memini.it X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Mon, 20 Nov 2017 14:44:34 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D56495 --- Comment #2 from Luca Memini --- A little improvement for David's patch, Check conf->header is set to prevent segfault. thx all l. --- httpd-2.4.9.orig/modules/session/mod_session.c 2014-01-24 07:02:42.000000000 -0600 +++ httpd-2.4.9/modules/session/mod_session.c 2014-05-06 13:59:09.0841833= 89 -0500 @@ -385,6 +385,13 @@ /* decode what we have */ encoded =3D apr_pstrdup(r->pool, z->encoded); + + /* Add the Decoded session info into the Input Headers + * for the application to find */ + session_dir_conf *conf =3D ap_get_module_config(r->per_dir_config, + &session_module); + if (conf->header) {=20=20 + apr_table_set(r->headers_in, conf->header, encoded); + }=20=20 + pair =3D apr_strtok(encoded, sep, &last); while (pair && pair[0]) { char *plast =3D NULL; --=20 You are receiving this mail because: You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org