Re: Adding or Modifying a Change Note

2019-12-10 Thread Col Willis
It might be better to ensure a change note is mandatory for a given submit?

Unsure if this is currently supported though?


On Tue, 10 Dec 2019, 13:23 Gardner, Mike, 
wrote:

> We have wiki users who often forget to add a Change Note despite repeated
> haranguings to please do so.  I've tired of being the school marm wagging
> my finger at them.
>
> How can we add or modify a Change Note after the fact?  I don't see a way
> to do it in the UI.
>
> Thanks,
> Mike
>
> This email may contain confidential or privileged material. Use or
> disclosure of it by anyone other than the recipient is unauthorized. If you
> are not an intended recipient, please delete this email.
>


Re: Data Migration

2017-11-28 Thread Col Willis
I will look at that migratePlugin - Thanks.

I thought of developing a Page Crawler using XML RPC; to re-create on the
New Wiki.

Is it possible to Download attachments/Files via the XMLRPC?



On 28 November 2017 at 15:45, Jürgen Weber <juer...@jwi.de> wrote:

> Well, there once was a JDBCProvider, might be fun to port it to current
> JSPWiki ..
>
> License is LGPL.
>
> https://www.ecyrd.com/JSPWiki/wiki/JDBCProviders
>
> As for migrating, I once hacked a simple Plugin to migrate to a different
> provider, it might be useful as copy template..
>
> https://github.com/weberjn/migratePlugin
>
> Jürgen
>
> Am 28.11.2017 14:16 schrieb "Col Willis" <col.wil...@gmail.com>:
>
> > Hi all,
> >
> > I have a personal JSPWiki for a few years with File-based storage
> > (jspwiki-files)
> >
> > I want to migrate this to AWS Cloud, but setup a Database back-end...
> >
> > What is the best way to Migrate data from jspwiki-files into Database?
> >
> >
> > Thanks,
> >
> > Colin
> >
>



-- 
Col


Re: Data Migration

2017-11-28 Thread Col Willis
Of course!

On 28 November 2017 at 14:20, Paul Uszak <paul.us...@gmail.com> wrote:

> To be clear, you still want to stick with JSPWiki for the front end though?
>
> On 28 November 2017 at 13:16, Col Willis <col.wil...@gmail.com> wrote:
>
> > Hi all,
> >
> > I have a personal JSPWiki for a few years with File-based storage
> > (jspwiki-files)
> >
> > I want to migrate this to AWS Cloud, but setup a Database back-end...
> >
> > What is the best way to Migrate data from jspwiki-files into Database?
> >
> >
> > Thanks,
> >
> > Colin
> >
>



-- 
Col


Re: Problem getting started on Ubuntu 16.04/Tomcat 8

2017-01-09 Thread Col Willis
I had to do something funky with the catalina.policy file to get jspwiki
working in tomcat8 (apt-get installed)

grant codeBase "file:/var/lib/tomcat8/webapps/wiki/-" {
   // !!change the directory to the location you want to locate your
wiki files!!
   permission java.io.FilePermission
"file:/usr/share/tomcat8/jspwiki-files/-", "read, write";

   // just allow the entire codebase permissions to do what it needs.
   permission java.security.AllPermission;
};

// this file does not exist, but it does solve a problem with
exceptions being thrown in syslog
grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
   permission java.io.FilePermission
"/var/lib/tomcat8/webapps/wiki/WEB-INF/classes/logging.properties",
"read";
};


On 9 January 2017 at 00:13, Rick Brockman  wrote:

