[
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.