You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Glen Mazza (JIRA)" <ji...@apache.org> on 2012/12/25 21:20:12 UTC

[jira] [Commented] (JSPWIKI-663) Rename page - page index still shows attachment with old page name

    [ https://issues.apache.org/jira/browse/JSPWIKI-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539434#comment-13539434 ] 

Glen Mazza commented on JSPWIKI-663:
------------------------------------

Attached patch appears to fix this problem.

Scenario:
1.) On the Main page, add [{IndexPlugin}].
2.) Create a Page1 with an attachment foo.png, you'll see both Page1 and Page1/foo.png listed on the Main Page (due to the Index Plugin).
3.) Rename Page1 to Page2 and go back to the Main Page, you'll see Page2 and Page1/foo.png listed (bad: should be Page2/foo.png).

After applying patch, you'll correctly see Page2 and Page2/foo.png listed.

                
> Rename page - page index still shows attachment with old page name
> ------------------------------------------------------------------
>
>                 Key: JSPWIKI-663
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-663
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.8.4
>         Environment: Websphere
>            Reporter: Bruno Peeters
>         Attachments: JSPWIKI663.patch, rename page - name attachment.gif
>
>
> After renaming a page with an attachment, there is still a link in the page index to the attachment with the old name. Clicking on the link in the page index does not have sense, it will lead to the creation of a new page.
> Scenario
> - create new page "Q new page"
> - add attachment "attachment.jpg"
> - rename page "Q new page" to ""Q new page new name"
> - result : page index contains for letter Q : "Q new page new name, Q new page/attachment.jpg"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira