<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>jspwiki-dev@incubator.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/</id>
<updated>2009-12-10T09:28:11Z</updated>
<entry>
<title>Re: OpenID support in JSPWiki?</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c47E4DECA-ED52-4920-A5B3-403F782ED504@gmail.com%3e"/>
<id>urn:uuid:%3c47E4DECA-ED52-4920-A5B3-403F782ED504@gmail-com%3e</id>
<updated>2009-12-08T20:30:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Great news. Glad it works for you.

On Dec 8, 2009, at 9:30, "Schenk, Andre" &lt;Andre.Schenk@FIZ- 
Karlsruhe.DE&gt; wrote:

Hi developers,
&gt;
&gt; just a short message from me, that supplying the WikiEngine to a  
&gt; custom login module now works with JSPWiki 2.8.3. Many thanks for  
&gt; that!!!
&gt;
&gt; Best regards,
&gt;
&gt; AndrÃ©
&gt; --------------------------
&gt; AndrÃ© Schenk
&gt; ePublishing &amp; eScience
&gt; Development &amp; Applied Research
&gt; Phone +49 7247 808-215
&gt; Fax +49 7247 808-133
&gt; Andre.Schenk@fiz-karlsruhe.de
&gt;
&gt;
&gt; FIZ Karlsruhe
&gt; Hermann-von-Helmholtz-Platz 1
&gt; 76344 Eggenstein-Leopoldshafen, Germany
&gt;
&gt; www.fiz-karlsruhe.de
&gt; ---------------------------------------
&gt;
&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: Andrew Jaquith [mailto:andrew.r.jaquith@gmail.com]
&gt;&gt; Sent: Thursday, March 26, 2009 4:39 AM
&gt;&gt; To: jspwiki-dev@incubator.apache.org; Schenk, Andre
&gt;&gt; Subject: Re: OpenID support in JSPWiki?
&gt;&gt;
&gt;&gt; Hi Tilman --
&gt;&gt;
&gt;&gt; Your analysis is correct. You would need to get obtain the  
&gt;&gt; HttpRequest
&gt;&gt; from WikiCallbackHandler, which at the moment it does not know how to
&gt;&gt; supply. We have had some other questions about this recently, notably
&gt;&gt; Andre Schenk's desire to be able to obtain a reference to the
&gt;&gt; WikiEngine from inside his custom LoginModule.
&gt;&gt;
&gt;&gt; In both cases, the common thread is that we need to supply additional
&gt;&gt; callbacks to WikiCallbackHandler. I'm inclined to fix this in 2.8.2,
&gt;&gt; by simply adding in support for the HttpRequestCallback. That should
&gt;&gt; meet your needs, no?
&gt;&gt;
&gt;&gt; It should also meet Andre's, indirectly, in the sense that if you  
&gt;&gt; have
&gt;&gt; an HttpRequest you can fairly easily retrieve the WikiEngine also (by
&gt;&gt; passing getSession().getServletContext() to WikiEngine.getInstance 
&gt;&gt; ()).
&gt;&gt;
&gt;&gt; Andrew
&gt;&gt;
&gt;&gt; On Wed, Mar 25, 2009 at 7:27 AM, Tilman Bender
&gt;&gt; &lt;tbender@stud.hs-heilbronn.de&gt; wrote:
&gt;&gt;&gt; Hi Andrew,
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks for your help!
&gt;&gt;&gt;
&gt;&gt;&gt; Let's see if I got it right:
&gt;&gt;&gt;
&gt;&gt;&gt; - My OpenidAssertionLoginModule need the data from the HttpPRequest
&gt;&gt;&gt; - The way to obtain this data is via HttpReuqestCallback
&gt;&gt;&gt;
&gt;&gt;&gt; From what I can see so far, the HttpReuqest in HttpRequestCallBack  
&gt;&gt;&gt; is
&gt;&gt; only
&gt;&gt;&gt; set in WebContainerCallbackHandler, which is used by:
&gt;&gt;&gt;
&gt;&gt;&gt; -WebContainerLoginModule
&gt;&gt;&gt; -CookieAssertionLoginModule
&gt;&gt;&gt; - AnonymousLoginModule
&gt;&gt;&gt;
&gt;&gt;&gt; So as I get it, I would have to either use this CallBackHandler,
&gt;&gt; instead of
&gt;&gt;&gt; WikiCallBackHandler
&gt;&gt;&gt; or to find a way to set the HttpRequest in HttpRequestCallBack from
&gt;&gt; within
&gt;&gt;&gt; WikiCallBackHandler.
&gt;&gt;&gt;
&gt;&gt;&gt; Question is: How can I access the request from within,
&gt;&gt; WikiCallBackHandler?
&gt;&gt;&gt;
&gt;&gt;&gt; I agree on the attribute exchange on login, allthough I would see
&gt;&gt; that as a
&gt;&gt;&gt; further improvement to the basic OpenID
&gt;&gt;&gt; functionality.
&gt;&gt;&gt;
&gt;&gt;&gt; For the UI side, I attached some mocks. This is what my UI currenlty
&gt;&gt; looks
&gt;&gt;&gt; like, but it is far from complete. Comments
&gt;&gt;&gt; welcome :-)
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; kind regards
&gt;&gt;&gt;
&gt;&gt;&gt; Tilman Bender
&gt;&gt;&gt; Student des Software Engineering
&gt;&gt;&gt; Hochschule Heilbronn
&gt;&gt;&gt; tbender@stud.hs-heilbronn.de
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Am 20.03.2009 um 14:43 schrieb Andrew Jaquith:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Tilman--
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks for your e-mail, and for your good work.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Your thought-process on this seems sound. Agreed, the first phase  
&gt;&gt;&gt;&gt; of
&gt;&gt; login
&gt;&gt;&gt;&gt; (OP discovery + redirect) should be handled by a custom JSP. The
&gt;&gt; second
&gt;&gt;&gt;&gt; phase (validation) should be handled by JAAS.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; To do this, you will need to get the HttpRequest object. JSPWiki
&gt;&gt; does have
&gt;&gt;&gt;&gt; an HttpRequestCallback that can supply this, at least in the custom
&gt;&gt;&gt;&gt; authentication case. You will need to check to see if
&gt;&gt; WikiCallbackHandler
&gt;&gt;&gt;&gt; passes that callback. If not, it is trivial to patch the code to do
&gt;&gt; this.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; So, I think this is basically in line with what you proposed.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Some other thoughts:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; At login time, it would be highly desirable to use SREG or OpenID
&gt;&gt;&gt;&gt; attribute exchange to pull the user's name and e-mail address and
&gt;&gt; use the
&gt;&gt;&gt;&gt; returned values to update their profile, which would ensure that
&gt;&gt; their
&gt;&gt;&gt;&gt; information is always current. The login ID used to look up the
&gt;&gt; profile
&gt;&gt;&gt;&gt; should be the user's OpenID URL... I think.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On the UI side, we will need a special OpenID login page (JSP). The
&gt;&gt;&gt;&gt; regular login page could include this if desired.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Andrew
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Mar 18, 2009, at 7:02, Tilman Bender &lt;tbender@stud.hs-
&gt;&gt; heilbronn.de&gt;
&gt;&gt;&gt;&gt; wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Hey guys,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I am currently plaing with the 2.8.1 code and openid4java.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; But I am having a hard time trying to fiugre out where exactly to
&gt;&gt; hook in
&gt;&gt;&gt;&gt;&gt; the OpenID stuff.
&gt;&gt;&gt;&gt;&gt; The problem is (as also described in #JSPWIKI-94), that:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; 1. To me it seems you cannot do the whole thing in JAAS:
&gt;&gt;&gt;&gt;&gt; OpenID as I understand it has two phases :
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Phase I:
&gt;&gt;&gt;&gt;&gt; - The user just submitted his openid identifier to our
&gt;&gt; login/registration
&gt;&gt;&gt;&gt;&gt; from.
&gt;&gt;&gt;&gt;&gt; - We do discovery on the identifier to find the Endpoint of his
&gt;&gt; OpenID
&gt;&gt;&gt;&gt;&gt; Provider (and check if the provider is in our whitelist)
&gt;&gt;&gt;&gt;&gt; - We redirect the user to his OpenID provider
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; So in this phase it makes no sense to me to use a JAAS-Module  
&gt;&gt;&gt;&gt;&gt; since
&gt;&gt; we
&gt;&gt;&gt;&gt;&gt; wouldn't be able to complete the login mehtod
&gt;&gt;&gt;&gt;&gt; as we do not know enough about the user yet (we do not know if his
&gt;&gt;&gt;&gt;&gt; identity is asserted by the OpenID Provider).
&gt;&gt;&gt;&gt;&gt; So I currently do this via JSP  and Scriptlets (no custom tag  
&gt;&gt;&gt;&gt;&gt; yet).
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Phase II:
&gt;&gt;&gt;&gt;&gt; - The user is redirected back to us by his OpenID Provider
&gt;&gt;&gt;&gt;&gt; - We connect to the OpenID Provider to verify the assertion that
&gt;&gt; was
&gt;&gt;&gt;&gt;&gt; passed along the request (be it a positive or negative assertion)
&gt;&gt;&gt;&gt;&gt; - Now we know enough about the user to log them in.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I currently try to use UserManager.setUserProfile in this
&gt;&gt; situation. Now
&gt;&gt;&gt;&gt;&gt; here comes my Problem:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I would like to do all the assertion verifiaction in a JAAS- 
&gt;&gt;&gt;&gt;&gt; Module,
&gt;&gt; but
&gt;&gt;&gt;&gt;&gt; for that I need all the request
&gt;&gt;&gt;&gt;&gt; data, which I do not have in the setUserProfile-Method.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; So currently I am stuck. Before I start to wildly mess the API: Am
&gt;&gt; I
&gt;&gt;&gt;&gt;&gt; taking the right direction?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Tilman Bender
&gt;&gt;&gt;&gt;&gt; Student des Software Engineering
&gt;&gt;&gt;&gt;&gt; Hochschule Heilbronn
&gt;&gt;&gt;&gt;&gt; tbender@stud.hs-heilbronn.de
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Am 03.12.2008 um 21:50 schrieb Janne Jalkanen:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Hi!
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Thanks for the effort - sounds like a worthy project!
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I think you will save yourself a lot of grief if you work on the
&gt;&gt; 2.8.1
&gt;&gt;&gt;&gt;&gt;&gt; branch, since the trunk is now the subject of a lot of changes -
&gt;&gt; but note
&gt;&gt;&gt;&gt;&gt;&gt; that we *will* be making some rather major changes for 3.0, so  
&gt;&gt;&gt;&gt;&gt;&gt; you
&gt;&gt; may face
&gt;&gt;&gt;&gt;&gt;&gt; a small porting effort towards the end.  We certainly wouldn't
&gt;&gt; like to land
&gt;&gt;&gt;&gt;&gt;&gt; a major feature in 2.8 branch anymore, since it's rather stable.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I think the first thing you could do is to outline your plan as 

&gt;&gt;&gt;&gt;&gt;&gt; to
&gt;&gt; how
&gt;&gt;&gt;&gt;&gt;&gt; exactly are you planning to hook into our structures - a good
&gt;&gt; place to start
&gt;&gt;&gt;&gt;&gt;&gt; is probably the Security documentation at
&gt;&gt;&gt;&gt;&gt;&gt; http://doc.jspwiki.org/2.8/wiki/Security, and then asking a lot 

&gt;&gt;&gt;&gt;&gt;&gt; of
&gt;&gt; questions
&gt;&gt;&gt;&gt;&gt;&gt; on this mailing list.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Also, since we are talking about a fairly large project here, you
&gt;&gt; might
&gt;&gt;&gt;&gt;&gt;&gt; want to sign a contributor license agreement (CLA), and depending
&gt;&gt; on the
&gt;&gt;&gt;&gt;&gt;&gt; German copyright legislation, get also Heilbronn to sign a
&gt;&gt; corporate CLA.
&gt;&gt;&gt;&gt;&gt;&gt;  That, or Heilbronn (or you) need to, at the end of the project,
&gt;&gt; give a
&gt;&gt;&gt;&gt;&gt;&gt; software grant (SGA) to Apache Software Foundation.  But these  
&gt;&gt;&gt;&gt;&gt;&gt; are
&gt;&gt; not
&gt;&gt;&gt;&gt;&gt;&gt; biggies and can be tackled if/when we start merging ;-)
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; /Janne
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; On Dec 3, 2008, at 21:25 , Tilman Bender wrote:
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hi JSPWiki Devs,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I am a student at Heilbronn University in Germany (Some of you
&gt;&gt; might
&gt;&gt;&gt;&gt;&gt;&gt;&gt; know Christoph Sauer, who worked there.)
&gt;&gt;&gt;&gt;&gt;&gt;&gt; As pre-thesis for my diploma I want to enhance JSPWiki with
&gt;&gt; OpenID.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I am still pretty new to JSPWIki, OpenID and JAAS.
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I have worked my way through the official OpenID 2.0
&gt;&gt; Authentication
&gt;&gt;&gt;&gt;&gt;&gt;&gt; standard
&gt;&gt;&gt;&gt;&gt;&gt;&gt; and will do as well for Attributes Exchange.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; I would like to base my work on the 2.8.1 tag and
&gt;&gt;&gt;&gt;&gt;&gt;&gt; see to get it integrate into the trunk later. Is that the  
&gt;&gt;&gt;&gt;&gt;&gt;&gt; correct
&gt;&gt; way
&gt;&gt;&gt;&gt;&gt;&gt;&gt; to do it?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; As I see Andrew already spent quite some time on OpenID and did
&gt;&gt; some
&gt;&gt;&gt;&gt;&gt;&gt;&gt; preparations.
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Since I plan to get my diploma somday soon (say in 2009 ;-)),
I
&gt;&gt; have a
&gt;&gt;&gt;&gt;&gt;&gt;&gt; high personal interest
&gt;&gt;&gt;&gt;&gt;&gt;&gt; in getting OpenID into JSPWiki.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Summary:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; * I have time
&gt;&gt;&gt;&gt;&gt;&gt;&gt; * I have motivation
&gt;&gt;&gt;&gt;&gt;&gt;&gt; * I need some help to get started ;-)
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Any suggestions where to begin? I guess registration/profile
&gt;&gt; creation
&gt;&gt;&gt;&gt;&gt;&gt;&gt; would be first.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; kind regards
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Tilman Bender
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Student des Software Engineering
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hochschule Heilbronn
&gt;&gt;&gt;&gt;&gt;&gt;&gt; tbender@stud.hs-heilbronn.de
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;
&gt;
&gt; -------------------------------------------------------
&gt;
&gt; Fachinformationszentrum Karlsruhe, Gesellschaft fÃ¼r wissenschaftlich 
&gt; -technische Information mbH.
&gt; Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht  
&gt; Mannheim HRB 101892.
&gt; GeschÃ¤ftsfÃ¼hrerin: Sabine BrÃ¼nger-Weilandt.
&gt; Vorsitzender des Aufsichtsrats: MinR Hermann Riehl.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: OpenID support in JSPWiki?</title>
<author><name>&quot;Schenk, Andre&quot; &lt;Andre.Schenk@FIZ-Karlsruhe.DE&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c561B608813F3E7448D792A51EF2AB03E039665C4@EXCLUSTER.fiz-karlsruhe.de%3e"/>
<id>urn:uuid:%3c561B608813F3E7448D792A51EF2AB03E039665C4@EXCLUSTER-fiz-karlsruhe-de%3e</id>
<updated>2009-12-08T17:30:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi developers,

