I removed it and commented it out to fix the problem. Bob
Message view < </mod_mbox/incubator-jspwiki-user/200803.mbox/%3c56ECC9A4-023F-4435-A1B5 [EMAIL PROTECTED]> Date </mod_mbox/incubator-jspwiki-user/200803.mbox/date> > </mod_mbox/incubator-jspwiki-user/200803.mbox/[EMAIL PROTECTED] com%3e> * < </mod_mbox/incubator-jspwiki-user/200803.mbox/%3c46F5112156BC31469A43CE8 [EMAIL PROTECTED]> Thread </mod_mbox/incubator-jspwiki-user/200803.mbox/thread> > </mod_mbox/incubator-jspwiki-user/200803.mbox/%3c53FB8E10-FD0D-49B6-8809 [EMAIL PROTECTED]> Top <> < </mod_mbox/incubator-jspwiki-user/200803.mbox/%3c56ECC9A4-023F-4435-A1B5 [EMAIL PROTECTED]> Date </mod_mbox/incubator-jspwiki-user/200803.mbox/date> > </mod_mbox/incubator-jspwiki-user/200803.mbox/[EMAIL PROTECTED] com%3e> * < </mod_mbox/incubator-jspwiki-user/200803.mbox/%3c46F5112156BC31469A43CE8 [EMAIL PROTECTED]> Thread </mod_mbox/incubator-jspwiki-user/200803.mbox/thread> > </mod_mbox/incubator-jspwiki-user/200803.mbox/%3c53FB8E10-FD0D-49B6-8809 [EMAIL PROTECTED]> From Janne Jalkanen <[EMAIL PROTECTED]> Subject Re: A "HTTP Status 404 - Attachment"Main", version -1 does not exist Date Fri, 21 Mar 2008 07:42:11 GMT Hi! Did you remove this *before* you had this problem, or did you remove it to fix the problem? /Janne On Mar 19, 2008, at 22:39 , Berg, Robert L wrote: > Janne, > Found the problem in the web.xml file. I removed the attach reference > from the Read-only Area: > > <!-- <url-pattern>/attach</url-pattern> from > <web-resource-collection> temp Bob Berg --> > <web-resource-collection> > <web-resource-name>Read-only Area</web-resource-name> > <http-method>DELETE</http-method> > <http-method>POST</http-method> > <http-method>PUT</http-method> > </web-resource-collection> > > > Hmm... Then I have to admit that I have no idea what might be going > on. Could you poke around and see if there is any common factor? > Try different browsers, check permissions on temp directories, try > without container security, etc. Then send some log files to the > list? > > /Janne > > On Mar 11, 2008, at 22:35 , Berg, Robert L wrote: > >> > > -----Original Message----- > From: Berg, Robert L > Sent: Tuesday, March 11, 2008 1:35 PM > To: '[email protected]' > Subject: RE: A "HTTP Status 404 - Attachment"Main", version -1 does > not > exist > > > > Janne, > I'm using the default template > > jspwiki.templateDir = default > > # > # Preferences for default template > # > jspwiki.defaultprefs.template.skinname =PlainVanilla > jspwiki.defaultprefs.template.dateformat =dd-MMM-yyyy HH:mm > jspwiki.defaultprefs.template.timezone =GMT+01:00 > jspwiki.defaultprefs.template.orientation =fav-left > jspwiki.defaultprefs.template.editor =plain > > Any chance you're using the brushed template? > > You're not the only one who has had this problem, and I think the > common > factor has been that people are using brushed. > > /Janne > > -----Original Message----- > From: Berg, Robert L > Sent: Monday, March 10, 2008 12:49 PM > To: '[email protected]' > Subject: A "HTTP Status 404 - Attachment"Main", version -1 does not > exist > > >> I installed JSPWiki 2.4.102 and setup container managed security >> using > a MySql database(with the reccommended JDBC connector) to store user > id's, roles(Admin, Auhenticated), and digested passwords. The > jspwiki.policy is used. I copied the application data files over from > the older version(2.4.102) and the Everthing seems to work well except > uploading attachments. When I attempt to upload an attachment on a > jspwiki page, I get a: >> >> "HTTP Status 404 - Attachment "Main", version -1 does not exist" >> message: Attachment 'Main', version -1 does not exist >> description: The requested resource (Attachment 'Main', version -1 >> does not exist.) is not available Apache Tomcat/5.5.23 >> jspwiki.properties contains: >> jspwiki.basicAttachmentProvider.storageDir = >> c:\\p\\web\\www-data\\jspwiki jspwiki.fileSystemProvider.pageDir = >> c:\\p\\web\\www-data\\jspwiki > > The error occurs after I have browsed to the file I would like to have > attached to the page. I immediately get the error. "attach.ppt" shows > the "Add New Attachment" window in the IE browser just before I > activate > the "Upload" button. The window shows one attachment that I recently > added manually by editing the wiki data to see if I could try to > workaround the upload issue. This "Hello World.ppt" attachment > displays > when in double click on it. So the problem is getting the attachment > loaded. Once its loaded I can view it in the normal way. > > I found no files in my C:/tmp/attach-tmp directory, nor in the > expected > location in the data files. > > The attachments contain my configuration files which are both > tomcat and > wiki. > > I have implemented the wiki to have container mangaged security, with > user names, roles, and passwords stored in a MySql database. The > passowrds are encrypted using the MD5 algorithm. We require that when > the wiki is invoked, the login page appears and nothing in the wiki > can > be viewed until a valid login has occurred. We are using SSL/TLS > (https) > to handle the login. All user id's, passwords, and roles are > created by > myself manually and inserted into the MySql database. The current > roles > we are using are: ADMIN and AUTHENTICATED. Everything is working great > except uploading attachments. > > Anyone have a idea on how to fix the problem?
