You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Jochen Reutelshoefer (JIRA)" <ji...@apache.org> on 2009/07/03 16:46:47 UTC
[jira] Created: (JSPWIKI-575) Attachment objects with wrong version
numbers (-1)
Attachment objects with wrong version numbers (-1)
--------------------------------------------------
Key: JSPWIKI-575
URL: https://issues.apache.org/jira/browse/JSPWIKI-575
Project: JSPWiki
Issue Type: Bug
Components: Core & storage
Affects Versions: 2.8.2
Environment: Win, Tomcat, IE + FF
Reporter: Jochen Reutelshoefer
If a new version of an attachment is uploaded jspwiki looks for the old version. This old version can not be found because its looked up with a wrong page name (AttachmentServlet.executeUpload()). We believe the reason is that the current page name is not contained in this request. (DefaultURLConstructor.parsePage())
We are implmenting a plugin that listens attachment file versions and we cannot manage to do so because the version number fo the Attachment is always -1.
When the server is restartet all version numbers are initialized correctly but will be corrupted by new uploads of the particular file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-575) Attachment objects with wrong
version numbers (-1)
Posted by "Jochen Reutelshoefer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727980#action_12727980 ]
Jochen Reutelshoefer commented on JSPWIKI-575:
----------------------------------------------
Its a little difficult. Pressing the upload button triggers several requests. Only the very first seems erroneous. The problem occurs in AttachmentServlet.executeUpload() line 779 in 2.8.2:
Attachment att = mgr.getAttachmentInfo( context.getPage().getName() );
There the context delivers the wrong page name (Main) instead of the real name - following the trace it shows up that the actual pagename cannot be read out of the request when creating the context.
I hope this is a little bit more precise...
> Attachment objects with wrong version numbers (-1)
> --------------------------------------------------
>
> Key: JSPWIKI-575
> URL: https://issues.apache.org/jira/browse/JSPWIKI-575
> Project: JSPWiki
> Issue Type: Bug
> Components: Core & storage
> Affects Versions: 2.8.2
> Environment: Win, Tomcat, IE + FF
> Reporter: Jochen Reutelshoefer
>
> If a new version of an attachment is uploaded jspwiki looks for the old version. This old version can not be found because its looked up with a wrong page name (AttachmentServlet.executeUpload()). We believe the reason is that the current page name is not contained in this request. (DefaultURLConstructor.parsePage())
> We are implmenting a plugin that listens attachment file versions and we cannot manage to do so because the version number fo the Attachment is always -1.
> When the server is restartet all version numbers are initialized correctly but will be corrupted by new uploads of the particular file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (JSPWIKI-575) Attachment objects with wrong
version numbers (-1)
Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JSPWIKI-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727112#action_12727112 ]
Harry Metske commented on JSPWIKI-575:
--------------------------------------
Could you be a bit more specific about which piece of code you think is wrong ?
I also tried to recreate the problem on the current 2.8.3-svn-10 (Tomcat 6.0.18 / Linux), but could not reproduce it.
While attaching the same file several times, the Attachment revision history shows increasing numbers, I did not notice -1 versions.
> Attachment objects with wrong version numbers (-1)
> --------------------------------------------------
>
> Key: JSPWIKI-575
> URL: https://issues.apache.org/jira/browse/JSPWIKI-575
> Project: JSPWiki
> Issue Type: Bug
> Components: Core & storage
> Affects Versions: 2.8.2
> Environment: Win, Tomcat, IE + FF
> Reporter: Jochen Reutelshoefer
>
> If a new version of an attachment is uploaded jspwiki looks for the old version. This old version can not be found because its looked up with a wrong page name (AttachmentServlet.executeUpload()). We believe the reason is that the current page name is not contained in this request. (DefaultURLConstructor.parsePage())
> We are implmenting a plugin that listens attachment file versions and we cannot manage to do so because the version number fo the Attachment is always -1.
> When the server is restartet all version numbers are initialized correctly but will be corrupted by new uploads of the particular file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.