KP Hemsteter created JSPWIKI-807:
------------------------------------
Summary: 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
Priority: Trivial
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)