just a short message from me, that supplying the WikiEngine to a custom login module now works
with JSPWiki 2.8.3. Many thanks for that!!!

Best regards,

André
--------------------------
André Schenk
ePublishing &amp; eScience
Development &amp; Applied Research
Phone +49 7247 808-215
Fax +49 7247 808-133
Andre.Schenk@fiz-karlsruhe.de


FIZ Karlsruhe
Hermann-von-Helmholtz-Platz 1
76344 Eggenstein-Leopoldshafen, Germany

www.fiz-karlsruhe.de
---------------------------------------
 

&gt; -----Original Message-----
&gt; From: Andrew Jaquith [mailto:andrew.r.jaquith@gmail.com]
&gt; Sent: Thursday, March 26, 2009 4:39 AM
&gt; To: jspwiki-dev@incubator.apache.org; Schenk, Andre
&gt; Subject: Re: OpenID support in JSPWiki?
&gt; 
&gt; Hi Tilman --
&gt; 
&gt; Your analysis is correct. You would need to get obtain the HttpRequest
&gt; from WikiCallbackHandler, which at the moment it does not know how to
&gt; supply. We have had some other questions about this recently, notably
&gt; Andre Schenk's desire to be able to obtain a reference to the
&gt; WikiEngine from inside his custom LoginModule.
&gt; 
&gt; In both cases, the common thread is that we need to supply additional
&gt; callbacks to WikiCallbackHandler. I'm inclined to fix this in 2.8.2,
&gt; by simply adding in support for the HttpRequestCallback. That should
&gt; meet your needs, no?
&gt; 
&gt; It should also meet Andre's, indirectly, in the sense that if you have
&gt; an HttpRequest you can fairly easily retrieve the WikiEngine also (by
&gt; passing getSession().getServletContext() to WikiEngine.getInstance()).
&gt; 
&gt; Andrew
&gt; 
&gt; On Wed, Mar 25, 2009 at 7:27 AM, Tilman Bender
&gt; &lt;tbender@stud.hs-heilbronn.de&gt; wrote:
&gt; &gt; Hi Andrew,
&gt; &gt;
&gt; &gt; Thanks for your help!
&gt; &gt;
&gt; &gt; Let's see if I got it right:
&gt; &gt;
&gt; &gt; - My OpenidAssertionLoginModule need the data from the HttpPRequest
&gt; &gt; - The way to obtain this data is via HttpReuqestCallback
&gt; &gt;
&gt; &gt; From what I can see so far, the HttpReuqest in HttpRequestCallBack is
&gt; only
&gt; &gt; set in WebContainerCallbackHandler, which is used by:
&gt; &gt;
&gt; &gt; -WebContainerLoginModule
&gt; &gt; -CookieAssertionLoginModule
&gt; &gt; - AnonymousLoginModule
&gt; &gt;
&gt; &gt; So as I get it, I would have to either use this CallBackHandler,
&gt; instead of
&gt; &gt; WikiCallBackHandler
&gt; &gt; or to find a way to set the HttpRequest in HttpRequestCallBack from
&gt; within
&gt; &gt; WikiCallBackHandler.
&gt; &gt;
&gt; &gt; Question is: How can I access the request from within,
&gt; WikiCallBackHandler?
&gt; &gt;
&gt; &gt; I agree on the attribute exchange on login, allthough I would see
&gt; that as a
&gt; &gt; further improvement to the basic OpenID
&gt; &gt; functionality.
&gt; &gt;
&gt; &gt; For the UI side, I attached some mocks. This is what my UI currenlty
&gt; looks
&gt; &gt; like, but it is far from complete. Comments
&gt; &gt; welcome :-)
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; kind regards
&gt; &gt;
&gt; &gt; Tilman Bender
&gt; &gt; Student des Software Engineering
&gt; &gt; Hochschule Heilbronn
&gt; &gt; tbender@stud.hs-heilbronn.de
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; Am 20.03.2009 um 14:43 schrieb Andrew Jaquith:
&gt; &gt;
&gt; &gt;&gt; Tilman--
&gt; &gt;&gt;
&gt; &gt;&gt; Thanks for your e-mail, and for your good work.
&gt; &gt;&gt;
&gt; &gt;&gt; Your thought-process on this seems sound. Agreed, the first phase of
&gt; login
&gt; &gt;&gt; (OP discovery + redirect) should be handled by a custom JSP. The
&gt; second
&gt; &gt;&gt; phase (validation) should be handled by JAAS.
&gt; &gt;&gt;
&gt; &gt;&gt; To do this, you will need to get the HttpRequest object. JSPWiki
&gt; does have
&gt; &gt;&gt; an HttpRequestCallback that can supply this, at least in the custom
&gt; &gt;&gt; authentication case. You will need to check to see if
&gt; WikiCallbackHandler
&gt; &gt;&gt; passes that callback. If not, it is trivial to patch the code to do
&gt; this.
&gt; &gt;&gt;
&gt; &gt;&gt; So, I think this is basically in line with what you proposed.
&gt; &gt;&gt;
&gt; &gt;&gt; Some other thoughts:
&gt; &gt;&gt;
&gt; &gt;&gt; At login time, it would be highly desirable to use SREG or OpenID
&gt; &gt;&gt; attribute exchange to pull the user's name and e-mail address and
&gt; use the
&gt; &gt;&gt; returned values to update their profile, which would ensure that
&gt; their
&gt; &gt;&gt; information is always current. The login ID used to look up the
&gt; profile
&gt; &gt;&gt; should be the user's OpenID URL... I think.
&gt; &gt;&gt;
&gt; &gt;&gt; On the UI side, we will need a special OpenID login page (JSP). The
&gt; &gt;&gt; regular login page could include this if desired.
&gt; &gt;&gt;
&gt; &gt;&gt; Andrew
&gt; &gt;&gt;
&gt; &gt;&gt; On Mar 18, 2009, at 7:02, Tilman Bender &lt;tbender@stud.hs-
&gt; heilbronn.de&gt;
&gt; &gt;&gt; wrote:
&gt; &gt;&gt;
&gt; &gt;&gt;&gt; Hey guys,
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; I am currently plaing with the 2.8.1 code and openid4java.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; But I am having a hard time trying to fiugre out where exactly to
&gt; hook in
&gt; &gt;&gt;&gt; the OpenID stuff.
&gt; &gt;&gt;&gt; The problem is (as also described in #JSPWIKI-94), that:
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; 1. To me it seems you cannot do the whole thing in JAAS:
&gt; &gt;&gt;&gt; OpenID as I understand it has two phases :
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Phase I:
&gt; &gt;&gt;&gt; - The user just submitted his openid identifier to our
&gt; login/registration
&gt; &gt;&gt;&gt; from.
&gt; &gt;&gt;&gt; - We do discovery on the identifier to find the Endpoint of his
&gt; OpenID
&gt; &gt;&gt;&gt; Provider (and check if the provider is in our whitelist)
&gt; &gt;&gt;&gt; - We redirect the user to his OpenID provider
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; So in this phase it makes no sense to me to use a JAAS-Module since
&gt; we
&gt; &gt;&gt;&gt; wouldn't be able to complete the login mehtod
&gt; &gt;&gt;&gt; as we do not know enough about the user yet (we do not know if his
&gt; &gt;&gt;&gt; identity is asserted by the OpenID Provider).
&gt; &gt;&gt;&gt; So I currently do this via JSP  and Scriptlets (no custom tag yet).
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Phase II:
&gt; &gt;&gt;&gt; - The user is redirected back to us by his OpenID Provider
&gt; &gt;&gt;&gt; - We connect to the OpenID Provider to verify the assertion that
&gt; was
&gt; &gt;&gt;&gt; passed along the request (be it a positive or negative assertion)
&gt; &gt;&gt;&gt; - Now we know enough about the user to log them in.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; I currently try to use UserManager.setUserProfile in this
&gt; situation. Now
&gt; &gt;&gt;&gt; here comes my Problem:
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; I would like to do all the assertion verifiaction in a JAAS-Module,
&gt; but
&gt; &gt;&gt;&gt; for that I need all the request
&gt; &gt;&gt;&gt; data, which I do not have in the setUserProfile-Method.
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; So currently I am stuck. Before I start to wildly mess the API: Am
&gt; I
&gt; &gt;&gt;&gt; taking the right direction?
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Tilman Bender
&gt; &gt;&gt;&gt; Student des Software Engineering
&gt; &gt;&gt;&gt; Hochschule Heilbronn
&gt; &gt;&gt;&gt; tbender@stud.hs-heilbronn.de
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt; Am 03.12.2008 um 21:50 schrieb Janne Jalkanen:
&gt; &gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; Hi!
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; Thanks for the effort - sounds like a worthy project!
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; I think you will save yourself a lot of grief if you work on the
&gt; 2.8.1
&gt; &gt;&gt;&gt;&gt; branch, since the trunk is now the subject of a lot of changes -
&gt; but note
&gt; &gt;&gt;&gt;&gt; that we *will* be making some rather major changes for 3.0, so you
&gt; may face
&gt; &gt;&gt;&gt;&gt; a small porting effort towards the end.  We certainly wouldn't
&gt; like to land
&gt; &gt;&gt;&gt;&gt; a major feature in 2.8 branch anymore, since it's rather stable.
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; I think the first thing you could do is to outline your plan as to
&gt; how
&gt; &gt;&gt;&gt;&gt; exactly are you planning to hook into our structures - a good
&gt; place to start
&gt; &gt;&gt;&gt;&gt; is probably the Security documentation at
&gt; &gt;&gt;&gt;&gt; http://doc.jspwiki.org/2.8/wiki/Security, and then asking a lot of
&gt; questions
&gt; &gt;&gt;&gt;&gt; on this mailing list.
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; Also, since we are talking about a fairly large project here, you
&gt; might
&gt; &gt;&gt;&gt;&gt; want to sign a contributor license agreement (CLA), and depending
&gt; on the
&gt; &gt;&gt;&gt;&gt; German copyright legislation, get also Heilbronn to sign a
&gt; corporate CLA.
&gt; &gt;&gt;&gt;&gt;  That, or Heilbronn (or you) need to, at the end of the project,
&gt; give a
&gt; &gt;&gt;&gt;&gt; software grant (SGA) to Apache Software Foundation.  But these are
&gt; not
&gt; &gt;&gt;&gt;&gt; biggies and can be tackled if/when we start merging ;-)
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; /Janne
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt; On Dec 3, 2008, at 21:25 , Tilman Bender wrote:
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; Hi JSPWiki Devs,
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; I am a student at Heilbronn University in Germany (Some of you
&gt; might
&gt; &gt;&gt;&gt;&gt;&gt; know Christoph Sauer, who worked there.)
&gt; &gt;&gt;&gt;&gt;&gt; As pre-thesis for my diploma I want to enhance JSPWiki with
&gt; OpenID.
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; I am still pretty new to JSPWIki, OpenID and JAAS.
&gt; &gt;&gt;&gt;&gt;&gt; I have worked my way through the official OpenID 2.0
&gt; Authentication
&gt; &gt;&gt;&gt;&gt;&gt; standard
&gt; &gt;&gt;&gt;&gt;&gt; and will do as well for Attributes Exchange.
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; I would like to base my work on the 2.8.1 tag and
&gt; &gt;&gt;&gt;&gt;&gt; see to get it integrate into the trunk later. Is that the correct
&gt; way
&gt; &gt;&gt;&gt;&gt;&gt; to do it?
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; As I see Andrew already spent quite some time on OpenID and did
&gt; some
&gt; &gt;&gt;&gt;&gt;&gt; preparations.
&gt; &gt;&gt;&gt;&gt;&gt; Since I plan to get my diploma somday soon (say in 2009 ;-)), I
&gt; have a
&gt; &gt;&gt;&gt;&gt;&gt; high personal interest
&gt; &gt;&gt;&gt;&gt;&gt; in getting OpenID into JSPWiki.
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; Summary:
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; * I have time
&gt; &gt;&gt;&gt;&gt;&gt; * I have motivation
&gt; &gt;&gt;&gt;&gt;&gt; * I need some help to get started ;-)
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; Any suggestions where to begin? I guess registration/profile
&gt; creation
&gt; &gt;&gt;&gt;&gt;&gt; would be first.
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; kind regards
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt; Tilman Bender
&gt; &gt;&gt;&gt;&gt;&gt; Student des Software Engineering
&gt; &gt;&gt;&gt;&gt;&gt; Hochschule Heilbronn
&gt; &gt;&gt;&gt;&gt;&gt; tbender@stud.hs-heilbronn.de
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;&gt;
&gt; &gt;&gt;&gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;


