Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
txt
README.txt 66.9 kB 4 04-Feb-2006 07:18 148.221.80.109
java
VersioningFileProvider.java 15.2 kB 1 21-Feb-2005 21:48 MikeOliverAZ

This page (revision-88) was last changed on 10-Oct-2011 16:01 by Janne Jalkanen  

This page was created on 12-Apr-2002 18:10 by JanneJalkanen

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 3 changed one line
It is available from JSPWiki 1.7.0 onwards.
It is available from JSPWiki 1.7.0 onwards. To use it, edit the jspwiki.properties file as follows:
At line 5 added 4 lines
#Change the {{jspwiki.pageProvider}} to {{VersioningFileProvider}} ''with no leading or trailing spaces!!''
#Confirm the line {{jspwiki.fileSystemProvider.pageDir = ''some path''}} is correct for your system
#Add a line {{jspwiki.versioningFileProvider.pageDir = ''some other path''}} to the file, although it doesn't seem to be used for anything...
At line 10 added 2 lines
At line 52 added 8 lines
Is this available (vJSPWiki v2.2.13) ?
Right now I have pages with more than 150 revisions !
-- RealGagnon
At line 50 changed one line
!an error that An unknown exception java.lang.NullPointerException was caught by Error.jsp
!an error that An unknown exception java.lang.~NullPointerException was caught by Error.jsp
At line 58 changed one line
An unknown exception java.lang.NullPointerException was caught by Error.jsp
An unknown exception java.lang.~NullPointerException was caught by Error.jsp
At line 77 added one line
At line 79 added 2 lines
Check and make sure that it's not a permissions problem. Can the web server (tomcat?) create files in the directory specified as the pageDir.
----
At line 97 added 6 lines
This is also needed (at least in 2.3.92):
4. jspwiki.usePageCache = true
TN
----
At line 81 changed one line
" then you get the exception "An unknown exception java.lang.NullPointerException was caught by Error.jsp". Make sure there are no spaces at the end.\\
" then you get the exception "An unknown exception java.lang.~NullPointerException was caught by Error.jsp". Make sure there are no spaces at the end.\\
At line 121 added 74 lines
----
Hi guys, I've been trying to get versioning working without success.
jspwiki.pageProvider=VersioningFileProvider
Then I get the error
ERROR com.ecyrd.jspwiki.providers.CachingProvider - Unable to locate provider class VersioningFileProvider\\
java.lang.ClassNoFoundException: Class not found in search path!\\
Ideas anybody ?
JJH
Check that you don't have extra spaces around the "VersioningFileProvider".
-- JanneJalkanen
Hey, thanks mate that's sorted it. I thought that I'd previously checked that I've read it above, maybe I've been at this keyboard for too long.\\
So that now appear to work OK, for the record.\\
Fedora Core 2\\
Tomcat 5.5.4\\
Java 1.5.0\\
JSP wiki 2.1.115.alpha\\
JJH
----
I had an idea about using a versioning provider for storing document drafts, which has now been submitted as an idea, as it is not specififc to the Versioning File provider - [IdeaPrivateVersionedDocumentDrafts].
--DavidC, 09-Sep-2006
I use Versioning File Provider to get email notifications... the sad thing is, it does not send email (discover new versions), if I change only the attachments of the page and leave the page itself untouched, any idea?
Maybe I need to use the External Provider based on diff command, but I doubt, it looks like an attachment is not considered as a part of the page and stored in own subfolder.... Of course, I can add my own Provider, but I think somebody has already done this...
--[serge]
Use the RSS feed; it also gives you notifications on the attachment changes!
-- JanneJalkanen
Thanks much, Janne... The thing is I need to configure the jspwiki.pageProvider property, in order to use the automatic email Notificator...
I do not see any provider which implements the VersioningProvider interface in the RSS package....
--[serge]
They have nothing to do with each other. As long as you have any provider which does versioning (like VersioningFileProvider, JDBCProvider or RCSFileProvider), RSS works automatically.
-- JanneJalkanen
Well, I see it. My goal is to send email automatically to a subscriber when the attachment gets changed... I do not see how RSS can do it, please give me some hints/links if it can.... (I am not very familiar with RSS)
--[serge]
----
Question on Oct 10th, 2011:\\
Can one switch back and forth between {{jspwiki.pageProvider = FileSystemProvider}} and {{jspwiki.pageProvider = VersioningFileProvider}}? \\
I have a JSPWiki using {{FileSystemProvider}} now. I want to switch to {{VersioningFileProvider}} for a test, but I might be forced to switch back, if the user's don't like it.
\\
Additionally: Can I manually delete old versions when using {{VersioningFileProvider}}? I fear that disk usage might increase to heavily.
\\
Thanks. -- JCKi.
Yes, you can move back and forth between them. Disk usage in general isn't a problem, but you can remove old versions, but don't leave version gaps - i.e. you can delete versions 1..20, but not 1.10 and 18 and 19.
-- JanneJalkanen
Version Date Modified Size Author Changes ... Change note
88 10-Oct-2011 16:01 7.813 kB Janne Jalkanen to previous
87 10-Oct-2011 15:11 7.585 kB 193.30.140.141 to previous | to last added Q: Can I switch back and forth with FileProviders?
86 10-Oct-2010 16:39 7.043 kB Dirk Frederickx to previous | to last remove spam
85 09-Oct-2010 00:23 7.171 kB Razan Abbass to previous | to last
84 26-Sep-2007 23:44 7.043 kB JanneJalkanen to previous | to last
83 26-Sep-2007 02:51 7.057 kB 161.200.255.162 to previous | to last
82 16-Jan-2007 04:25 7.043 kB 24.110.6.81 to previous | to last
81 09-Nov-2006 15:23 6.89 kB SergeBakhteiarov to previous | to last
« This page (revision-88) was last changed on 10-Oct-2011 16:01 by Janne Jalkanen  
G’day (anonymous guest) My Prefs
JSPWiki v2.8.4-svn-9