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

KP Hemsteter updated JSPWIKI-807:
---------------------------------

    Attachment:     (was: pageExists.patch)

> VersioningFileProvider pageExist failure to properly handle latest version
> --------------------------------------------------------------------------
>
>                 Key: JSPWIKI-807
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-807
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.9.1
>         Environment: All
>            Reporter: KP Hemsteter
>            Assignee: Harry Metske
>            Priority: Trivial
>              Labels: patch
>         Attachments: JSPWIKI-807.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> In VersioningFileProvider, the function "pageExists" for versions search for 
> the versions of  wiki page in the "OLD" directory for that page. The latest 
> version is in the main storage directory. The problem is masked because the 
> PageProvider class handles the case - which it should not. Adding the 
> following code to pageExists and removing the code for PageProvider will 
> resolve this issue:
>     if( version == WikiPageProvider.LATEST_VERSION || version == latest)
>     {
>         return pageExists( pageName );
>     }
>     else
>     {



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to