-------------------------------------------------------

Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische Information
mbH. 
Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 101892. 
Geschäftsführerin: Sabine Brünger-Weilandt. 
Vorsitzender des Aufsichtsrats: MinR Hermann Riehl.




</pre>
</div>
</content>
</entry>
<entry>
<title>RE: [jira] Created: (JSPWIKI-618) Allow Administrators to override attachment.maxsize</title>
<author><name>&quot;Dalen, Andre van&quot; &lt;andre.van.dalen@siemens.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3cB239B3B087CDEA4AADF456184749E79201EB51B7@MCHP7IEA.ww902.siemens.net%3e"/>
<id>urn:uuid:%3cB239B3B087CDEA4AADF456184749E79201EB51B7@MCHP7IEA-ww902-siemens-net%3e</id>
<updated>2009-12-08T16:35:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

This might work counterproductive: Once users find out this can be overruled, 
the maximum setting will have lost its enforcing power and they will try to find
to get out of the limit themselves. (Possible by harrasing the admin until she
uploads the offending attachments.)

-----Original Message-----
From: Jürgen Weber (JIRA) [mailto:jira@apache.org] 
Sent: dinsdag 8 december 2009 14:55
To: jspwiki-dev@incubator.apache.org
Subject: [jira] Created: (JSPWIKI-618) Allow Administrators to override attachment.maxsize

Allow Administrators to override attachment.maxsize
---------------------------------------------------

                 Key: JSPWIKI-618
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-618
             Project: JSPWiki
          Issue Type: Improvement
          Components: Core &amp; storage
            Reporter: Jürgen Weber


I think limiting attachment sizes is a good thing. 
But Administrators should be able to override it, i.e. be able to upload bigger attachments
than attachment.maxsize.

Workaround: temporarily remove attachment.maxsize

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (JSPWIKI-618) Allow Administrators to override attachment.maxsize</title>
<author><name>=?utf-8?Q?J=C3=BCrgen_Weber_=28JIRA=29?= &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c2147209211.1260280518066.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2147209211-1260280518066-JavaMail-jira@brutus%3e</id>
<updated>2009-12-08T13:55:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Allow Administrators to override attachment.maxsize
---------------------------------------------------

                 Key: JSPWIKI-618
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-618
             Project: JSPWiki
          Issue Type: Improvement
          Components: Core &amp; storage
            Reporter: JÃ¼rgen Weber


I think limiting attachment sizes is a good thing. 
But Administrators should be able to override it, i.e. be able to upload bigger attachments
than attachment.maxsize.

Workaround: temporarily remove attachment.maxsize

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (JSPWIKI-617) Attachments unsearchable after renaming a page</title>
<author><name>&quot;Harry Metske (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c85509020.1260125778277.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c85509020-1260125778277-JavaMail-jira@brutus%3e</id>
<updated>2009-12-06T18:56:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harry Metske resolved JSPWIKI-617.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.8.4
         Assignee: Harry Metske

Fixed in 2.8.4-svn-4

&gt; Attachments unsearchable after renaming a page 
&gt; -----------------------------------------------
&gt;
&gt;                 Key: JSPWIKI-617
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-617
&gt;             Project: JSPWiki
&gt;          Issue Type: Bug
&gt;         Environment: Apache Tomcat 5.5.28 Server
&gt; JSPWiki 2.8.3
&gt;            Reporter: Benedict Xu
&gt;            Assignee: Harry Metske
&gt;             Fix For: 2.8.4
&gt;
&gt;   Original Estimate: 336h
&gt;  Remaining Estimate: 336h
&gt;
&gt; After renaming a page, all its attachments become unsearchable, but newly uploaded attachment
is searchable. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (JSPWIKI-617) Attachments unsearchable after renaming a page</title>
<author><name>&quot;Benedict Xu (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c788591617.1259904920709.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c788591617-1259904920709-JavaMail-jira@brutus%3e</id>
<updated>2009-12-04T05:35:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Attachments unsearchable after renaming a page 
-----------------------------------------------

                 Key: JSPWIKI-617
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-617
             Project: JSPWiki
          Issue Type: Bug
         Environment: Apache Tomcat 5.5.28 Server
JSPWiki 2.8.3
            Reporter: Benedict Xu


After renaming a page, all its attachments become unsearchable, but newly uploaded attachment
is searchable. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (JSPWIKI-616) WikiPageEvent should use WikiPath instead of String</title>
<author><name>&quot;Janne Jalkanen (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c784040369.1259873360721.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c784040369-1259873360721-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T20:49:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Janne Jalkanen resolved JSPWIKI-616.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Fixed in 3.0.0-svn-189

&gt; WikiPageEvent should use WikiPath instead of String
&gt; ---------------------------------------------------
&gt;
&gt;                 Key: JSPWIKI-616
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-616
&gt;             Project: JSPWiki
&gt;          Issue Type: Improvement
&gt;          Components: Core &amp; storage
&gt;    Affects Versions: 3.0
&gt;            Reporter: Janne Jalkanen
&gt;            Assignee: Janne Jalkanen
&gt;             Fix For: 3.0
&gt;
&gt;
&gt; To allow for wikispace events to occur, WikiPageEvent should utilize WikiPath as the
page identifier instead of String.  That, or an UUID, but I think WikiPath is nicer from the
debug point of view. UUIDs should be used for long-term storage.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3cBC0FC8DA-DBD0-42B3-9DE7-8B23408266D3@ecyrd.com%3e"/>
<id>urn:uuid:%3cBC0FC8DA-DBD0-42B3-9DE7-8B23408266D3@ecyrd-com%3e</id>
<updated>2009-12-03T08:20:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

No need, it's solved in the current trunk :)

/Janne

On Nov 29, 2009, at 18:53 , Craig L Russell wrote:

&gt; Or file a JIRA.
&gt;
&gt; Craig
&gt;
&gt; On Nov 29, 2009, at 2:37 AM, Harry Metske wrote:
&gt;
&gt;&gt; I like to see it too, please email, or maybe stick it somewhere on
&gt;&gt; www.jspwiki.org
&gt;&gt;
&gt;&gt; regards,
&gt;&gt; Harry
&gt;&gt;
&gt;&gt; 2009/11/29 Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;
&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Sent it to you directly - others, let me know if you want to see it.
&gt;&gt;&gt;
&gt;&gt;&gt; Well, we've got JSPWikiTestBase class, which extends TestCase.  So  
&gt;&gt;&gt; we could
&gt;&gt;&gt; use that as well and just start extending our tests from it  
&gt;&gt;&gt; instead directly
&gt;&gt;&gt; from TestCase.
&gt;&gt;&gt;
&gt;&gt;&gt; /Janne
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Nov 29, 2009, at 00:52 , Andrew Jaquith wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; Janne, I think your attachment got stripped out. Can you re-send
&gt;&gt;&gt;&gt; (maybe directly?)
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I agree that we ought to figure out some way of using some sort of
&gt;&gt;&gt;&gt; singleton (or singleton-per-wikiengine) object to stash the  
&gt;&gt;&gt;&gt; results of
&gt;&gt;&gt;&gt; findImplementations(). Not sure how this would work with JUnit,  
&gt;&gt;&gt;&gt; though
&gt;&gt;&gt;&gt; -- I should do some research. What we'd need is the ability to  
&gt;&gt;&gt;&gt; create
&gt;&gt;&gt;&gt; test fixture objects that persist across the entire run...
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Andrew
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&gt;&gt;&gt;&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Folks, here's a screenshot from JProfiler.  This should explain  
&gt;&gt;&gt;&gt;&gt; why our
&gt;&gt;&gt;&gt;&gt; tests are fairly slow...
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Simply put; we're not using EhCache, and also we're calling  
&gt;&gt;&gt;&gt;&gt; Stripes
&gt;&gt;&gt;&gt;&gt; ResolverUtil.findImplementations twice per WikiEngine startup.   
&gt;&gt;&gt;&gt;&gt; So it
&gt;&gt;&gt;&gt;&gt; might
&gt;&gt;&gt;&gt;&gt; make sense to move findImplementations() calls into a singleton or
&gt;&gt;&gt;&gt;&gt; something.  But I'm not too sure whether it makes sense  
&gt;&gt;&gt;&gt;&gt; considering
&gt;&gt;&gt;&gt;&gt; restarts
&gt;&gt;&gt;&gt;&gt; - or perhaps restarts should clean away the singleton cache?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; (This is after about 700 tests were run; I didn't want to wait  
&gt;&gt;&gt;&gt;&gt; until they
&gt;&gt;&gt;&gt;&gt; had all finished, since it had already taken about two hours with
&gt;&gt;&gt;&gt;&gt; profiling
&gt;&gt;&gt;&gt;&gt; on...)
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Priha can be seen taking quite a lot of time as well, but that's  
&gt;&gt;&gt;&gt;&gt; because
&gt;&gt;&gt;&gt;&gt; it
&gt;&gt;&gt;&gt;&gt; needs to hit the disk all the time.  More optimization for  
&gt;&gt;&gt;&gt;&gt; FileProvider
&gt;&gt;&gt;&gt;&gt; is
&gt;&gt;&gt;&gt;&gt; needed, but partly it's also because we're not caching anything.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; /Janne
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;
&gt; Craig L Russell
&gt; Architect, Sun Java Enterprise System http://db.apache.org/jdo
&gt; 408 276-5638 mailto:Craig.Russell@sun.com
&gt; P.S. A good JDO? O, Gasp!
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (JSPWIKI-614) Create a Piwik plugin</title>
<author><name>&quot;Derek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c1658514037.1259827822149.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1658514037-1259827822149-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T08:10:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Derek resolved JSPWIKI-614.
---------------------------

    Resolution: Not A Problem

Thanks that work's a treat.  Have marked this a resolved.

&gt; Create a Piwik plugin 
&gt; ----------------------
&gt;
&gt;                 Key: JSPWIKI-614
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
&gt;             Project: JSPWiki
&gt;          Issue Type: New Feature
&gt;          Components: Plugins
&gt;            Reporter: Derek
&gt;            Priority: Minor
&gt;
&gt; Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of
users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (JSPWIKI-614) Create a Piwik plugin</title>
<author><name>&quot;Harry Metske (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c2114268663.1259786781308.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2114268663-1259786781308-JavaMail-jira@brutus%3e</id>
<updated>2009-12-02T20:46:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12784993#action_12784993
] 

Harry Metske commented on JSPWIKI-614:
--------------------------------------

localheader.jsp is a dummy jsp that is intended for this purpose, as mentioned in the comment
of it :

{noformat} 
&lt;%-- This is a local JSP header file, which you can override in your own template
     if you want to put something in the head-section of the page.  This page is
     included after the commonheader.jsp.

     The JSPWiki default template and distribution will never have anything here
     except this comment.  Therefore it's safe to override without accidentally
     removing any functionality.

     Some things which you might want to put here would e.g. be your site tracker
     Javascript (like Google Analytics, or Sitemeter, or whatever).

     The safest trick would be to create your own template (say "sitetemplate") directory,
     and just put a new localheader.jsp in it.  JSPWiki will always use the
     files in the "default" template, if it cannot locate an equivalent file in
     your defined template directory.
     --%&gt;
{noformat} 

As an admin you can stick in the right piwik standard js in here with the required parameters.

&gt; Create a Piwik plugin 
&gt; ----------------------
&gt;
&gt;                 Key: JSPWIKI-614
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
&gt;             Project: JSPWiki
&gt;          Issue Type: New Feature
&gt;          Components: Plugins
&gt;            Reporter: Derek
&gt;            Priority: Minor
&gt;
&gt; Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of
users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (JSPWIKI-614) Create a Piwik plugin</title>
<author><name>&quot;Derek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c723670859.1259743820767.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c723670859-1259743820767-JavaMail-jira@brutus%3e</id>
<updated>2009-12-02T08:50:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12784710#action_12784710
] 

Derek commented on JSPWIKI-614:
-------------------------------

Your assumption is correct.  I'm looking for something that allows me to define a site id,
Piwik server and port and have that included in the localheader.jsp.  Either that or a means,
via an admin screen, to allow the admin to include the Piwik provided javascript that would
be included in each page.

Example of the standard js is as follows:


&lt;!-- Piwik --&gt;
&lt;script type="text/javascript"&gt;
var pkBaseURL = (("https:" == document.location.protocol) ? "https://{$PIWIK_URL}" : "http://{$PIWIK_URL}");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
&lt;/script&gt;&lt;script type="text/javascript"&gt;
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$IDSITE});
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
&lt;/script&gt;
&lt;!-- End Piwik Tag --&gt;


