You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2013/12/18 19:30:08 UTC

[jira] [Updated] (JSPWIKI-807) VersioningFileProvider pageExist failure to properly handle latest version

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

Harry Metske updated JSPWIKI-807:
---------------------------------

    Attachment: JSPWIKI-807.patch

KP,

can you attach a patch ? 
That way it is exactly clear what you are suggesting.
What do you exactly mean with "The problem is masked because the PageProvider class handles the case" ?

I attached a "guessed" patch...

thanks,
Harry


> 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)