This page is an archive of Bug Reports resolved during the JAMWiki 0.9.x release cycle. See Bug Reports/Resolved for an index of all resolved bug reports.
Per this post, "remember me" functionality is broken in Spring Security 3.0.1, which is the version currently in use on the JAMWiki trunk and on jamwiki.org (but not in any released versions). Upgrading to the next bugfix version of Spring Security should presumably solve this issue. -- Ryan • (comments) • 07-Feb-2010 16:42 PST
Links of the form [[Bug Reports#Wrong Path for Uploads]] (Bug Reports#Wrong Path for Uploads) are currently parsing incorrectly. Leaving out the topic name works - [[#Wrong Path for Uploads]] (#Wrong Path for Uploads). -- Ryan • (comments) • 10-Feb-2010 11:53 PST
I followed the upgrade instructions. The automatic upgrade failed with an java out of memory error. I checked the manual instructions. All mysql tables seemed to have been changed. So I only changed the version number from 0.6.7 to 0.8.2. The files all have tomca55 as user. The server now tells me:
HTTP Status 404 - /SMwiki/error.jsp
type Status report
message /SMwiki/error.jsp
description The requested resource (/SMwiki/error.jsp) is not available. Apache Tomcat/5.5
I deleted the Tomcat/work/Catalina/wiki directory which did not help. Any ideas?
/WEB-INF/classes/logging.properties file configures where log messages are sent. -- Ryan • (comments) • 23-Feb-2010 14:15 PSTThere is the part that happened on my last attempt. I must admit that I did not use chown -R tomcat55 this time, but I did it before and it had no influence. The old log is gone though.
2010-02-23 18:29:50,987 SEVERE: org.jamwiki.servlets.JAMWikiServlet - Servlet error net.sf.ehcache.CacheException: org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKICache: Could not create disk store. Initial cause was /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:175) at net.sf.ehcache.Cache.createDiskStore(Cache.java:675) at net.sf.ehcache.Cache.initialise(Cache.java:640) at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:697) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.FileNotFoundException: /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:219) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:163) ... 45 more 2010-02-23 18:29:50,987 SEVERE: org.jamwiki.servlets.JAMWikiServlet - Servlet error net.sf.ehcache.CacheException: org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKICache: Could not create disk store. Initial cause was /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:175) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.FileNotFoundException: /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:219) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:163) ... 45 more 2010-02-23 18:29:50,989 SEVERE: org.jamwiki.servlets.JAMWikiServlet - Unable to load default layout net.sf.ehcache.CacheException: org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKICache: Could not create disk store. Initial cause was /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:175) at net.sf.ehcache.Cache.createDiskStore(Cache.java:675) at net.sf.ehcache.Cache.initialise(Cache.java:640) Caused by: java.io.FileNotFoundException: /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:219) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:163) ... 43 more 2010-02-23 18:29:50,989 SEVERE: org.jamwiki.servlets.JAMWikiServlet - Unable to load default layout net.sf.ehcache.CacheException: org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKICache: Could not create disk store. Initial cause was /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:175) Caused by: java.io.FileNotFoundException: /opt/SMwiki/cache/org.jamwiki.db.AnsiDataHandler.CACHE_VIRTUAL_WIKI.data (Permission denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:219) at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:163) ... 43 more 2010-02-23 18:30:18,020 SEVERE: org.jamwiki.jsp - Error in JSP page java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuilder.append(StringBuilder.java:119) at org.jamwiki.utils.LinkUtil.appendQueryParam(LinkUtil.java:73) at org.jamwiki.utils.LinkUtil.buildEditLinkUrl(LinkUtil.java:99) at org.jamwiki.utils.LinkUtil.buildTopicUrl(LinkUtil.java:359)
PS: the /cache directory is empty.
/opt/SMwiki/, but that the permissions on that directory are such that JAMWiki cannot write data there. Fixing the permissions should resolve the problem, which can be done by updating the "File-system directory" parameter on Special:Admin or by directly editing the . Inability to write to the homeDir property in your jamwiki.properties file. An invalid file-system directory is a fatal error for JAMWiki, although I'll investigate to see if I can determine why it would result in a OOM error rather than a more user-friendly message. -- Ryan • (comments) • 24-Feb-2010 07:27 PST
Clicking the rightmost button above (in the editing controls) has no effect...
I've also noticed that when I do include 4 dashes on some pages, it doesn't create a horizontal line like it's supposed to, but instead includes the literal 4 dashes in the page. Not sure exactly what is causing this...
Actually, none of the editing buttons seem to work at the moment (In Firefox 3.6.2) on this wiki at this time.
Just tried clicking the Editing controls buttons in IE8 as well, The Javascript error is:
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; InfoPath.2) Timestamp: Fri, 2 Apr 2010 14:00:09 UTC Message: 'document.form.contents' is null or not an object Line: 80 Char: 2 Code: 0 URI: http://jamwiki.org/wiki/js/jamwiki.js
In Tomcat's upload directory a downscaled thumbnail with extension "-180px" is automatically generated for every image uploaded. When the image is embedded in a Wiki page using [[Image:imagename.png|thumb]] the thumbnail is not used but the original image is scaled down by the HTML tag. Is there any way to use the thumbnail instead in order to speed up page rendering? -- (rmv) 27-Apr-2010 21:05 GMT
Interwiki links of the form Wikipedia are currently parsing incorrectly. -- Ryan • (comments) • 10-Mar-2010 22:30 PST
Special:OrphanedPages currently (0.9.0 beta2) returns an error message due to the "delete_date" column. -- Ryan • (comments) • 10-Jun-2010 18:14 PDT
Hi Ryan!
In jamwiki 0.9.0 update 2 I can't change the parser to Bliki! I got the next error message (or so): Bad parser class: org.jamwiki.parser.bliki.BlikiParser.
Hi Ryan!
—The preceding comment was added by cstenkes (comments • contribs) .
Using jamwiki 0.9.0 beta2 with Safari 5.0 running on MacOS 10.6.3 the search text box runs into the search frame. It works fine on the same OS using Firefox but I have the same issue with Chrome.
--Tom Schueller 12-Jun-2010 17:05 PDT
#nav-search input[type="text"] {
width: 150px;
}
Yes it was the same when viewing jamwiki.org and the stylesheet addition you provided fixed it for me. It worked for Chrome running on the Mac too. --Tom Schueller 14-Jun-2010 11:11 PDT
With JAMWiki 0.9.0 a topic delete doesn't remove the topic from the cache. -- Ryan • (comments) • 09-Jul-2010 21:00 PDT
We've upgraded to jamwiki 0.9.0 on tomcat 5.5 with an Oracle 9.2.0.8 database and oracle 10.2 thin jdbc driver. So far all working fine (apart from having to do some manual DB work) but when trying to refresh the search index through maintenance page i get the following sql error:
010-07-01 11:10:20,767 SEVERE: org.jamwiki.search.LuceneSearchEngine - Failure while refreshing search index
org.jamwiki.DataAccessException: java.sql.SQLException: Invalid operation for forward only resultset : isLast
at org.jamwiki.db.AnsiDataHandler.lookupTopic(AnsiDataHandler.java:743)
at org.jamwiki.search.LuceneSearchEngine.refreshIndex(LuceneSearchEngine.java:301)
at org.jamwiki.servlets.AdminServlet.refreshIndex(AdminServlet.java:360)
at org.jamwiki.servlets.AdminServlet.handleJAMWikiRequest(AdminServlet.java:76)
at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:258)
[.. theres more stuff ..]
Caused by: java.sql.SQLException: Invalid operation for forward only resultset : isLast
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:190)
at oracle.jdbc.driver.OracleResultSetImpl.isLast(OracleResultSetImpl.java:485)
at org.apache.commons.dbcp.DelegatingResultSet.isLast(DelegatingResultSet.java:317)
at org.jamwiki.db.AnsiQueryHandler.initTopic(AnsiQueryHandler.java:1240)
This is a bit of a pain as this happens after only 30 or so topics have been parsed (out of ~7000). Any idea? Thanks/
cmasuch • 01-Jul-2010 11:30 am BST
while (!rs.isLast()) {
// go to the last result - do not use rs.last() since result set may be FORWARD_ONLY
rs.next();
}
Upgraded from 0.8.2 to 0.9.0. Refreshing the index reports success, but log gets a lot of the below. Thoughts?
I'm on Tomcat 6.0.26 against postgresql 8.4.2 with JDBC library postgresql-8.4-701.jdbc4.jar. The migration is otherwise successful (though I'm also going to report an unavailable virtual wiki issue shortly, however don't have as stack trace to provide...)
2010-07-17 23:31:50,289 SEVERE: org.jamwiki.search.LuceneSearchEngine - Failure while refreshing search index org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/home/tomcat/.sites/conf/search/indexen/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:84) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1045) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:868) at org.jamwiki.search.LuceneSearchEngine.retrieveIndexWriter(LuceneSearchEngine.java:372) at org.jamwiki.search.LuceneSearchEngine.refreshIndex(LuceneSearchEngine.java:296) at org.jamwiki.servlets.AdminServlet.refreshIndex(AdminServlet.java:360) at org.jamwiki.servlets.AdminServlet.handleJAMWikiRequest(AdminServlet.java:76) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:258) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) ''trimmed'' at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) 2010-07-17 23:31:51,292 SEVERE: org.jamwiki.search.LuceneSearchEngine - Failure while refreshing search index org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/home/tomcat/.sites/conf/search/indexpathfinder/write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:84) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1045) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:868) at org.jamwiki.search.LuceneSearchEngine.retrieveIndexWriter(LuceneSearchEngine.java:372) at org.jamwiki.search.LuceneSearchEngine.refreshIndex(LuceneSearchEngine.java:296) at org.jamwiki.servlets.AdminServlet.refreshIndex(AdminServlet.java:360) at org.jamwiki.servlets.AdminServlet.handleJAMWikiRequest(AdminServlet.java:76) at org.jamwiki.servlets.JAMWikiServlet.handleRequestInternal(JAMWikiServlet.java:258) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) ''trimmed'' at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619)
From above Lucene report: "Tomcat 6.0.26 against postgresql 8.4.2 with JDBC library postgresql-8.4-701.jdbc4.jar. The migration is otherwise successful." It seems to be difficult to debug because the logs are silent on the matter, only Apache or Tomcat access logging is available (providing only 404 records). Unfortunately, I was also reviewing my logrotate configuration during the migration and noted my catalina.out had grown to nearly 1.5GB (not a typo). I clobbered that log in the clean up, losing what would have been my migration log. Sorry.
The new Virtual Wiki configuration however does show the "lost" VW in the dropdown (will provide screenshots if helpful). Otherwise, any attempt to view the VW fails with 404. Could it be a change in how VWs are referenced from 0.8.2?
/WEB-INF/web.xml (see Configuration#Virtual Wikis)? Based on the description of the issue that would be my first guess as to what might be wrong. -- Ryan • (comments) • 18-Jul-2010 08:40 PDT
With JAMWiki 1.0.0 (and probably earlier versions) I'm getting an error when trying to update my own account that ROLE_SYSADMIN cannot be removed, even though I'm not removing that role. -- Ryan • (comments) • 07-Aug-2010 11:59 PDT
File.renameTo() doesn't work with non-image files in JAMWiki 0.9.0. I get the upload.error.filerename message.
It seems there some issues with renameTo method :
ImageUtils.loadImage() method has changed and the FileInputStream isn't closed anymore.
A come back to 0.8.4 version of ImageUtils.loadImage() seems necessary.
Problem is with:
Utilities.getWebappRoot().getName()
(line cca 368). getWebappRoot() may return null (example: websphere). Add null-check (and use tmpdir if null). —The preceding comment was added by igor (comments • contribs) .
java.io.tmpdir variable set to a valid directory it appears that a failure could occur. I'll dig into the Spring classes for reading files from the class loader root and see if they have a workaround. Sorry for the trouble! -- Ryan • (comments) • 23-Sep-2010 18:06 PDT
1) Environment.java. try/catch Throwable in static block should stay, but this doesn't fix the issue.
2) Utilities.java. Here lies the root of the issue. I will go in logical order
2.1) getClassLoaderRoot() searches for ApplicationResources.properties to determine the root. First, if jamwiki-core.jar is deployed *alone* (without jamwiki-war.core) then this file doesn't exists. Moreover, it probably exist in some other jar (since the name is common). So what I did is to lookup for jamwiki-core.properties, a dummy file I've added to the resources, so it will be bundled with the jamwiki-core.jar and the name is unique.
2.2) getClassLoaderFile() unfortunately uses commons FileUtils.copyURLToFile() that doesnt copy file from ZIP(JAR) to the destination. Therefore the whole try block looks like:
String tempFilename = RandomStringUtils.randomAlphanumeric(20); file = File.createTempFile(tempFilename, null); InputStream is = loader.getResourceAsStream(filename); OutputStream os = new FileOutputStream(file); IOUtils.copy(is, os); IOUtils.closeQuietly(is); IOUtils.closeQuietly(os);
that will do the job. Also, please note the randomAlphanumeric()! since you are currently use random() and that gives hell of characters and might give some non allowed names!
2.3) getWebappRoot() is the next stop: you are assuming that we are in the WEB-INF/classes so there are 2 parents, but getClassLoaderRoot() may return a file from TEMP folder, and TEMP folder might be just in root - so there are no TWO parents! I fixed this quickly with:
File webAppRoot = Utilities.getClassLoaderRoot();
if (webAppRoot.getParentFile() != null) {
webAppRoot = webAppRoot.getParentFile();
if (webAppRoot.getParentFile() != null) {
webAppRoot = webAppRoot.getParentFile();
}
}
return webAppRoot;
So that solves things. Moreover, on appservers like Weblogic, old commons-lang (from app server) may be classloaded before v2.5 needed for jamwiki, and therefore users have to configure app server to load correct version of commons-lang.
versions tested: jamwiki-0.9.3 jamwiki-0.8.4
os: debian lenny with tomcat
The click on History button cause this error
A system error has occurred. The error message is:
org.apache.jasper.JasperException: /WEB-INF/jsp/history.jsp(44,61) "${change.import}" contains invalid expression(s): javax.el.ELException: [import] is not a valid Java identifier
with this call stack
org.apache.jasper.JasperException: /WEB-INF/jsp/history.jsp(44,61) "${change.import}" contains invalid expression(s): javax.el.ELException: [import] is not a
valid Java identifier
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1217)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:870)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:889)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1539)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2428)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2434)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:475)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2376)
at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1789)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:216)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:365)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:345)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:327)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:363)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:306)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:580)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:517)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:930)
at org.apache.jsp.WEB_002dINF.jsp.wiki_jsp._jspService(wiki_jsp.java:272)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:363)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:306)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:330)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.jamwiki.authentication.JAMWikiPostAuthenticationFilter.doFilter(JAMWikiPostAuthenticationFilter.java:78)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.jamwiki.servlets.JAMWikiFilter.doFilter(JAMWikiFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:203)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:558)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:379)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:242)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:259)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:281)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
I am having the same issue on JAMWiki Version 0.9.3. I am running Apache Tomcat/7.0.4 with Java 1.6.0_22 on Win XP SP3.
I did a clean install. I tried deleting the work folder and still no history. I was able to get the history page working by setting the following system property
SET JAVA_OPTS="-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true"
I confirm, deleting work folder don't resolve the problem. The env var work for me too! History work with this at tomcat start: JAVA_OPTS="-Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true" This is my Tomcat and SO informations: Apache Tomcat/7.0.4 1.6.0_0-b11 Sun Microsystems Inc. Linux 2.6.35-22-generic amd64
like in this page:
http://jamwiki.org/wiki/en/Help:Links#Internal_links
the result of
[http://{{SERVERNAME}}/pagename]
is
http://http://jamwiki.org/pagename
with a wrong link address:
http://%3cnowiki%3ehttp//jamwiki.org%3C/nowiki%3E/pagename
Jamwiki 0.9.3
Running under Jetty-6.1.22/Windows XP Pro/Internal Database (HSQL)
Steps to reproduce:
=Level 1= ==Level 2== ===Level 3=== ====Level 4==== =====Level 5===== ======Level 6====== =======Level 7=======
The page will be rendered incorrectly with some extra markup. If you remove level 7 it works as expected.
<span style='"><script>alert("XSS")</script>'>d</span> Does the standard evil XSS stuff. Cheers. (I hope its ok to post security issues to this public page). bawolff 02-Jan-2011 01:28 PST
If i try to deploy the file on JBoss, running at an Ubuntu-server, i get the following Error:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jamwiki-0.9.1]] (HDScanner) Exception sending context initialized event to listener instance of class org.jamwiki.servlets.JAMWikiListener java.lang.ExceptionInInitializerError at org.jamwiki.utils.WikiUtil.<clinit>(WikiUtil.java:66) at org.jamwiki.servlets.JAMWikiListener.contextInitialized(JAMWikiListener.java:37) ... Caused by: java.lang.NullPointerException at org.jamwiki.Environment.retrieveDefaultRelativeUploadDirectory(Environment.java:368) at org.jamwiki.Environment.initDefaultProperties(Environment.java:213) at org.jamwiki.Environment.<init>(Environment.java:123) at org.jamwiki.Environment.<clinit>(Environment.java:116)
This Error didn't appear on Windows.
JAMWiki 0.7, Jboss 5, CentOS 5.2
Complete newbie in Jboss and JAMWiki. I installed all following basic installation guides. Deployed JAMWiki in JBoss in the default server configuration. Opened up the Jamwiki setup page easily. Noticed that the Data Type drop down list is empty. Upon further inspection, I found that the sql.*.properties files in the classes directory are not being found. Any attempt to set the database properties fail becuase there are no sql properties to use (I assume). Is there something I must do to specify the web app root? Either in Jboss or JAMWiki? Some relevant errors follow:
2009-03-23 18:24:42,521 SEVERE: org.jamwiki.Environment - Failure while trying t o retrieve default file upload directory java.io.FileNotFoundException: Found invalid root class loader for file Applicat ionResources.properties
at org.jamwiki.utils.Utilities.getClassLoaderFile(Utilities.java:357)
at org.jamwiki.utils.Utilities.getClassLoaderRoot(Utilities.java:372)
at org.jamwiki.utils.Utilities.getWebappRoot(Utilities.java:397)
at org.jamwiki.Environment.retrieveDefaultUploadDirectory(Environment.java:350)
at org.jamwiki.Environment.initDefaultProperties(Environment.java:186
2009-03-23 18:24:42,544 WARNING: org.jamwiki.Environment - Property file jamwiki.properties does not exist 2009-03-23 18:24:42,595 SEVERE: org.jamwiki.Environment - Error while searching for resource sql.ansi.properties java.io.FileNotFoundException: Found invalid root class loader for file ApplicationResources.properties at org.jamwiki.utils.Utilities.getClassLoaderFile(Utilities.java:357) at org.jamwiki.utils.Utilities.getClassLoaderRoot(Utilities.java:372) at org.jamwiki.Environment.retrievePropertyFile(Environment.java:376) at org.jamwiki.Environment.findProperties(Environment.java:143)
Update: downgraded Jboss to 4.2.3 and the problem went away.