&gt; Create a Piwik plugin 
&gt; ----------------------
&gt;
&gt;                 Key: JSPWIKI-614
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
&gt;             Project: JSPWiki
&gt;          Issue Type: New Feature
&gt;          Components: Plugins
&gt;            Reporter: Derek
&gt;            Priority: Minor
&gt;
&gt; Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of
users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing DeleteActionBean tests</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c0B8BD879-66BA-49B3-AD3B-E7B3E21D2908@ecyrd.com%3e"/>
<id>urn:uuid:%3c0B8BD879-66BA-49B3-AD3B-E7B3E21D2908@ecyrd-com%3e</id>
<updated>2009-12-01T22:56:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

The fix is in the trunk now. Not everything is working yet; I'm seeing  
oddities with page content (e.g. WikiengineTest.deleteVersion()), but  
I think those are fairly easy to figure out now.

/Janne

On Dec 1, 2009, at 23:51 , Janne Jalkanen wrote:

&gt;
&gt; Got it. JCRWikiPage.getJCRNode() creates the page if it does not  
&gt; exist.  This has the unfortunate side effect that *any* calls to  
&gt; WikiPage after it has been deleted do not result in exceptions, but  
&gt; they do result in a new Node being created, which in turn screws up  
&gt; quite a lot of stuff...
&gt;
&gt; The fun thing is, the commit was marked as "now all unit tests  
&gt; run" ;-)
&gt;
&gt; /Janne
&gt;
&gt; On Dec 1, 2009, at 19:59 , Andrew Jaquith wrote:
&gt;
&gt;&gt; The easy way to test this hypothesis, which is an interesting one,
&gt;&gt; would be to unhook the ReferenceManager event listener and see if it
&gt;&gt; makes a difference. The RefMgr tests will fail, but perhaps some of
&gt;&gt; the other failing tests will succeed.
&gt;&gt;
&gt;&gt; Generally, though, we should definitely do one of two things: either
&gt;&gt; create a separate "updater" JCR session for the ReferenceManager  
&gt;&gt; event
&gt;&gt; listener, and have it do its own saves, OR remove all save()s from
&gt;&gt; ReferenceManager entirely. Right now it does saves in the context of
&gt;&gt; the caller's JCR session, which doesn't feel right.
&gt;&gt;
&gt;&gt; Andrew
&gt;&gt;
&gt;&gt; On Tue, Dec 1, 2009 at 11:25 AM, Janne Jalkanen
&gt;&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; The test seems correct.  There seems to be something fairly odd  
&gt;&gt;&gt; going on
&gt;&gt;&gt; with respect to versioning; for example,  
&gt;&gt;&gt; ContentManagerTest.deleteAllPages()
&gt;&gt;&gt; fails because it deletes all pages ok, but at the last instant it  
&gt;&gt;&gt; recreates
&gt;&gt;&gt; the pages as empty.
&gt;&gt;&gt;
&gt;&gt;&gt; My guess is that it was a bug in ContentManager that priha 0.6.x  
&gt;&gt;&gt; revealed;
&gt;&gt;&gt; and I also have a nagging suspicion it has something to do with
&gt;&gt;&gt; ReferenceManager, as it seems to me that the pages are recreated  
&gt;&gt;&gt; by the
&gt;&gt;&gt; event handlers as a side effect.  This could happen if the page is  
&gt;&gt;&gt; first
&gt;&gt;&gt; deleted, then save()d, then a event handler adds a property to it  
&gt;&gt;&gt; and
&gt;&gt;&gt; recreates the Node as a sanity check or something. Haven't yet had  
&gt;&gt;&gt; time to
&gt;&gt;&gt; peek into it very deeply.
&gt;&gt;&gt;
&gt;&gt;&gt; /Janne
&gt;&gt;&gt;
&gt;&gt;&gt; On Dec 1, 2009, at 15:44 , Andrew Jaquith wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Janne, can I get a quick sanity check on something?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;     // Save two versions of the test page
&gt;&gt;&gt;&gt;      m_engine.saveText( "Test", "This is the first version" );
&gt;&gt;&gt;&gt;      m_engine.saveText( "Test", "This is the second version" );
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;      // Make sure they both saved ok
&gt;&gt;&gt;&gt;      WikiPage v1 = m_engine.getPage( "Test", 1 );
&gt;&gt;&gt;&gt;      WikiPage v2 = m_engine.getPage( "Test", 2 );
&gt;&gt;&gt;&gt;      assertNotNull( "Did not save page Test, v1!", v1 );
&gt;&gt;&gt;&gt;      assertNotNull( "Did not save page Test, v2!", v2 );
&gt;&gt;&gt;&gt;      assertEquals( "This is the first version",
&gt;&gt;&gt;&gt; m_engine.getPureText( v1 ).trim() );
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The last assertion is failing. When WikiEngine.getPureText(v1) is
&gt;&gt;&gt;&gt; called, it is returning "This is the second version", which seems
&gt;&gt;&gt;&gt; wrong . It should return the first version, right?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Back when the trunk tests all ran clean (aka "the good old days"),
&gt;&gt;&gt;&gt; this test worked also. So it seems to me that some recent changes
&gt;&gt;&gt;&gt; caused the results to change. So was the test wrong all along, or  
&gt;&gt;&gt;&gt; is
&gt;&gt;&gt;&gt; there a bug somewhere?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Andrew
&gt;&gt;&gt;
&gt;&gt;&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing DeleteActionBean tests</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c47E14DA9-E498-4572-B0C6-1714DC0641FB@ecyrd.com%3e"/>
<id>urn:uuid:%3c47E14DA9-E498-4572-B0C6-1714DC0641FB@ecyrd-com%3e</id>
<updated>2009-12-01T21:51:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Got it. JCRWikiPage.getJCRNode() creates the page if it does not  
exist.  This has the unfortunate side effect that *any* calls to  
WikiPage after it has been deleted do not result in exceptions, but  
they do result in a new Node being created, which in turn screws up  
quite a lot of stuff...

The fun thing is, the commit was marked as "now all unit tests run" ;-)

/Janne

On Dec 1, 2009, at 19:59 , Andrew Jaquith wrote:

