On Wed, Mar 3, 2010 at 13:48, sdumitriu
<[email protected]> wrote:
> Author: sdumitriu
> Date: 2010-03-03 13:48:22 +0100 (Wed, 03 Mar 2010)
> New Revision: 27429
>
> Modified:
>   platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/Utils.java
> Log:
> XWIKI-4955: Page with empty content leads to "This template does not exist" 
> message when viewed in plain mode
> Revert the trim() removal, which makes all the validation tests fail

Then the wrong template should be fixed instead of putting a hack...

>
> Modified: 
> platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/Utils.java
> ===================================================================
> --- platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/Utils.java 
>   2010-03-03 12:44:52 UTC (rev 27428)
> +++ platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/Utils.java 
>   2010-03-03 12:48:22 UTC (rev 27429)
> @@ -155,7 +155,7 @@
>             // Replace all placeholders with the protected values
>             content = replacePlaceholders(content, context);
>             disablePlaceholders(context);
> -            content = 
> context.getWiki().getPluginManager().endParsing(content, context);
> +            content = 
> context.getWiki().getPluginManager().endParsing(content.trim(), context);
>         } catch (IOException e) {
>             if (LOG.isDebugEnabled()) {
>                 LOG.debug("IOException while evaluating template [" + 
> template + "] from /templates/", e);
>
> _______________________________________________
> notifications mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/notifications
>



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to