incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-413) InternalWikiException when deleting a non-referenced page right after its only attachment was deleted
Date Tue, 04 Nov 2008 17:48:46 GMT


Janne Jalkanen commented on JSPWIKI-413:

Hmhmhm... ReferenceManager is really showing its age.  We'll mostly retire it in 3.0 anyway,
so I'm not so sure what to do with this one.  Create a JUnit test case and make sure it does
not pop up in 3.0?

> InternalWikiException when deleting a non-referenced page right after its only attachment
was deleted
> -----------------------------------------------------------------------------------------------------
>                 Key: JSPWIKI-413
>                 URL:
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.8
>         Environment: Using the CachingProvider relying on the VersioningFileProvider
and the CachingAttachmentProvider
>            Reporter: Olivier Descout
>            Priority: Minor
> I had a JSPWikiStyles page stored in my wiki, with an attachment called "poppy.jpg" (basically
this page was a clone of the JSPWikiStyles page of the JSPWiki site).
> Logged as an administrator I deleted the attachment (no error was raised), then, right
after, the page itself, which was not referenced by any other page of the wiki (but it still
referenced its former attachment).
> Then I got the following error page (whose relative URL is /wiki/Delete.jsp?page=JSPWikiStyles
which sounds OK) :
> " JSPWiki has detected an error
> " 
> " Error Message
> "     Refmgr out of sync: page JSPWikiStyles refers to JSPWikiStyles/poppy.jpg, which
has null referrers.
> " Exception
> "     com.ecyrd.jspwiki.InternalWikiException
> " Place where detected
> "     com.ecyrd.jspwiki.ReferenceManager.pageRemoved(), line 612
> " 
> " If you have changed the templates, please do check them. This error message may show
up because of that. [...]
> "
> " And don't worry - it's just a computer program. [...]
> I truncated the 2 last paragraphs because I guess they are not really useful to you (by
the way, this error page is another non-yet-localizable page... ;-) )
> One last thing: I put this bug as minor since, as far as I've seen, the page looks like
it has been deleted as expected.
> edit> on the other hand, it looks like the attachment was not properly deleted: the
UndefinedPagesPlugin still shows it, and I can still open it using the (relative) URL /wiki/attach/JSPWikiStyles/poppy.jpg
, though the URL /wiki/PageInfo.jsp?page=JSPWikiStyles/poppy.jpg tells me the page does not
> Nevertheless, I found a way to properly delete the image: recreate the JSPWikiStyles
page, re-attach the same image to it, then delete the attachment, and delete the page.

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

View raw message