&gt; The easy way to test this hypothesis, which is an interesting one,
&gt; would be to unhook the ReferenceManager event listener and see if it
&gt; makes a difference. The RefMgr tests will fail, but perhaps some of
&gt; the other failing tests will succeed.
&gt;
&gt; Generally, though, we should definitely do one of two things: either
&gt; create a separate "updater" JCR session for the ReferenceManager event
&gt; listener, and have it do its own saves, OR remove all save()s from
&gt; ReferenceManager entirely. Right now it does saves in the context of
&gt; the caller's JCR session, which doesn't feel right.
&gt;
&gt; Andrew
&gt;
&gt; On Tue, Dec 1, 2009 at 11:25 AM, Janne Jalkanen
&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt;
&gt;&gt; The test seems correct.  There seems to be something fairly odd  
&gt;&gt; going on
&gt;&gt; with respect to versioning; for example,  
&gt;&gt; ContentManagerTest.deleteAllPages()
&gt;&gt; fails because it deletes all pages ok, but at the last instant it  
&gt;&gt; recreates
&gt;&gt; the pages as empty.
&gt;&gt;
&gt;&gt; My guess is that it was a bug in ContentManager that priha 0.6.x  
&gt;&gt; revealed;
&gt;&gt; and I also have a nagging suspicion it has something to do with
&gt;&gt; ReferenceManager, as it seems to me that the pages are recreated by  
&gt;&gt; the
&gt;&gt; event handlers as a side effect.  This could happen if the page is  
&gt;&gt; first
&gt;&gt; deleted, then save()d, then a event handler adds a property to it and
&gt;&gt; recreates the Node as a sanity check or something. Haven't yet had  
&gt;&gt; time to
&gt;&gt; peek into it very deeply.
&gt;&gt;
&gt;&gt; /Janne
&gt;&gt;
&gt;&gt; On Dec 1, 2009, at 15:44 , Andrew Jaquith wrote:
&gt;&gt;
&gt;&gt;&gt; Janne, can I get a quick sanity check on something?
&gt;&gt;&gt;
&gt;&gt;&gt;      // Save two versions of the test page
&gt;&gt;&gt;       m_engine.saveText( "Test", "This is the first version" );
&gt;&gt;&gt;       m_engine.saveText( "Test", "This is the second version" );
&gt;&gt;&gt;
&gt;&gt;&gt;       // Make sure they both saved ok
&gt;&gt;&gt;       WikiPage v1 = m_engine.getPage( "Test", 1 );
&gt;&gt;&gt;       WikiPage v2 = m_engine.getPage( "Test", 2 );
&gt;&gt;&gt;       assertNotNull( "Did not save page Test, v1!", v1 );
&gt;&gt;&gt;       assertNotNull( "Did not save page Test, v2!", v2 );
&gt;&gt;&gt;       assertEquals( "This is the first version",
&gt;&gt;&gt; m_engine.getPureText( v1 ).trim() );
&gt;&gt;&gt;
&gt;&gt;&gt; The last assertion is failing. When WikiEngine.getPureText(v1) is
&gt;&gt;&gt; called, it is returning "This is the second version", which seems
&gt;&gt;&gt; wrong . It should return the first version, right?
&gt;&gt;&gt;
&gt;&gt;&gt; Back when the trunk tests all ran clean (aka "the good old days"),
&gt;&gt;&gt; this test worked also. So it seems to me that some recent changes
&gt;&gt;&gt; caused the results to change. So was the test wrong all along, or is
&gt;&gt;&gt; there a bug somewhere?
&gt;&gt;&gt;
&gt;&gt;&gt; Andrew
&gt;&gt;
&gt;&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (JSPWIKI-614) Create a Piwik plugin</title>
<author><name>&quot;Harry Metske (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c982977200.1259691260781.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c982977200-1259691260781-JavaMail-jira@brutus%3e</id>
<updated>2009-12-01T18:14:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12784315#action_12784315
] 

Harry Metske commented on JSPWIKI-614:
--------------------------------------

We first need to make clear what a "plugin" is:

- piwik has different types of plugins, plugins that generate the piwik javascript tag, and
plugins on the piwik server for all kinds of functionality like for instance a translator
plugin
- a JSPWiki plugin is a piece of code that gets executed whenever you include it's name in
a page [{MyWonderFullPlugin}]

My assumption is that you need something in JSPWiki that generated the piwik javascript tag
in all html generated by JSPWiki,  in that case a jspwiki plugin is not appropriate (you don;t
want to stick plugin tags on every page)

I think we already have something like that for Google Analytics, it is a modification on
localheader.jsp I think, for piwik you could do the same.

Is this my correct understanding ?





&gt; Create a Piwik plugin 
&gt; ----------------------
&gt;
&gt;                 Key: JSPWIKI-614
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
&gt;             Project: JSPWiki
&gt;          Issue Type: New Feature
&gt;          Components: Plugins
&gt;            Reporter: Derek
&gt;            Priority: Minor
&gt;
&gt; Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of
users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing DeleteActionBean tests</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3cb90102160912010959sabbc1dsff321e076b778b2@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb90102160912010959sabbc1dsff321e076b778b2@mail-gmail-com%3e</id>
<updated>2009-12-01T17:59:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The easy way to test this hypothesis, which is an interesting one,
would be to unhook the ReferenceManager event listener and see if it
makes a difference. The RefMgr tests will fail, but perhaps some of
the other failing tests will succeed.

Generally, though, we should definitely do one of two things: either
create a separate "updater" JCR session for the ReferenceManager event
listener, and have it do its own saves, OR remove all save()s from
ReferenceManager entirely. Right now it does saves in the context of
the caller's JCR session, which doesn't feel right.

Andrew

On Tue, Dec 1, 2009 at 11:25 AM, Janne Jalkanen
&lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;
&gt; The test seems correct.  There seems to be something fairly odd going on
&gt; with respect to versioning; for example, ContentManagerTest.deleteAllPages()
&gt; fails because it deletes all pages ok, but at the last instant it recreates
&gt; the pages as empty.
&gt;
&gt; My guess is that it was a bug in ContentManager that priha 0.6.x revealed;
&gt; and I also have a nagging suspicion it has something to do with
&gt; ReferenceManager, as it seems to me that the pages are recreated by the
&gt; event handlers as a side effect.  This could happen if the page is first
&gt; deleted, then save()d, then a event handler adds a property to it and
&gt; recreates the Node as a sanity check or something. Haven't yet had time to
&gt; peek into it very deeply.
&gt;
&gt; /Janne
&gt;
&gt; On Dec 1, 2009, at 15:44 , Andrew Jaquith wrote:
&gt;
&gt;&gt; Janne, can I get a quick sanity check on something?
&gt;&gt;
&gt;&gt;      // Save two versions of the test page
&gt;&gt;       m_engine.saveText( "Test", "This is the first version" );
&gt;&gt;       m_engine.saveText( "Test", "This is the second version" );
&gt;&gt;
&gt;&gt;       // Make sure they both saved ok
&gt;&gt;       WikiPage v1 = m_engine.getPage( "Test", 1 );
&gt;&gt;       WikiPage v2 = m_engine.getPage( "Test", 2 );
&gt;&gt;       assertNotNull( "Did not save page Test, v1!", v1 );
&gt;&gt;       assertNotNull( "Did not save page Test, v2!", v2 );
&gt;&gt;       assertEquals( "This is the first version",
&gt;&gt; m_engine.getPureText( v1 ).trim() );
&gt;&gt;
&gt;&gt; The last assertion is failing. When WikiEngine.getPureText(v1) is
&gt;&gt; called, it is returning "This is the second version", which seems
&gt;&gt; wrong . It should return the first version, right?
&gt;&gt;
&gt;&gt; Back when the trunk tests all ran clean (aka "the good old days"),
&gt;&gt; this test worked also. So it seems to me that some recent changes
&gt;&gt; caused the results to change. So was the test wrong all along, or is
&gt;&gt; there a bug somewhere?
&gt;&gt;
&gt;&gt; Andrew
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Failing DeleteActionBean tests</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3c9EC83A3C-FE3F-41DB-9185-E075F3BEF28B@ecyrd.com%3e"/>
<id>urn:uuid:%3c9EC83A3C-FE3F-41DB-9185-E075F3BEF28B@ecyrd-com%3e</id>
<updated>2009-12-01T16:25:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

The test seems correct.  There seems to be something fairly odd going  
on with respect to versioning; for example,  
ContentManagerTest.deleteAllPages() fails because it deletes all pages  
ok, but at the last instant it recreates the pages as empty.

My guess is that it was a bug in ContentManager that priha 0.6.x  
revealed; and I also have a nagging suspicion it has something to do  
with ReferenceManager, as it seems to me that the pages are recreated  
by the event handlers as a side effect.  This could happen if the page  
is first deleted, then save()d, then a event handler adds a property  
to it and recreates the Node as a sanity check or something. Haven't  
yet had time to peek into it very deeply.

/Janne

On Dec 1, 2009, at 15:44 , Andrew Jaquith wrote:

&gt; Janne, can I get a quick sanity check on something?
&gt;
&gt;       // Save two versions of the test page
&gt;        m_engine.saveText( "Test", "This is the first version" );
&gt;        m_engine.saveText( "Test", "This is the second version" );
&gt;
&gt;        // Make sure they both saved ok
&gt;        WikiPage v1 = m_engine.getPage( "Test", 1 );
&gt;        WikiPage v2 = m_engine.getPage( "Test", 2 );
&gt;        assertNotNull( "Did not save page Test, v1!", v1 );
&gt;        assertNotNull( "Did not save page Test, v2!", v2 );
&gt;        assertEquals( "This is the first version",
&gt; m_engine.getPureText( v1 ).trim() );
&gt;
&gt; The last assertion is failing. When WikiEngine.getPureText(v1) is
&gt; called, it is returning "This is the second version", which seems
&gt; wrong . It should return the first version, right?
&gt;
&gt; Back when the trunk tests all ran clean (aka "the good old days"),
&gt; this test worked also. So it seems to me that some recent changes
&gt; caused the results to change. So was the test wrong all along, or is
&gt; there a bug somewhere?
&gt;
&gt; Andrew



</pre>
</div>
</content>
</entry>
<entry>
<title>Failing DeleteActionBean tests</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200912.mbox/%3cb90102160912010544j29205f67ha3cf2e660fe42e4f@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb90102160912010544j29205f67ha3cf2e660fe42e4f@mail-gmail-com%3e</id>
<updated>2009-12-01T13:44:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Janne, can I get a quick sanity check on something?

       // Save two versions of the test page
        m_engine.saveText( "Test", "This is the first version" );
        m_engine.saveText( "Test", "This is the second version" );

        // Make sure they both saved ok
        WikiPage v1 = m_engine.getPage( "Test", 1 );
        WikiPage v2 = m_engine.getPage( "Test", 2 );
        assertNotNull( "Did not save page Test, v1!", v1 );
        assertNotNull( "Did not save page Test, v2!", v2 );
        assertEquals( "This is the first version",
m_engine.getPureText( v1 ).trim() );

The last assertion is failing. When WikiEngine.getPureText(v1) is
called, it is returning "This is the second version", which seems
wrong . It should return the first version, right?

Back when the trunk tests all ran clean (aka "the good old days"),
this test worked also. So it seems to me that some recent changes
caused the results to change. So was the test wrong all along, or is
there a bug somewhere?