> Like you John I'm a Rip van Winkle of bygone computer days.  When  I
> installed Tomcat using apt-get I ran into problems and instead of knocking
> my head against the sleep pillow, I downloaded tomcat from the web and its
> working...
>
> On 2017-01-08 16:10, John Lusk wrote:
>
>> Ok, friends.  Trying to get JSPWiki set up on a new Amazon EC2 Unbuntu
>> 16.04 instance I just stood up, and I'm having some trouble.  Help?
>>
>> I installed Tomcat8 using apt-get, I wound up with:
>>
>>/etc/default/tomcat8
>>/etc/init.d/tomcat8
>>/etc/tomcat8
>>   Catalina/localhost/{docs,examples,host-manager,manager}.xml
>>   (These have docbase pointing to corresponding subdirs of
>>   /usr/share.)
>>/usr/share/tomcat8
>>/var/lib/tomcat8, which has a webapps subdir.
>>
>> It all seems to be working fine.
>>
>> So, I downloaded jspwiki.war 2.10.2, renamed it to "wiki.war", and
>> copied it to /var/lib/tomcat8/webapps, where it promptly got unpacked.
>>
>> Now, I can see it in my Tomcat app manager, but when I attempt to
>> start it, I get failures.
>>
>> First, I got OutOfMemory errors.
>>
>> I assume Tomcat's default -Xmx=128m is way too small, so I bumped it
>> up to 768m (I've only got a 1GB EC2 instance (t2.micro), so I think
>> 768m is living dangerously, eh?).
>>
>> Now I'm getting errors like
>>
>>org.apache.catalina.core.ApplicationContext.log ERROR: Failed to
>> create
>> a Wiki engine: JSPWiki: Unable to load and setup properties from
>> jspwiki.properties. Failed to start. Caused by: Failed to instantiate
>> class
>> org.apache.wiki.PageManager; please check log files for better
>> information.
>>
>>(in localhost.2017-01-08.log)
>>
>> and
>>
>>java.io.FileNotFoundException: jspwiki.log (Permission denied)
>>
>>(in catalina.out)
>>
>> and
>>
>>INFO [__DEFAULT__]
>> org.apache.catalina.loader.WebappClassLoaderBase.checkStateF
>> orResourceLoading
>> Illegal access: this web application instance has been stopped already.
>> Could not load [net/sf/ehcache/version.properties].
>>
>>(in catalina.2017-01-08.log)
>>
>> I grabbed jspwiki.properties with:
>>
>>unzip jspwiki-war-2.10.2.jar ini/jspwiki.properties
>>
>> and modified it as follows (renaming it jspwiki-custom.properties):
>>
>>51c51
>>< jspwiki.baseURL=http://localhost:8080/JSPWiki/
>>---
>>> jspwiki.baseURL=http://web.how-hard-can-it-be.com/wiki/
>>102c102
>>< #  jspwiki.fileSystemProvider.pageDir = /p/web/www-data/jspwiki/
>>---
>>> jspwiki.fileSystemProvider.pageDir = /etc/jspwiki/pages
>>144c144
>>< #  jspwiki.basicAttachmentProvider.storageDir = C:\\Data\\jspwiki
>>---
>>> jspwiki.basicAttachmentProvider.storageDir =
>> /etc/jspwiki/attachments
>>605c605
>>< #jspwiki.xmlGroupDatabaseFile = /etc/tomcat/groupdatabase.xml
>>---
>>> jspwiki.xmlGroupDatabaseFile = /etc/jspwiki/groupdatabase.xml
>>626c626
>>< #jspwiki.xmlUserDatabaseFile = /etc/tomcat/userdatabase.xml
>>---
>>> jspwiki.xmlUserDatabaseFile = /etc/jspwiki/userdatabase.xml
>>885c885
>>< log4j.appender.FileLog.File = jspwiki.log
>>---
>>> log4j.appender.FileLog.File = /var/log/jspwiki/jspwiki.log
>>
>> and tried deploying it to various places
>> ({/var/lib,/usr/share}/tomcat8, /var/lib/tomcat8/webapps/wiki).
>>
>> All to no avail.
>>
>> What else can I try?
>>
>> (I'm kind of a Rip van Winkle Java web app developer -- the last time
>> I touched this technology stack was more than ten years ago, and that
>> was on JBoss, all of which I've forgotten except the pain.)
>>
>> Thanks.
>>
>> John.
>>
>
> --
> -
>
> _RICK BROCKMAN_
>
> _28 LANCASTER ST._
>
> _CHERRY VALLEY, NY 13320_
>
> _607 434-4746_
>



-- 
Col


Re: FEATURE REQUEST: Restricting pages to users in certain roles

2016-02-01 Thread Col Willis
I have got this working, it took some time but I hope the below helps:

I have got this working on my Apache Tomcat JSP Wiki Deployment:


Tomcat Users Conf File:






--

On your Wiki Pages

For Group Level Restrictions:
[{ALLOW comment Authenticated}]
[{ALLOW modify Admin}]

For User Level Restriction:
[{ALLOW view col}]
[{ALLOW modify col}]

-

Now for the tricky bit, in JSPWiki-WAR Code:

jspwiki.policy File:
(Attached)

---

At the end of the web.xml:
...



Administrative Area
/Wiki.jsp
/Delete.jsp
/Edit.jsp
/Comment.jsp
/Login.jsp
/NewGroup.jsp
/Rename.jsp
/Upload.jsp
/attach
DELETE
GET
HEAD
POST
PUT


Admin


CONFIDENTIAL





Trusted Area
/Wiki.jsp
/Edit.jsp
/Comment.jsp
/Login.jsp
/Rename.jsp
/Upload.jsp
/attach
GET
HEAD
POST
PUT


Trusted


CONFIDENTIAL





Authenticated area
/Wiki.jsp
/Comment.jsp
/Login.jsp
DELETE
GET
HEAD
POST
PUT



Authenticated



CONFIDENTIAL




FORM

/LoginForm.jsp
/LoginForm.jsp





   This logical role includes all Admin usersit
   
Admin



   This logical role includes all Trusted users
   
Trusted



   This logical role includes all Authenticated users
   
Authenticated




---

There may have been other settings but I can not see these at the moment.


Hope this helps



On 1 February 2016 at 00:25, Jason Morris 
wrote:

> Hi All,
> I'd like to request a feature to restrict page access/edit to users in
> certain roles.
> Does anyone know if this already possible in JSPWiki?
> Cheers,
> Jason
>
>
> Jason C. Morris | PhD Candidate
> Department of Environmental Sciences | Faculty of Agriculture and
> Environment
> THE UNIVERSITY OF SYDNEY, NSW, 2006
> phone: +61 02 8627 1152
>
>


-- 
Col W


Re: FEATURE REQUEST: Restricting pages to users in certain roles

2016-02-01 Thread Col Willis
Sorry not touched Glassfish

On 1 February 2016 at 11:40, Jason Morris <jason.mor...@sydney.edu.au>
wrote:

> Thanks, Col!
> The other tricky bit (which I should have stipulated) is that I’m
> currently running JSPWiki on Glassfish 4.0.
> Do you have a mod for impl this on Glassfish?
> Cheers,
> Jason
>
> Jason C. Morris | PhD Candidate
> Department of Environmental Sciences | Faculty of Agriculture and
> Environment
> THE UNIVERSITY OF SYDNEY, NSW, 2006
> phone: +61 02 8627 1152
>
>
> From: Col Willis [mailto:col.wil...@gmail.com]
> Sent: Monday, 1 February 2016 7:01 PM
> To: user@jspwiki.apache.org
> Cc: d...@jspwiki.apache.org
> Subject: Re: FEATURE REQUEST: Restricting pages to users in certain roles
>
> I have got this working, it took some time but I hope the below helps:
>
> I have got this working on my Apache Tomcat JSP Wiki Deployment:
>
>
> Tomcat Users Conf File:
> 
> 
> 
>
> 
>
> --
>
> On your Wiki Pages
>
> For Group Level Restrictions:
> [{ALLOW comment Authenticated}]
> [{ALLOW modify Admin}]
>
> For User Level Restriction:
> [{ALLOW view col}]
> [{ALLOW modify col}]
>
> -
>
> Now for the tricky bit, in JSPWiki-WAR Code:
>
> jspwiki.policy File:
> (Attached)
>
> ---
>
> At the end of the web.xml:
> ...
>
> 
> 
> Administrative Area
> /Wiki.jsp
> /Delete.jsp
> /Edit.jsp
> /Comment.jsp
> /Login.jsp
> /NewGroup.jsp
> /Rename.jsp
> /Upload.jsp
> /attach
> DELETE
> GET
> HEAD
> POST
> PUT
> 
> 
> Admin
> 
> 
> CONFIDENTIAL
> 
> 
>
> 
> 
> Trusted Area
> /Wiki.jsp
> /Edit.jsp
> /Comment.jsp
> /Login.jsp
> /Rename.jsp
> /Upload.jsp
> /attach
> GET
> HEAD
> POST
> PUT
> 
> 
> Trusted
> 
> 
> CONFIDENTIAL
> 
> 
>
> 
> 
> Authenticated area
> /Wiki.jsp
> /Comment.jsp
> /Login.jsp
> DELETE
> GET
> HEAD
> POST
> PUT
> 
>
> 
> Authenticated
> 
>
> 
> CONFIDENTIAL
> 
> 
>
> 
> FORM
> 
> /LoginForm.jsp
> /LoginForm.jsp
> 
> 
>
> 
> 
>This logical role includes all Admin usersit
>
> Admin
> 
> 
> 
>This logical role includes all Trusted users
>
> Trusted
> 
> 
> 
>This logical role includes all Authenticated users
>
> Authenticated
> 
>
> 
>
> ---
> There may have been other settings but I can not see these at the moment.
>
> Hope this helps
>
>
> On 1 February 2016 at 00:25, Jason Morris <jason.mor...@sydney.edu.au
> <mailto:jason.mor...@sydney.edu.au>> wrote:
> Hi All,
> I'd like to request a feature to restrict page access/edit to users in
> certain roles.
> Does anyone know if this already possible in JSPWiki?
> Cheers,
> Jason
>
>
> Jason C. Morris | PhD Candidate
> Department of Environmental Sciences | Faculty of Agriculture and
> Environment
> THE UNIVERSITY OF SYDNEY, NSW, 2006
> phone: +61 02 8627 1152<tel:%2B61%2002%208627%201152>
>
>
>
> --
> Col W
>



-- 
Col W