[
https://issues.apache.org/jira/browse/JSPWIKI-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14073293#comment-14073293
]
Leonardo Costantini commented on JSPWIKI-575:
---------------------------------------------
Hi again,
I would add some more info:
I see this in the info tab of the page I'm try to attach the data:
This page (revision-1) was last changed on 2014-07-22 12:29:33 by Leonardo
In the log it appears:
[ 2014-07-24 17:19:41.246 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:276] - Getting attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014],
name=CostaLeo, version=-1
[ 2014-07-24 17:19:41.247 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:296] - M.I.T.E. FOUND in
the cache
[ 2014-07-24 17:19:41.251 GMT+0200 ] DEBUG [
org.apache.wiki.WikiEngine:1529] - Page M.I.T.E. rendered, took 0:00:00.005
[ 2014-07-24 17:19:41.261 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:171] - Listing attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014]
[ 2014-07-24 17:19:41.262 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:177] - LIST from cache,
M.I.T.E., size=0
[ 2014-07-24 17:19:41.270 GMT+0200 ] DEBUG [
org.apache.wiki.tags.InsertPageTag:119] - Inserting page WikiPage
[HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014]
[ 2014-07-24 17:19:41.273 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:276] - Getting attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014],
name=logosmall.png, version=-1
[ 2014-07-24 17:19:41.273 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:296] - M.I.T.E. FOUND in
the cache
[ 2014-07-24 17:19:41.274 GMT+0200 ] DEBUG [
org.apache.wiki.WikiEngine:1529] - Page M.I.T.E. rendered, took 0:00:00.003
[ 2014-07-24 17:19:41.276 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:171] - Listing attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014]
[ 2014-07-24 17:19:41.276 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:177] - LIST from cache,
M.I.T.E., size=0
[ 2014-07-24 17:19:41.283 GMT+0200 ] DEBUG [
org.apache.wiki.auth.SessionMonitor:117] - Looking up WikiSession for session
ID=uHIE1EGI8xtManSOWefhRe0... found it
[ 2014-07-24 17:19:41.284 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:276] - Getting attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014],
name=CostaLeo, version=-1
[ 2014-07-24 17:19:41.284 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:296] - M.I.T.E. FOUND in
the cache
[ 2014-07-24 17:19:41.289 GMT+0200 ] DEBUG [
org.apache.wiki.WikiEngine:1529] - Page M.I.T.E. rendered, took 0:00:00.005
[ 2014-07-24 17:19:41.300 GMT+0200 ] DEBUG [
org.apache.wiki.WikiEngine:1529] - Page M.I.T.E. rendered, took 0:00:00.006
[ 2014-07-24 17:19:41.300 GMT+0200 ] DEBUG [
org.apache.wiki.tags.InsertPageTag:119] - Inserting page WikiPage
[HelpWiki:LeftMenu,ver=1,mod=Fri Jul 18 17:14:22 CEST 2014]
[ 2014-07-24 17:19:41.301 GMT+0200 ] DEBUG
[org.apache.wiki.render.RenderingManager:186] - Using cached HTML for page
LeftMenu::1
[ 2014-07-24 17:19:41.302 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:276] - Getting attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014],
name=master_initial_page.jpg, version=-1
[ 2014-07-24 17:19:41.302 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:296] - M.I.T.E. FOUND in
the cache
[ 2014-07-24 17:19:41.303 GMT+0200 ] DEBUG [
org.apache.wiki.WikiEngine:1529] - Page LeftMenu rendered, took 0:00:00.002
[ 2014-07-24 17:19:41.304 GMT+0200 ] DEBUG [
org.apache.wiki.tags.InsertPageTag:119] - Inserting page WikiPage
[HelpWiki:LeftMenuFooter,ver=1,mod=Fri Jul 18 17:11:31 CEST 2014]
[ 2014-07-24 17:19:41.305 GMT+0200 ] DEBUG
[org.apache.wiki.render.RenderingManager:186] - Using cached HTML for page
LeftMenuFooter::1
[ 2014-07-24 17:19:41.305 GMT+0200 ] DEBUG
[org.apache.wiki.preferences.Preferences:278] - Checking for preferences...
[ 2014-07-24 17:19:41.306 GMT+0200 ] DEBUG
[org.apache.wiki.preferences.Preferences:284] - Preferences fmt = yyyy-MM-dd
HH:mm:ss
[ 2014-07-24 17:19:41.307 GMT+0200 ] DEBUG
[org.apache.wiki.plugin.ReferringPagesPlugin:104] - Fetching referring pages
for M.I.T.E. with a max of 10
[ 2014-07-24 17:19:41.307 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:276] - Getting attachments
for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST 2014],
name=LeftMenu, version=-1
[ 2014-07-24 17:19:41.308 GMT+0200 ] DEBUG
[org.apache.wiki.providers.CachingAttachmentProvider:296] - M.I.T.E. FOUND in
the cache
[ 2014-07-24 17:19:41.309 GMT+0200 ] DEBUG [
org.apache.wiki.WikiEngine:1529] - Page LeftMenuFooter rendered, took
0:00:00.004
[ 2014-07-24 17:19:41.314 GMT+0200 ] DEBUG [
JSPWiki:161] - Total response time from server on page M.I.T.E.: 0:00:00.082
[ 2014-07-24 17:19:41.317 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:243] - WebContainer : 0: Exiting state Generating VIEW
response for WikiPage [HelpWiki:M.I.T.E.,ver=1,mod=Tue Jul 22 12:29:33 CEST
2014]
[ 2014-07-24 17:19:41.318 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:211] - WebContainer : 0: Entering state Delivering
response, expected completion in 30 s
[ 2014-07-24 17:19:41.318 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:243] - WebContainer : 0: Exiting state Delivering
response
[ 2014-07-24 17:19:41.318 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:243] - WebContainer : 0: Exiting state Filtering for
URL /help/Wiki.jsp
[ 2014-07-24 17:19:44.527 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:211] - JSPWiki Lucene Indexer: Entering state Emptying
index queue, expected completion in 60 s
[ 2014-07-24 17:19:44.527 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:243] - JSPWiki Lucene Indexer: Exiting state Emptying
index queue
[ 2014-07-24 17:19:49.539 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:211] - JSPWiki Lucene Indexer: Entering state Emptying
index queue, expected completion in 60 s
[ 2014-07-24 17:19:49.540 GMT+0200 ] DEBUG [
org.apache.wiki.WatchDog:243] - JSPWiki Lucene Indexer: Exiting state Emptying
index queue
[ 2014-07-24 17:19:54.078 GMT+0200 ] DEBUG [
org.apache.wiki.auth.SessionMonitor:117] - Looking up WikiSession for session
ID=uHIE1EGI8xtManSOWefhRe0... found it
[ 2014-07-24 17:19:54.079 GMT+0200 ] DEBUG [
org.apache.wiki.auth.SessionMonitor:117] - Looking up WikiSession for session
ID=uHIE1EGI8xtManSOWefhRe0... found it
[ 2014-07-24 17:19:54.079 GMT+0200 ] DEBUG [
org.apache.wiki.auth.SessionMonitor:117] - Looking up WikiSession for session
ID=uHIE1EGI8xtManSOWefhRe0... found it
[ 2014-07-24 17:19:54.079 GMT+0200 ] DEBUG [
org.apache.wiki.ui.WikiServletFilter:164] - Executed security filters for
user=CostaLeo, path=/help/attach
[ 2014-07-24 17:19:54.080 GMT+0200 ] DEBUG [
org.apache.wiki.auth.SessionMonitor:117] - Looking up WikiSession for session
ID=uHIE1EGI8xtManSOWefhRe0... found it
[ 2014-07-24 17:19:54.080 GMT+0200 ] DEBUG [
org.apache.wiki.WikiContext:248] - Creating WikiContext for session
ID=uHIE1EGI8xtManSOWefhRe0; target=Main
[ 2014-07-24 17:19:54.080 GMT+0200 ] DEBUG
[org.apache.wiki.attachment.AttachmentServlet:227] - Attempting to download att
Main, version null
[ 2014-07-24 17:19:54.080 GMT+0200 ] INFO
[org.apache.wiki.attachment.AttachmentServlet:310] - Attachment 'Main', version
-1 does not exist.
the page I try to add the attachment is not Main, but M.I.T.E.
in jspwiki-custom.properties I have:
jspwiki.pageProvider = VersioningFileProvider
> 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 was sent by Atlassian JIRA
(v6.2#6252)