Andrew


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (JSPWIKI-616) WikiPageEvent should use WikiPath instead of String</title>
<author><name>&quot;Janne Jalkanen (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c476581803.1259610620781.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c476581803-1259610620781-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T19:50:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
WikiPageEvent should use WikiPath instead of String
---------------------------------------------------

                 Key: JSPWIKI-616
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-616
             Project: JSPWiki
          Issue Type: Improvement
          Components: Core &amp; storage
    Affects Versions: 3.0
            Reporter: Janne Jalkanen


To allow for wikispace events to occur, WikiPageEvent should utilize WikiPath as the page
identifier instead of String.  That, or an UUID, but I think WikiPath is nicer from the debug
point of view. UUIDs should be used for long-term storage.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (JSPWIKI-615) The event documentation needs to document parameters too</title>
<author><name>&quot;Janne Jalkanen (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1834801785.1259610380624.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1834801785-1259610380624-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T19:46:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The event documentation needs to document parameters too
--------------------------------------------------------

                 Key: JSPWIKI-615
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-615
             Project: JSPWiki
          Issue Type: Improvement
          Components: Documentation &amp; website
    Affects Versions: 3.0
            Reporter: Janne Jalkanen
            Priority: Trivial


The event classes in org.apache.wiki.event don't describe what parameters each event expects
or uses, therefore making using them pretty much guesswork at RTFS level.

A simple task to improve, but let's make a note here lest we forget.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Craig L Russell &lt;Craig.Russell@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cE53A3AA1-66AF-4B10-8C68-6DB0DDD0482B@SUN.com%3e"/>
<id>urn:uuid:%3cE53A3AA1-66AF-4B10-8C68-6DB0DDD0482B@SUN-com%3e</id>
<updated>2009-11-29T16:53:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Or file a JIRA.

Craig

On Nov 29, 2009, at 2:37 AM, Harry Metske wrote:

&gt; I like to see it too, please email, or maybe stick it somewhere on
&gt; www.jspwiki.org
&gt;
&gt; regards,
&gt; Harry
&gt;
&gt; 2009/11/29 Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;
&gt;
&gt;&gt;
&gt;&gt; Sent it to you directly - others, let me know if you want to see it.
&gt;&gt;
&gt;&gt; Well, we've got JSPWikiTestBase class, which extends TestCase.  So  
&gt;&gt; we could
&gt;&gt; use that as well and just start extending our tests from it instead  
&gt;&gt; directly
&gt;&gt; from TestCase.
&gt;&gt;
&gt;&gt; /Janne
&gt;&gt;
&gt;&gt;
&gt;&gt; On Nov 29, 2009, at 00:52 , Andrew Jaquith wrote:
&gt;&gt;
&gt;&gt; Janne, I think your attachment got stripped out. Can you re-send
&gt;&gt;&gt; (maybe directly?)
&gt;&gt;&gt;
&gt;&gt;&gt; I agree that we ought to figure out some way of using some sort of
&gt;&gt;&gt; singleton (or singleton-per-wikiengine) object to stash the  
&gt;&gt;&gt; results of
&gt;&gt;&gt; findImplementations(). Not sure how this would work with JUnit,  
&gt;&gt;&gt; though
&gt;&gt;&gt; -- I should do some research. What we'd need is the ability to  
&gt;&gt;&gt; create
&gt;&gt;&gt; test fixture objects that persist across the entire run...
&gt;&gt;&gt;
&gt;&gt;&gt; Andrew
&gt;&gt;&gt;
&gt;&gt;&gt; On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&gt;&gt;&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Folks, here's a screenshot from JProfiler.  This should explain  
&gt;&gt;&gt;&gt; why our
&gt;&gt;&gt;&gt; tests are fairly slow...
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Simply put; we're not using EhCache, and also we're calling Stripes
&gt;&gt;&gt;&gt; ResolverUtil.findImplementations twice per WikiEngine startup.   
&gt;&gt;&gt;&gt; So it
&gt;&gt;&gt;&gt; might
&gt;&gt;&gt;&gt; make sense to move findImplementations() calls into a singleton or
&gt;&gt;&gt;&gt; something.  But I'm not too sure whether it makes sense considering
&gt;&gt;&gt;&gt; restarts
&gt;&gt;&gt;&gt; - or perhaps restarts should clean away the singleton cache?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; (This is after about 700 tests were run; I didn't want to wait  
&gt;&gt;&gt;&gt; until they
&gt;&gt;&gt;&gt; had all finished, since it had already taken about two hours with
&gt;&gt;&gt;&gt; profiling
&gt;&gt;&gt;&gt; on...)
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Priha can be seen taking quite a lot of time as well, but that's  
&gt;&gt;&gt;&gt; because
&gt;&gt;&gt;&gt; it
&gt;&gt;&gt;&gt; needs to hit the disk all the time.  More optimization for  
&gt;&gt;&gt;&gt; FileProvider
&gt;&gt;&gt;&gt; is
&gt;&gt;&gt;&gt; needed, but partly it's also because we're not caching anything.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; /Janne
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Harry Metske &lt;harry.metske@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c3a6c97f00911290237jad02d75v57e2a3623fc5343c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a6c97f00911290237jad02d75v57e2a3623fc5343c@mail-gmail-com%3e</id>
<updated>2009-11-29T10:37:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I like to see it too, please email, or maybe stick it somewhere on
www.jspwiki.org

regards,
Harry

2009/11/29 Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;

&gt;
&gt; Sent it to you directly - others, let me know if you want to see it.
&gt;
&gt; Well, we've got JSPWikiTestBase class, which extends TestCase.  So we could
&gt; use that as well and just start extending our tests from it instead directly
&gt; from TestCase.
&gt;
&gt; /Janne
&gt;
&gt;
&gt; On Nov 29, 2009, at 00:52 , Andrew Jaquith wrote:
&gt;
&gt;  Janne, I think your attachment got stripped out. Can you re-send
&gt;&gt; (maybe directly?)
&gt;&gt;
&gt;&gt; I agree that we ought to figure out some way of using some sort of
&gt;&gt; singleton (or singleton-per-wikiengine) object to stash the results of
&gt;&gt; findImplementations(). Not sure how this would work with JUnit, though
&gt;&gt; -- I should do some research. What we'd need is the ability to create
&gt;&gt; test fixture objects that persist across the entire run...
&gt;&gt;
&gt;&gt; Andrew
&gt;&gt;
&gt;&gt; On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&gt;&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt;
&gt;&gt;&gt; Folks, here's a screenshot from JProfiler.  This should explain why our
&gt;&gt;&gt; tests are fairly slow...
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Simply put; we're not using EhCache, and also we're calling Stripes
&gt;&gt;&gt; ResolverUtil.findImplementations twice per WikiEngine startup.  So it
&gt;&gt;&gt; might
&gt;&gt;&gt; make sense to move findImplementations() calls into a singleton or
&gt;&gt;&gt; something.  But I'm not too sure whether it makes sense considering
&gt;&gt;&gt; restarts
&gt;&gt;&gt; - or perhaps restarts should clean away the singleton cache?
&gt;&gt;&gt;
&gt;&gt;&gt; (This is after about 700 tests were run; I didn't want to wait until they
&gt;&gt;&gt; had all finished, since it had already taken about two hours with
&gt;&gt;&gt; profiling
&gt;&gt;&gt; on...)
&gt;&gt;&gt;
&gt;&gt;&gt; Priha can be seen taking quite a lot of time as well, but that's because
&gt;&gt;&gt; it
&gt;&gt;&gt; needs to hit the disk all the time.  More optimization for FileProvider
&gt;&gt;&gt; is
&gt;&gt;&gt; needed, but partly it's also because we're not caching anything.
&gt;&gt;&gt;
&gt;&gt;&gt; /Janne
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cE2346A64-4912-4FA7-BF7C-BBED0001538A@ecyrd.com%3e"/>
<id>urn:uuid:%3cE2346A64-4912-4FA7-BF7C-BBED0001538A@ecyrd-com%3e</id>
<updated>2009-11-29T00:09:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I've been thinking about moving to JUnit4, but so far there hasn't  
really been a compelling reason. This could be it...

One possible way could of course to be to override the Stripes default  
implementation for tests.  That would make it fairly fast.

/Janne

On Nov 29, 2009, at 01:22 , Andrew Jaquith wrote:

&gt; Looks like if we used JUnit 4, we could use methods annotated with
&gt; @BeforeClass to set up fixtures that would persist between tests in a
&gt; single test class. We'd get a lot of savings in classes like
&gt; JSPWikiMarkupParserTest that have 200 tests, for example.
&gt;
&gt; Also, I've investigated (a little) methods for reducing the need to
&gt; run ResolverUtil. We would probably still need to run it at least
&gt; twice: once for all of JSPWiki's needs, and once for Stripes itself.
&gt; But we'd need some way of registering "interest" in particular classes
&gt; to discover, so that it could all be done in one pass. I wrote the
&gt; class org.apache.wiki.ui.stripes.IsOneOf exactly for this purpose
&gt; (match against multiple target classes), but it's not optimized for
&gt; speed yet.
&gt;
&gt; Andrew
&gt;
&gt; On Sat, Nov 28, 2009 at 5:52 PM, Andrew Jaquith
&gt; &lt;andrew.r.jaquith@gmail.com&gt; wrote:
&gt;&gt; Janne, I think your attachment got stripped out. Can you re-send
&gt;&gt; (maybe directly?)
&gt;&gt;
&gt;&gt; I agree that we ought to figure out some way of using some sort of
&gt;&gt; singleton (or singleton-per-wikiengine) object to stash the results  
&gt;&gt; of
&gt;&gt; findImplementations(). Not sure how this would work with JUnit,  
&gt;&gt; though
&gt;&gt; -- I should do some research. What we'd need is the ability to create
&gt;&gt; test fixture objects that persist across the entire run...
&gt;&gt;
&gt;&gt; Andrew
&gt;&gt;
&gt;&gt; On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&gt;&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt;&gt; Folks, here's a screenshot from JProfiler.  This should explain  
&gt;&gt;&gt; why our
&gt;&gt;&gt; tests are fairly slow...
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Simply put; we're not using EhCache, and also we're calling Stripes
&gt;&gt;&gt; ResolverUtil.findImplementations twice per WikiEngine startup.  So  
&gt;&gt;&gt; it might
&gt;&gt;&gt; make sense to move findImplementations() calls into a singleton or
&gt;&gt;&gt; something.  But I'm not too sure whether it makes sense  
&gt;&gt;&gt; considering restarts
&gt;&gt;&gt; - or perhaps restarts should clean away the singleton cache?
&gt;&gt;&gt;
&gt;&gt;&gt; (This is after about 700 tests were run; I didn't want to wait  
&gt;&gt;&gt; until they
&gt;&gt;&gt; had all finished, since it had already taken about two hours with  
&gt;&gt;&gt; profiling
&gt;&gt;&gt; on...)
&gt;&gt;&gt;
&gt;&gt;&gt; Priha can be seen taking quite a lot of time as well, but that's  
&gt;&gt;&gt; because it
&gt;&gt;&gt; needs to hit the disk all the time.  More optimization for  
&gt;&gt;&gt; FileProvider is
&gt;&gt;&gt; needed, but partly it's also because we're not caching anything.
&gt;&gt;&gt;
&gt;&gt;&gt; /Janne
&gt;&gt;&gt;
&gt;&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c24DE4F7D-1657-468F-97BF-5EF7E299061B@ecyrd.com%3e"/>
<id>urn:uuid:%3c24DE4F7D-1657-468F-97BF-5EF7E299061B@ecyrd-com%3e</id>
<updated>2009-11-29T00:06:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Sent it to you directly - others, let me know if you want to see it.

Well, we've got JSPWikiTestBase class, which extends TestCase.  So we  
could use that as well and just start extending our tests from it  
instead directly from TestCase.

/Janne

On Nov 29, 2009, at 00:52 , Andrew Jaquith wrote:

&gt; Janne, I think your attachment got stripped out. Can you re-send
&gt; (maybe directly?)
&gt;
&gt; I agree that we ought to figure out some way of using some sort of
&gt; singleton (or singleton-per-wikiengine) object to stash the results of
&gt; findImplementations(). Not sure how this would work with JUnit, though
&gt; -- I should do some research. What we'd need is the ability to create
&gt; test fixture objects that persist across the entire run...
&gt;
&gt; Andrew
&gt;
&gt; On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt; Folks, here's a screenshot from JProfiler.  This should explain why  
&gt;&gt; our
&gt;&gt; tests are fairly slow...
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Simply put; we're not using EhCache, and also we're calling Stripes
&gt;&gt; ResolverUtil.findImplementations twice per WikiEngine startup.  So  
&gt;&gt; it might
&gt;&gt; make sense to move findImplementations() calls into a singleton or
&gt;&gt; something.  But I'm not too sure whether it makes sense considering  
&gt;&gt; restarts
&gt;&gt; - or perhaps restarts should clean away the singleton cache?
&gt;&gt;
&gt;&gt; (This is after about 700 tests were run; I didn't want to wait  
&gt;&gt; until they
&gt;&gt; had all finished, since it had already taken about two hours with  
&gt;&gt; profiling
&gt;&gt; on...)
&gt;&gt;
&gt;&gt; Priha can be seen taking quite a lot of time as well, but that's  
&gt;&gt; because it
&gt;&gt; needs to hit the disk all the time.  More optimization for  
&gt;&gt; FileProvider is
&gt;&gt; needed, but partly it's also because we're not caching anything.
&gt;&gt;
&gt;&gt; /Janne
&gt;&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cb90102160911281522y179f3f3sf4952884c044cd28@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb90102160911281522y179f3f3sf4952884c044cd28@mail-gmail-com%3e</id>
<updated>2009-11-28T23:22:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Looks like if we used JUnit 4, we could use methods annotated with
@BeforeClass to set up fixtures that would persist between tests in a
single test class. We'd get a lot of savings in classes like
JSPWikiMarkupParserTest that have 200 tests, for example.

Also, I've investigated (a little) methods for reducing the need to
run ResolverUtil. We would probably still need to run it at least
twice: once for all of JSPWiki's needs, and once for Stripes itself.
But we'd need some way of registering "interest" in particular classes
to discover, so that it could all be done in one pass. I wrote the
class org.apache.wiki.ui.stripes.IsOneOf exactly for this purpose
(match against multiple target classes), but it's not optimized for
speed yet.

Andrew

On Sat, Nov 28, 2009 at 5:52 PM, Andrew Jaquith
&lt;andrew.r.jaquith@gmail.com&gt; wrote:
&gt; Janne, I think your attachment got stripped out. Can you re-send
&gt; (maybe directly?)
&gt;
&gt; I agree that we ought to figure out some way of using some sort of
&gt; singleton (or singleton-per-wikiengine) object to stash the results of
&gt; findImplementations(). Not sure how this would work with JUnit, though
&gt; -- I should do some research. What we'd need is the ability to create
&gt; test fixture objects that persist across the entire run...
&gt;
&gt; Andrew
&gt;
&gt; On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&gt; &lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt;&gt; Folks, here's a screenshot from JProfiler.  This should explain why our
&gt;&gt; tests are fairly slow...
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Simply put; we're not using EhCache, and also we're calling Stripes
&gt;&gt; ResolverUtil.findImplementations twice per WikiEngine startup.  So it might
&gt;&gt; make sense to move findImplementations() calls into a singleton or
&gt;&gt; something.  But I'm not too sure whether it makes sense considering restarts
&gt;&gt; - or perhaps restarts should clean away the singleton cache?
&gt;&gt;
&gt;&gt; (This is after about 700 tests were run; I didn't want to wait until they
&gt;&gt; had all finished, since it had already taken about two hours with profiling
&gt;&gt; on...)
&gt;&gt;
&gt;&gt; Priha can be seen taking quite a lot of time as well, but that's because it
&gt;&gt; needs to hit the disk all the time.  More optimization for FileProvider is
&gt;&gt; needed, but partly it's also because we're not caching anything.
&gt;&gt;
&gt;&gt; /Janne
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Current tests slowdowns analysis</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cb90102160911281452y4e8a9f7dg1ad623bbecc53d19@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb90102160911281452y4e8a9f7dg1ad623bbecc53d19@mail-gmail-com%3e</id>
<updated>2009-11-28T22:52:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Janne, I think your attachment got stripped out. Can you re-send
(maybe directly?)

I agree that we ought to figure out some way of using some sort of
singleton (or singleton-per-wikiengine) object to stash the results of
findImplementations(). Not sure how this would work with JUnit, though
-- I should do some research. What we'd need is the ability to create
test fixture objects that persist across the entire run...

Andrew

On Sat, Nov 28, 2009 at 4:48 PM, Janne Jalkanen
&lt;Janne.Jalkanen@ecyrd.com&gt; wrote:
&gt; Folks, here's a screenshot from JProfiler.  This should explain why our
&gt; tests are fairly slow...
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; Simply put; we're not using EhCache, and also we're calling Stripes
&gt; ResolverUtil.findImplementations twice per WikiEngine startup.  So it might
&gt; make sense to move findImplementations() calls into a singleton or
&gt; something.  But I'm not too sure whether it makes sense considering restarts
&gt; - or perhaps restarts should clean away the singleton cache?
&gt;
&gt; (This is after about 700 tests were run; I didn't want to wait until they
&gt; had all finished, since it had already taken about two hours with profiling
&gt; on...)
&gt;
&gt; Priha can be seen taking quite a lot of time as well, but that's because it
&gt; needs to hit the disk all the time.  More optimization for FileProvider is
&gt; needed, but partly it's also because we're not caching anything.
&gt;
&gt; /Janne
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Current tests slowdowns analysis</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c2D3C5451-391B-485F-8929-4C9277C6ED87@ecyrd.com%3e"/>
<id>urn:uuid:%3c2D3C5451-391B-485F-8929-4C9277C6ED87@ecyrd-com%3e</id>
<updated>2009-11-28T21:48:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Folks, here's a screenshot from JProfiler.  This should explain why  
our tests are fairly slow...



</pre>
</div>
</content>
</entry>
<entry>
<title>JSPWiki trunk problems</title>
<author><name>Janne Jalkanen &lt;Janne.Jalkanen@ecyrd.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cFB5F2F02-FA89-4081-8DCC-9ED76763F352@ecyrd.com%3e"/>
<id>urn:uuid:%3cFB5F2F02-FA89-4081-8DCC-9ED76763F352@ecyrd-com%3e</id>
<updated>2009-11-25T22:58:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Folks,

there seems to be a bigger issue with the trunk right now. I patched  
some things, but it's somehow related to the way we do repository  
delete - i.e. when we call TestEngine.emptyRepository() it looks like  
some pages exist which should be there. I would normally blame Priha,  
but in this case it's odd because Priha's own unit tests are running  
nicely. And not all JSPWiki tests are failing either.

More testing would be good to isolate the problem...

/Janne


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Double-post editing problem: root cause found</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cE849FC28-E284-442C-818D-5B39427935D0@gmail.com%3e"/>
<id>urn:uuid:%3cE849FC28-E284-442C-818D-5B39427935D0@gmail-com%3e</id>
<updated>2009-11-25T21:06:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Dirk! (BTW it does affect the current trunk)

On Nov 25, 2009, at 13:24, Dirk Frederickx &lt;dirk.frederickx@gmail.com&gt;  
wrote:

&gt; Andrew,
&gt;
&gt; I'll try to look into it over the weekend.   Latest v3.x version ?
&gt;
&gt; dirk
&gt;
&gt; On Wed, Nov 25, 2009 at 12:52 PM, Andrew Jaquith &lt;andrew.r.jaquith@gmail.com
&gt;&gt; wrote:
&gt;
&gt;&gt; Well, sort of.
&gt;&gt;
&gt;&gt; It has something to do with JavaScript. If I turn off JavaScript,  
&gt;&gt; when
&gt;&gt; I edit a page (create a second version), the text is replaced with
&gt;&gt; what's in the textarea. If JS is on, the previous and new text are
&gt;&gt; concatenated.
&gt;&gt;
&gt;&gt; Weird! Dirk, any hints?
&gt;&gt;
&gt;&gt; Andrew
&gt;&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Double-post editing problem: root cause found</title>
<author><name>Harry Metske &lt;harry.metske@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c3a6c97f00911251059r575adbg1a40515a444b3311@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3a6c97f00911251059r575adbg1a40515a444b3311@mail-gmail-com%3e</id>
<updated>2009-11-25T18:59:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
yep, the current trunk still has the problem.

(good catch BTW Andrew)

regards,
Harry

2009/11/25 Dirk Frederickx &lt;dirk.frederickx@gmail.com&gt;

&gt; Andrew,
&gt;
&gt; I'll try to look into it over the weekend.   Latest v3.x version ?
&gt;
&gt; dirk
&gt;
&gt; On Wed, Nov 25, 2009 at 12:52 PM, Andrew Jaquith &lt;
&gt; andrew.r.jaquith@gmail.com
&gt; &gt; wrote:
&gt;
&gt; &gt; Well, sort of.
&gt; &gt;
&gt; &gt; It has something to do with JavaScript. If I turn off JavaScript, when
&gt; &gt; I edit a page (create a second version), the text is replaced with
&gt; &gt; what's in the textarea. If JS is on, the previous and new text are
&gt; &gt; concatenated.
&gt; &gt;
&gt; &gt; Weird! Dirk, any hints?
&gt; &gt;
&gt; &gt; Andrew
&gt; &gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Double-post editing problem: root cause found</title>
<author><name>Dirk Frederickx &lt;dirk.frederickx@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c15cc92000911251024w60e4ec89pf49c112ec636f1aa@mail.gmail.com%3e"/>
<id>urn:uuid:%3c15cc92000911251024w60e4ec89pf49c112ec636f1aa@mail-gmail-com%3e</id>
<updated>2009-11-25T18:24:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Andrew,

I'll try to look into it over the weekend.   Latest v3.x version ?

dirk

On Wed, Nov 25, 2009 at 12:52 PM, Andrew Jaquith &lt;andrew.r.jaquith@gmail.com
&gt; wrote:

&gt; Well, sort of.
&gt;
&gt; It has something to do with JavaScript. If I turn off JavaScript, when
&gt; I edit a page (create a second version), the text is replaced with
&gt; what's in the textarea. If JS is on, the previous and new text are
&gt; concatenated.
&gt;
&gt; Weird! Dirk, any hints?
&gt;
&gt; Andrew
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Double-post editing problem: root cause found</title>
<author><name>Andrew Jaquith &lt;andrew.r.jaquith@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3cb90102160911250352y4099b4b7yed2846724b1b2278@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb90102160911250352y4099b4b7yed2846724b1b2278@mail-gmail-com%3e</id>
<updated>2009-11-25T11:52:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, sort of.

It has something to do with JavaScript. If I turn off JavaScript, when
I edit a page (create a second version), the text is replaced with
what's in the textarea. If JS is on, the previous and new text are
concatenated.

Weird! Dirk, any hints?

Andrew


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (JSPWIKI-613) InsertPage plugin and the feature of section editing do not fit together</title>
<author><name>&quot;Dirk Frederickx (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1974152082.1259096979666.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1974152082-1259096979666-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T21:09:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/JSPWIKI-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782166#action_12782166
] 

Dirk Frederickx commented on JSPWIKI-613:
-----------------------------------------


Well, the [Edit] link is indeed generated client-side through some javascript.
It could be made a bit smarter and use the encoded page-name in the section header anchors.
 But there is a little problem...

Format of a section header :

{noformat} #section-pagename-headertitle {noformat}

However, it the page is called Test-Test:

{noformat} #section-Test-Test-headertitle {noformat}


We will need to use a special separator between the encoded page-name and the remaining header
title.
That will allow to jump to the inserted page instead.

Alternatively, we could put the page-name of the included page in another attribute of the
anchor  (rel='...' ?)


dirk


dirk 



&gt; InsertPage plugin and the feature of section editing do not fit together
&gt; ------------------------------------------------------------------------
&gt;
&gt;                 Key: JSPWIKI-613
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-613
&gt;             Project: JSPWiki
&gt;          Issue Type: Bug
&gt;          Components: Plugins
&gt;    Affects Versions: 2.8.3
&gt;         Environment: Current versions of Windows XP and Firefox running in a virtual
machine of VMWare Fusion on a Mac Server
&gt;            Reporter: Mario Lotz
&gt;            Priority: Minor
&gt;
&gt; I often used the *InsertPage plugin* to separate structure  of my presentation from the
content. Normaly I include pages into tabbed sections to give my users a single point of entry
to the same kind of information.
&gt; If the *section editing feature* is enabled the rendered *edit links* are pointing to
the {color:red}_including_{color} page instead of the {color:red}_included_{color} ones.
&gt; I assume, that the links are added to the page after the includes are done. To fix the
wrong links, the edit links have to be inserted for each included page independent of the
parent and with a separate heading counter.
&gt; This is my first bug report for your great JSPWiki and I hope to give you enough information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (JSPWIKI-612) There is a small bug in the ...\JSPWiki\templates\default\admin\UserManagement.jsp</title>
<author><name>&quot;Florian Holeczek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c884870420.1259058159748.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c884870420-1259058159748-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T10:22:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Holeczek updated JSPWIKI-612:
-------------------------------------

    Fix Version/s: 3.0

&gt; There is a small bug in the ...\JSPWiki\templates\default\admin\UserManagement.jsp
&gt; ----------------------------------------------------------------------------------
&gt;
&gt;                 Key: JSPWIKI-612
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-612
&gt;             Project: JSPWiki
&gt;          Issue Type: Bug
&gt;          Components: Default template
&gt;    Affects Versions: 2.8.3
&gt;         Environment: windows XP,IE6,IE7
&gt;            Reporter: é«˜æ³•æ­£
&gt;             Fix For: 2.8.4, 3.0
&gt;
&gt;
&gt; In the UserManagement.jsp page,there is a select box like that:
&gt;   
&gt;       &lt;select name="userid" id="userid" size="16" onchange="javascript:refreshUserInfo()"&gt;
&gt;          &lt;c:forEach var="user" items="${engine.userManager.userDatabase.wikiNames}"&gt;
&gt;             &lt;option&gt;&lt;c:out value="${user.name}" escapeXml="true"/&gt;&lt;/option&gt;
&gt;          &lt;/c:forEach&gt;
&gt;       &lt;/select&gt;
&gt; and the is a javascript function, it want to get the value of the select box. The function
like that:
&gt;     	function refreshUserInfo()
&gt; 	{
&gt; 	   var userid = $('userid').getValue();
&gt; 	
&gt; 	   if( userid == '--New--' ) return;
&gt; 	
&gt; 	   Wiki.jsonrpc("users.getUserInfo", [userid], function(userprofile){
&gt; 	      $('loginname').value = userprofile.loginName;
&gt; 	      $('loginid').value = userprofile.loginName;
&gt; 	      $('fullname').value = userprofile.fullname;
&gt; 	      $('email').value = userprofile.email;
&gt; 	      $('lastmodified').setHTML(constructdate(userprofile.lastModified));
&gt; 	      $('creationdate').setHTML(constructdate(userprofile.created));
&gt; 	   });
&gt; 	}
&gt; In the option tag of the select box,there is not "value" attribute,so the code "$('userid').getValue()"
get a empty String,
&gt; then it will occur a js bug.
&gt; But in the firefox3.5,the bug will not happen.
&gt; Chage the select box like that:
&gt;       &lt;select name="userid" id="userid" size="16" onchange="javascript:refreshUserInfo()"&gt;
&gt;          &lt;c:forEach var="user" items="${engine.userManager.userDatabase.wikiNames}"&gt;
&gt;             &lt;option value="${user.name}"&gt;&lt;c:out value="${user.name}" escapeXml="true"/&gt;&lt;/option&gt;
&gt;          &lt;/c:forEach&gt;
&gt;       &lt;/select&gt; 
&gt; the bug gone.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (JSPWIKI-612) There is a small bug in the ...\JSPWiki\templates\default\admin\UserManagement.jsp</title>
<author><name>&quot;Florian Holeczek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1613334820.1259057919684.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1613334820-1259057919684-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T10:18:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Holeczek updated JSPWIKI-612:
-------------------------------------

    Fix Version/s:     (was: 2.8.3)
                       (was: 3.0)
                   2.8.4

adjusted fix version.

&gt; There is a small bug in the ...\JSPWiki\templates\default\admin\UserManagement.jsp
&gt; ----------------------------------------------------------------------------------
&gt;
&gt;                 Key: JSPWIKI-612
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-612
&gt;             Project: JSPWiki
&gt;          Issue Type: Bug
&gt;          Components: Default template
&gt;    Affects Versions: 2.8.3
&gt;         Environment: windows XP,IE6,IE7
&gt;            Reporter: é«˜æ³•æ­£
&gt;             Fix For: 2.8.4
&gt;
&gt;
&gt; In the UserManagement.jsp page,there is a select box like that:
&gt;   
&gt;       &lt;select name="userid" id="userid" size="16" onchange="javascript:refreshUserInfo()"&gt;
&gt;          &lt;c:forEach var="user" items="${engine.userManager.userDatabase.wikiNames}"&gt;
&gt;             &lt;option&gt;&lt;c:out value="${user.name}" escapeXml="true"/&gt;&lt;/option&gt;
&gt;          &lt;/c:forEach&gt;
&gt;       &lt;/select&gt;
&gt; and the is a javascript function, it want to get the value of the select box. The function
like that:
&gt;     	function refreshUserInfo()
&gt; 	{
&gt; 	   var userid = $('userid').getValue();
&gt; 	
&gt; 	   if( userid == '--New--' ) return;
&gt; 	
&gt; 	   Wiki.jsonrpc("users.getUserInfo", [userid], function(userprofile){
&gt; 	      $('loginname').value = userprofile.loginName;
&gt; 	      $('loginid').value = userprofile.loginName;
&gt; 	      $('fullname').value = userprofile.fullname;
&gt; 	      $('email').value = userprofile.email;
&gt; 	      $('lastmodified').setHTML(constructdate(userprofile.lastModified));
&gt; 	      $('creationdate').setHTML(constructdate(userprofile.created));
&gt; 	   });
&gt; 	}
&gt; In the option tag of the select box,there is not "value" attribute,so the code "$('userid').getValue()"
get a empty String,
&gt; then it will occur a js bug.
&gt; But in the firefox3.5,the bug will not happen.
&gt; Chage the select box like that:
&gt;       &lt;select name="userid" id="userid" size="16" onchange="javascript:refreshUserInfo()"&gt;
&gt;          &lt;c:forEach var="user" items="${engine.userManager.userDatabase.wikiNames}"&gt;
&gt;             &lt;option value="${user.name}"&gt;&lt;c:out value="${user.name}" escapeXml="true"/&gt;&lt;/option&gt;
&gt;          &lt;/c:forEach&gt;
&gt;       &lt;/select&gt; 
&gt; the bug gone.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (JSPWIKI-585) overflow:auto breaks FullRecentChanges</title>
<author><name>&quot;Florian Holeczek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1995480718.1259057679677.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1995480718-1259057679677-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T10:14:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Holeczek updated JSPWIKI-585:
-------------------------------------

    Fix Version/s:     (was: 2.8.3)
                   2.8.4

&gt; overflow:auto breaks FullRecentChanges
&gt; --------------------------------------
&gt;
&gt;                 Key: JSPWIKI-585
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-585
&gt;             Project: JSPWiki
&gt;          Issue Type: Bug
&gt;          Components: Default template
&gt;    Affects Versions: 2.8.2
&gt;         Environment: JSPWIki 2.8.2, Firefox 3.5.1
&gt;            Reporter: Stefan Bohn
&gt;            Assignee: Dirk Frederickx
&gt;            Priority: Trivial
&gt;             Fix For: 2.8.4, 3.0
&gt;
&gt;         Attachments: screenshot-1.jpg, screenshot-2.jpg, screenshot-3.jpg, screenshot-4.png
&gt;
&gt;
&gt; html &gt; body #previewcontent, html &gt; body #info, html &gt; body #pagecontent, html
&gt; body #attach, html &gt; body #findcontent
&gt; {
&gt; overflow:auto
&gt; }
&gt; breaks FullRecentChanges. 
&gt; The whole table is generated, but only the first part is displayed correctly.
&gt; The page is as long as the whole table, but after the first shown part, all table rows
are not visible, so the page is white.
&gt; Testing with Firebug and disabling the mentioned css shows the full table. But may break
other styles...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (JSPWIKI-454) Export tool</title>
<author><name>&quot;Florian Holeczek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1377094960.1259057679756.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1377094960-1259057679756-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T10:14:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Holeczek updated JSPWIKI-454:
-------------------------------------

    Fix Version/s:     (was: 2.8.3)
                   2.8.4

&gt; Export tool
&gt; -----------
&gt;
&gt;                 Key: JSPWIKI-454
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-454
&gt;             Project: JSPWiki
&gt;          Issue Type: New Feature
&gt;          Components: Core &amp; storage
&gt;            Reporter: Janne Jalkanen
&gt;             Fix For: 2.8.4
&gt;
&gt;
&gt; In order to facilitate the move to a different backend in 3.0, and also allowing people
the choice of the 3.0 backend provider, we should have an export tool which can export the
old format repository to the JCR XML export format (System View).  This will also be useful
in 3.0 for people who want to have an implementation-independent database dump.
&gt; A couple of requirements:
&gt; * Must run with existing 2.8.x
&gt; * Must have an export functionality in the Admin UI
&gt; * Should have also a simple GUI
&gt; * Should have also a command-line interface
&gt; * Should also export version histories (though there is no standard representation defined
in JCR, we may have to invent our own.)
&gt; * May have built-in compression (the XML files are bound to be large)
&gt; (For 3.0 it then obviously becomes: add a tool which allows *importing* of such XML document.)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (JSPWIKI-614) Create a Piwik plugin</title>
<author><name>&quot;Florian Holeczek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1888235711.1259057439992.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1888235711-1259057439992-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T10:10:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Florian Holeczek updated JSPWIKI-614:
-------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 2.8.2)
        Fix Version/s:     (was: 2.8.3)

Good idea!
Adjusted entry settings.

&gt; Create a Piwik plugin 
&gt; ----------------------
&gt;
&gt;                 Key: JSPWIKI-614
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
&gt;             Project: JSPWiki
&gt;          Issue Type: New Feature
&gt;          Components: Plugins
&gt;            Reporter: Derek
&gt;            Priority: Minor
&gt;
&gt; Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of
users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (JSPWIKI-614) Create a Piwik plugin</title>
<author><name>&quot;Derek (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c780377887.1259026839670.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c780377887-1259026839670-JavaMail-jira@brutus%3e</id>
<updated>2009-11-24T01:40:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Create a Piwik plugin 
----------------------

                 Key: JSPWIKI-614
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
             Project: JSPWiki
          Issue Type: New Feature
          Components: Plugins
    Affects Versions: 2.8.2
            Reporter: Derek
             Fix For: 2.8.3


Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users
through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (JSPWIKI-613) InsertPage plugin and the feature of section editing do not fit together</title>
<author><name>&quot;Janne Jalkanen (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1264479901.1258963359788.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1264479901-1258963359788-JavaMail-jira@brutus%3e</id>
<updated>2009-11-23T08:02:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/JSPWIKI-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12781325#action_12781325
] 

Janne Jalkanen commented on JSPWIKI-613:
----------------------------------------

Thanks for the report and welcome :-)

You're right, the section editing should point at the included page and not the host page.
 However, the way that section editing is currently done is that it's completely done on the
client side.  The problem is that the page is included on the server side...

Dirk, any ideas on how this should be handled? The only thing I can think of is that the heading
anchor tags do reveal which page was included, but that may not be reliable (the anchor generation
method loses information).  One possibility would be to disable the section edit links for
included pages - this should be possible to deduce from the anchor names.

&gt; InsertPage plugin and the feature of section editing do not fit together
&gt; ------------------------------------------------------------------------
&gt;
&gt;                 Key: JSPWIKI-613
&gt;                 URL: https://issues.apache.org/jira/browse/JSPWIKI-613
&gt;             Project: JSPWiki
&gt;          Issue Type: Bug
&gt;          Components: Plugins
&gt;    Affects Versions: 2.8.3
&gt;         Environment: Current versions of Windows XP and Firefox running in a virtual
machine of VMWare Fusion on a Mac Server
&gt;            Reporter: Mario Lotz
&gt;            Priority: Minor
&gt;
&gt; I often used the *InsertPage plugin* to separate structure  of my presentation from the
content. Normaly I include pages into tabbed sections to give my users a single point of entry
to the same kind of information.
&gt; If the *section editing feature* is enabled the rendered *edit links* are pointing to
the {color:red}_including_{color} page instead of the {color:red}_included_{color} ones.
&gt; I assume, that the links are added to the page after the includes are done. To fix the
wrong links, the edit links have to be inserted for each included page independent of the
parent and with a separate heading counter.
&gt; This is my first bug report for your great JSPWiki and I hope to give you enough information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (JSPWIKI-613) InsertPage plugin and the feature of section editing do not fit together</title>
<author><name>&quot;Mario Lotz (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-jspwiki-dev/200911.mbox/%3c1547167092.1258921959585.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1547167092-1258921959585-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T20:32:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
InsertPage plugin and the feature of section editing do not fit together
------------------------------------------------------------------------

                 Key: JSPWIKI-613
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-613
             Project: JSPWiki
          Issue Type: Bug
          Components: Plugins
    Affects Versions: 2.8.3
         Environment: Current versions of Windows XP and Firefox running in a virtual machine
of VMWare Fusion on a Mac Server
            Reporter: Mario Lotz
            Priority: Minor


I often used the *InsertPage plugin* to separate structure  of my presentation from the content.
Normaly I include pages into tabbed sections to give my users a single point of entry to the
same kind of information.

If the *section editing feature* is enabled the rendered *edit links* are pointing to the
{color:red}_including_{color} page instead of the {color:red}_included_{color} ones.
I assume, that the links are added to the page after the includes are done. To fix the wrong
links, the edit links have to be inserted for each included page independent of the parent
and with a separate heading counter.

This is my first bug report for your great JSPWiki and I hope to give you enough information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
</feed>
