Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 45987 invoked from network); 4 Nov 2008 17:49:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2008 17:49:06 -0000 Received: (qmail 96705 invoked by uid 500); 4 Nov 2008 17:49:13 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 96689 invoked by uid 500); 4 Nov 2008 17:49:13 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 96678 invoked by uid 99); 4 Nov 2008 17:49:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 09:49:13 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2008 17:48:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 33E8A234C278 for ; Tue, 4 Nov 2008 09:48:46 -0800 (PST) Message-ID: <1938417260.1225820926197.JavaMail.jira@brutus> Date: Tue, 4 Nov 2008 09:48:46 -0800 (PST) From: "Janne Jalkanen (JIRA)" To: jspwiki-dev@incubator.apache.org Subject: [jira] Commented: (JSPWIKI-413) InternalWikiException when deleting a non-referenced page right after its only attachment was deleted In-Reply-To: <341021178.1225810604386.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JSPWIKI-413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645021#action_12645021 ] 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: 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.