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
1Test.txt 40.6 kB 1 28-Nov-2007 05:57 204.254.175.249
policy
jspwiki.policy 2.9 kB 1 15-Feb-2006 20:45 198.102.62.250

This page (revision-55) was last changed on 17-Aug-2008 19:20 by LTietze  

This page was created on 25-Feb-2003 19:08 by JeffPhillips

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 6 removed 33 lines
\\
With Tomcat 5.0.28, I get an NPE which is caused by a null value passed to the setPage() method in the IncludeTag.\\
By watching the logs in detail, I get:\\ \\
2006-06-24 21:44:40,683 [http-8080-Processor24] DEBUG com.ecyrd.jspwiki.auth.AuthorizationManager JSPWiki:Main
- Page defines no permissions for manuel, checking defaults.\\
2006-06-24 21:44:40,683 [http-8080-Processor24] DEBUG com.ecyrd.jspwiki.auth.AuthorizationManager JSPWiki:Main
- No defaults exist, falling back to hardcoded permissions.\\
2006-06-24 21:44:40,683 [http-8080-Processor24] DEBUG com.ecyrd.jspwiki.auth.AuthorizationManager JSPWiki:Main
- Permission ViewPermission for user UserProfile: 'manuel' is 1\\
2006-06-24 21:44:40,715 [http-8080-Processor24] DEBUG com.ecyrd.jspwiki.WikiEngine JSPWiki:Main - Servlet path
is: /Error.jsp\\
2006-06-24 21:44:40,715 [http-8080-Processor24] DEBUG com.ecyrd.jspwiki.WikiEngine JSPWiki:Main - Mapped to nul
l\\
2006-06-24 21:44:40,722 [http-8080-Processor24] DEBUG JSPWiki JSPWiki:Main JSPWiki:Main - Error.jsp exceptio
n is:\\
java.lang.NullPointerException\\
at com.ecyrd.jspwiki.TemplateManager.findJSP(TemplateManager.java:155)\\
at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:66)\\
at org.apache.jsp.wiki2.Wiki_jsp._jspService(Wiki_jsp.java:147)\\
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)\\
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)\\
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)\\
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)\\
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)\\
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)\\
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)\\
...\\
\\
\\
\\
Any help would be apreciated\\
\\
--[Manu]
At line 7 added one line
JSPWiki is developed on Tomcat, so all versions since 4.0 should work.
At line 41 changed 4 lines
! [Jo|http://www.tagtraum.com]
It works very good, versioning is working, too.\\
At the moment I have only a problem on attaching files.\\
--[RimElrey]
![WebLogic]
At line 46 changed one line
! [Bea WebLogic | http://www.bea.com]
There are some issues on the 2.4 series, pre-2.4.51 on WebLogic 9, so please upgrade.
At line 48 removed 48 lines
I have it running on WLS, actually I also work for BEA incidentally. Let me know if there are any issues - [Dain Hansen]
__Tag Error with 5.1, 6.1, and possibly others:__
{{{
weblogic.servlet.jsp.JspException: (line 5): Error in using tag library uri='/WEB-INF/jspwiki.tld'
prefix='wiki': The Tag class 'com.ecyrd.jspwiki.tags.AttachmentsIteratorTag' has no setter method
corresponding to TLD declared attribute 'page', (JSP 1.1 spec, 5.4.1)
}}}
To fix add the setPage and getPage methods to com.ecyrd.jspwiki.tags.~IteratorTag, which is the parent file, from one of the other tag source files like ~IncludeTag.java.
Actually, the problem was that the attribute "page" in jspwiki.tld was extraneous (a cut-n-paste error). Fixed in 2.0.33.
-- JanneJalkanen
Sorry, but I'm still noticing this problem in 2.0.36 with ~AttachmentsIteratorTag, and also ~SearchResultIteratorTag, ~HistoryIteratorTag classes.
-- JeffPhillips
I must've been eating the wrong kind of mushrooms or something. It seems to be fixed in 2.1.x, but not in 2.0.x. The fix is ''really'' now in 2.0.41. I checked. Many times. A third release of the stable branch will be forthcoming. In the meanwhile, you can just remove the "page"-attribute totally from any conflicting TLD entries. For more information, see [JSPWikiDownload].
-- JanneJalkanen
Unfortunately, this problem resurfaces in 2.1.115-alpha (on Weblogic 8.1). I solved it by adding four blank methods to IteratorTag.java:
*{{public void setPage( String page ) { } }}
*{{public void setAttribute( String attr ) { } }}
*{{public String getPage( ) { return null; } }}
*{{public String getAttribute( ) { return null; } }}
I am not sure whether I could just delete the attributes from {{jspwiki.tld}} or not, but adding blank methods seems to have worked -- Search works.
-- MikeTikilyaynen
There is still an error in de jspwiki.tld file (seems to already exist from version 2.1.134 and probably earlier), I m using 2.1.160 now:\\
In the 'Content' tag there is an empty tag, between 'error' and 'edit' (around line 150), you have to remove it.\\
Tomcat seems to have no problems with it, WL has.\\
However, after removing this it worked on WL 8.1 but 6.1 still gave me the same error, I still can not figure out why.
-- MP, 07-04-2005
__CamelCase Not Working Problem__
WebLogic contains the JakartaOro package in it's default weblogic.jar. This older version may cause the TranslatorReader to not match any CamelCase patterns. ''Confirmed the "broken" versions of Oro are 2.0 and 2.0.1. Versions 2.0.2 to 2.0.7 appear to work properly.''
The workaround is to pre-append the JSPWiki's __oro.jar__ to the classpath before weblogic.jar in startWebLogic.sh. However, this may break other apps that depend on the other version of Oro.
-- JeffPhillips
At line 97 removed one line
It runs well on WebSphere Application Server V5.0. The Versioning File provider is working too. Have not tested file attachments yet.
At line 15 added one line
It runs well on WebSphere Application Server V5.0. The Versioning File provider is working too. Have not tested file attachments yet.
At line 100 removed one line
[Sphere Training| http://www.training-co.info]
At line 102 removed 4 lines
--[Lance Bader|ldbader]
At line 39 added 13 lines
I tested JSPWiki 2.4.6 with resin 3.x and after some modifications , we could able to configure JAAS .
-- __Kishore__
This bug is being tracked on Resin, as [bug id #1008|http://bugs.caucho.com/view.php?id=1008]. A fix is to be expected soon for Resin 3.
I've tested Resin 3.0.22[http://www.caucho.com/download/resin-3.0.22.zip] released on 2006/11/13, seems works fine now, yet i'm not doing fully test of this.
-- __Jacky Liu__ 2006/12/16
Jacky, good to hear that it's working for you. The first bug Caucho closed did not actually fix the issue, so [I opened a second bug report|http://bugs.caucho.com/view.php?id=1333] and submitted a patch. They did something a little differently from the patch I proposed. But what they did should have done the trick -- I just haven't had time to verify it. But if you've been able to get security features working, then all should be well. Could you please add some suitable documentation for Resin on [the 2.4 documentation page | http://doc.jspwiki.org/2.4/wiki/InstallingJSPWiki]? Thanks.
-- Andrew Jaquith, 16-Dec-2006
At line 135 changed 2 lines
![Oracle Application Server|http://www.oracle.com/appserver/index.html]
It runs well on Oracle Application Server 10g (9.04). The Versioning File provider and attachments are working too.
JSPWiki 2.4 also runs nicely on Jetty 6.
At line 62 added 20 lines
-- JanneJalkanen
Hi I'm getting attachment issues with Jetty 6.1.3
{{{
java.lang.NoSuchMethodError:
java.lang.String.contains(Ljava/lang/CharSequence;)
at com.ecyrd.jspwiki.attachment.AttachmentServlet.validateNextPage(AttachmentServlet.java:522)
}}}
Anybody have any ideas?
-- FL
answer: I think your JSPWiki has been compiled with JDK 5, and your runtime is JDK 1.4 .
--HarryMetske
![Oracle Containers for Java EE|http://www.oracle.com/technology/tech/java/oc4j/index.html]
JSPWiki 2.2 runs well on Oracle Application Server 10g (9.04).
At line 84 added 6 lines
Unfortunately, there is a known problem with JSPWiki 2.4 security and OC4J, which we don't expect to fix very soon. More information is [in this mailing list thread|http://www.nabble.com/Permission-problems-with-OC4J-standalone-t3939568.html].
Installed JSPWiki 2.6.3 on OC4J 10.1.3.1. Needs some [changes|OC4J].
--[Lutz Tietze|mailto://lutz.tietze@tietzenet.de]
At line 91 added one line
Version Date Modified Size Author Changes ... Change note
55 17-Aug-2008 19:20 4.848 kB LTietze to previous
54 17-Aug-2008 13:24 4.928 kB LTietze to previous | to last
53 19-Jan-2008 19:12 4.906 kB LTietze to previous | to last
52 18-Dec-2007 19:19 4.772 kB HarryMetske to previous | to last answered question of FL
51 18-Dec-2007 14:40 4.663 kB 81.149.202.230 to previous | to last
50 26-Sep-2007 23:18 4.388 kB JanneJalkanen to previous | to last
49 26-Sep-2007 02:07 4.41 kB 216.23.162.164 to previous | to last
48 26-Sep-2007 02:07 4.397 kB 161.200.255.162 to previous | to last
47 06-Sep-2007 00:54 4.388 kB JanneJalkanen to previous | to last
46 16-Dec-2006 07:47 4.066 kB Andrew Jaquith to previous | to last Updated Resin compatibility note
45 16-Dec-2006 05:59 3.441 kB Jacky Liu to previous | to last
44 06-Nov-2006 05:31 3.47 kB Jacky Liu to previous | to last
43 06-Nov-2006 05:30 3.394 kB Jacky Liu to previous | to last
42 09-Sep-2006 18:36 3.251 kB JanneJalkanen to previous | to last Added note on Resin
41 14-Jul-2006 18:48 5.378 kB 199.43.48.87 to previous | to last
« This page (revision-55) was last changed on 17-Aug-2008 19:20 by LTietze