Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 89487 invoked by uid 500); 14 Sep 2001 19:37:08 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 89450 invoked from network); 14 Sep 2001 19:37:07 -0000 From: "Bernhard Huber" To: cocoon-dev@xml.apache.org Message-ID: <3dd7503dd844.3dd8443dd750@i-one.at> Date: Fri, 14 Sep 2001 19:36:40 GMT X-Mailer: Netscape Webmail MIME-Version: 1.0 Content-Language: de Subject: Re: Problem with sessions on Cocoon 2 X-Accept-Language: de Content-Type: multipart/mixed; boundary="--694c483a6e4467d6" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----694c483a6e4467d6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does your browser allow session-cookies=3F If not or may you have switched session-cookies off at your browser=2C then you need use URL rewriting see response=2EencodeURL()=2C respone=2EredirectEncodeURL() for more info ----- Originalnachricht ----- Von=3A David H=E9not =3Chenot=40sens3d=2Ecom=3E Datum=3A Freitag=2C September 14=2C 2001 6=3A34 pm Betreff=3A Problem with sessions on Cocoon 2 =3E Hello=2C =3E = =3E I=27m having a problem trying to use sessions (precisely the session = =3E validator = =3E action) with cocoon 2=2E =3E I tried to send a mail to the cocoon-users ML=2C but got no replies=2E= = =3E So I = =3E upgraded to the beta2 (I started with beta1) and to a cvs snapshot = =3E (dated = =3E 09/12/2001) with no success=2C and as it looks (in my point of view) = =3E like a bug = =3E in cocoon=2C I decided to try cocoon-dev =2E=2E=2E I would appreciate= any = =3E help and if = =3E it=27s a bug in cocoon I will help to fix it=2E =3E = =3E I attached the mail sent to cocoon-users=2C so you can have all the = =3E details=2C = =3E but with the new logs generated by the cvs snapshot=2C the problem = =3E is quite = =3E clear =3A =3E = =3E ------ cocoon=2Elog (some infos cut for readability) ------ =3E (=2E=2E=2E) =3E Thread-56/DatabaseAuthenticatorAction=3A DBAUTH=3A authorized success= fully =3E Thread-56/DatabaseAuthenticatorAction=3A DBAUTH=3A session created =3E Thread-56/DatabaseAuthenticatorAction=3A DBAUTH=3A propagating param = =3E login=3DhenotThread-56/DatabaseAuthenticatorAction=3A DBAUTH=3A = =3E propagating param name=3DH=E9not = =3E David =3E = =3E (The session is created by DbAuthenticatorAction =2E=2E=2E) =3E = =3E Thread-56/DefaultPool=3A Returning a = =3E org=2Eapache=2Eavalon=2Eexcalibur=2Edatasource=2EJdbcConnection to th= e pool =3E Thread-56/sitemap=5Fxmap=3A Action db-authenticator =3E Thread-56/sitemap=5Fxmap=3A Sitemap=3A session=3D=27true=27=2C redire= cting to =27=27 =3E Thread-56/Cocoon=3A DEBUGGING INFORMATION=3A =3E REQUEST=3A /sens3d/test/ =3E = =3E CONTEXT PATH=3A /sens3d =3E SERVLET PATH=3A /test/ =3E PATH INFO=3A null =3E = =3E REMOTE HOST=3A www=2Esens3d=2Ecom =3E REMOTE ADDRESS=3A 80=2E65=2E225=2E100 =3E REMOTE USER=3A null =3E REQUEST SESSION ID=3A a8u8scx0d1 =3E REQUEST PREFERRED LOCALE=3A en =3E SERVER HOST=3A www=2Esens3d=2Ecom =3E SERVER PORT=3A 80 =3E = =3E METHOD=3A GET =3E CONTENT LENGTH=3A -1 =3E PROTOCOL=3A HTTP/1=2E1 =3E SCHEME=3A http =3E AUTH TYPE=3A null =3E = =3E CURRENT ACTIVE REQUESTS=3A 2 =3E MAXIMUM ACTIVE REQUESTS=3A 2 =3E = =3E REQUEST PARAMETERS=3A =3E = =3E = =3E SESSION ATTRIBUTES=3A =3E = =3E PARAM=3A =27name=27 VALUE=3A =27H=E9not David=27 =3E PARAM=3A =27login=27 VALUE=3A =27henot=27 =3E = =3E (So the session is present=2C or so it seems to me =2E=2E=2E=2E but a= few = =3E lines after I = =3E see this =3A ) =3E = =3E Thread-56/SessionValidatorAction=3A SESSIONVALIDATOR=3A validating = =3E parameters = =3E from given constraint-set is-logged-in =3E Thread-56/SessionValidatorAction=3A SESSIONVALIDATOR=3A given set is-= =3E logged-in = =3E contains 2 rules =3E Thread-5Thread-5login (encoded in a string=3A false) =3E Thread-5Thread-5name (encoded in a string=3A false) =3E Thread-56/SessionValidatorAction=3A SESSIONVALIDATOR=3A all session = =3E params = =3E validated =3E = =3E (How could these parameters be anything else than strings =3F) =3E = =3E ------------------ =3E = =3E And=2C btw=2C Cocoon 2 is really great (or at least it will be when = =3E I=27ll manage = =3E to use sessions =3A)) ! =3E = =3E David ----694c483a6e4467d6 Content-Type: message/rfc822; charset="iso-8859-1"; name="cocoon-users.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="cocoon-users.txt" >From henot@sens3d.com Fri Sep 7 17:43:53 2001 Return-Path: Delivered-To: henot@sens3d.com Received: from apache.org (daedalus.apache.org [64.125.133.20]) by smtp.sens3d.com (Postfix) with SMTP id 0A443FB9C for ; Fri, 7 Sep 2001 17:47:24 +0200 (CEST) Received: (qmail 99143 invoked by uid 500); 7 Sep 2001 15:47:17 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 99109 invoked from network); 7 Sep 2001 15:47:17 -0000 Content-Type: text/plain; charset="iso-8859-1" From: David =?iso-8859-1?q?H=E9not?= Organization: Sens3d To: cocoon-users@xml.apache.org Subject: Problem with sessions on Cocoon 2 Date: Fri, 7 Sep 2001 17:43:53 +0200 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01090717435302.01117@ns> Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Status: RO X-Status: O Hello, I'm trying to use Cocoon 2 with SessionValidatorAction and DatabaseAuthenticatorAction to handle user authentication, but I'm unable to get the session validator to see the session variables set by the database authenticator. Searching mail and groups archives didn't help much ... Versions : Cocoon 2.0b1, Tomcat 3.2.3, Apache 1.3.19 (with mod_jk) ------- in sitemap.xmap ------- ---------------------------- When I try to log in ("do-login"), I get this in the log file : DBAUTH: authorized successfully DBAUTH: session created DBAUTH: propagating param login=henot DBAUTH: propagating param name=H�not David Action ((Action)this.actions.select( db-authenticator )).act Sitemap: session='true', redirecting to '' redirect: entering session mode redirect: session mode completed, id = lsbkkpjd81 Sending redirect to ';jsessionid=lsbkkpjd81' So everything seems OK but later when the session validator is called : SESSIONVALIDATOR: validating parameters from given constraint-set is-logged-in SESSIONVALIDATOR: given set is-logged-in contains 2 rules VALIDATOR: validating parameter: login VALIDATOR: validating string parameter login (encoded in a string: false) VALIDATOR: validating parameter: name VALIDATOR: validating string parameter name (encoded in a string: false) SESSIONVALIDATOR: all session params validated It looks like the validator didn't see anything in the session, and in fact I can't use the name variable from the xsl stylesheet (always undefined although I put a "" after the xsl:stylesheet) Any help *much* appreciated ! -- David H�not --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: ----694c483a6e4467d6 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org ----694c483a6e4467d6 Content-Type: text/x-vcard; name="bh22351.vcf"; charset=us-ascii Content-Disposition: attachment; filename="bh22351.vcf Content-Description: Card for Content-Transfer-Encoding: 7bit begin:vcard n:Huber;Bernhard fn:Bernhard Huber version:2.1 email;internet:bh22351@i-one.at end:vcard ----694c483a6e4467d6 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org ----694c483a6e4467d6--