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