[ 
https://issues.apache.org/jira/browse/JSPWIKI-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harry Metske closed JSPWIKI-413.
--------------------------------

    Resolution: Invalid

Can't reproduce this on 3.0.0-svn-14, closing it.

Re-open if necessary.

> InternalWikiException when deleting a non-referenced page right after its 
> only attachment was deleted
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JSPWIKI-413
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-413
>             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 exist.
> 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.

Reply via email to