You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Robert Berg (JIRA)" <ji...@apache.org> on 2008/02/22 20:31:19 UTC

[jira] Created: (JSPWIKI-198) A "HTTP Status 404 - Attachment "Main", version -1 does not exist

A "HTTP Status 404 - Attachment "Main", version -1 does not exist
-----------------------------------------------------------------

                 Key: JSPWIKI-198
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-198
             Project: JSPWiki
          Issue Type: Bug
          Components: Authentication&Authorization
    Affects Versions: 2.6.1
         Environment: XP, JSPWiki 2.4.102, Apache Tomcat 5.5.23, IE Version 6.0.2900....
            Reporter: Robert Berg


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

How do I get attachments to work?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-198) A "HTTP Status 404 - Attachment "Main", version -1 does not exist

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574255#action_12574255 ] 

Janne Jalkanen commented on JSPWIKI-198:
----------------------------------------

Also, could you please describe exactly what you are doing?  Does the file appear in the attachment directory? How about in your workDir/attach-tmp?  Does the upload succeed and then you get the error, or does it appear when you just go to Upload.jsp?

There are no errors in the log files, so therefore this is almost impossible to debug...

> A "HTTP Status 404 - Attachment "Main", version -1 does not exist
> -----------------------------------------------------------------
>
>                 Key: JSPWIKI-198
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-198
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.1
>         Environment: XP, JSPWiki 2.4.102, Apache Tomcat 5.5.23, IE Version 6.0.2900....
>            Reporter: Robert Berg
>         Attachments: catalina.2008-02-26.log, jspwiki.log, localhost.2008-02-26.log
>
>
> 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
> How do I get attachments to work?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-198) A "HTTP Status 404 - Attachment "Main", version -1 does not exist

Posted by "Mark Connaughton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862811#action_12862811 ] 

Mark Connaughton commented on JSPWIKI-198:
------------------------------------------

I just fixed essentially the same issue in my setup.  Using Apache with mod_jk to redirect requests to a Tomcat instance that serves only JSPWiki. 

A virtual host is used to point to Tomcat in the httpd-vhosts.conf file and according to my Apache logs the permissions weren't being correctly routed. I added the following to my virtual host
based on the advice of one of the pages on JSPWiki and the setup of my workers.properties file:

JkMount /attach/* worker2
JkMount /attach* worker2
JkMount /RPC/* worker2
JkMount /RPC* worker2

I also added the /attach and /RPC directories to the JSPWiki structure, though I suspect that may not actually be necessary as part of the solution. Hopefully this helps.

> A "HTTP Status 404 - Attachment "Main", version -1 does not exist
> -----------------------------------------------------------------
>
>                 Key: JSPWIKI-198
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-198
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.1
>         Environment: XP, JSPWiki 2.4.102, Apache Tomcat 5.5.23, IE Version 6.0.2900....
>            Reporter: Robert Berg
>         Attachments: attach.ppt, catalina.2008-02-26.log, jspwiki.log, jspwiki.policy, jspwiki.properties, localhost.2008-02-26.log, server.xml, web.xml, web.xml
>
>
> 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
> How do I get attachments to work?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-198) A "HTTP Status 404 - Attachment "Main", version -1 does not exist

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574252#action_12574252 ] 

Janne Jalkanen commented on JSPWIKI-198:
----------------------------------------

How does your jspwiki.basicAttachmentProvider.storageDir property look like?  Is it connected to a valid path?

You need to subscribe by sending an email to jspwiki-user-subscribe at incubator.apache.org.

> A "HTTP Status 404 - Attachment "Main", version -1 does not exist
> -----------------------------------------------------------------
>
>                 Key: JSPWIKI-198
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-198
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.1
>         Environment: XP, JSPWiki 2.4.102, Apache Tomcat 5.5.23, IE Version 6.0.2900....
>            Reporter: Robert Berg
>         Attachments: catalina.2008-02-26.log, jspwiki.log, localhost.2008-02-26.log
>
>
> 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
> How do I get attachments to work?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (JSPWIKI-198) A "HTTP Status 404 - Attachment "Main", version -1 does not exist

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janne Jalkanen closed JSPWIKI-198.
----------------------------------

    Resolution: Won't Fix

This is a configuration issue, not a bug in the system, so I'm closing this.  Configuration problems would be better dealt on the mailing list.

We need to have the log files in order to help you.

> A "HTTP Status 404 - Attachment "Main", version -1 does not exist
> -----------------------------------------------------------------
>
>                 Key: JSPWIKI-198
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-198
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Authentication&Authorization
>    Affects Versions: 2.6.1
>         Environment: XP, JSPWiki 2.4.102, Apache Tomcat 5.5.23, IE Version 6.0.2900....
>            Reporter: Robert Berg
>
> 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
> How do I get attachments to work?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.