Item14684: diff.nat.tmpl is missing, bin/diff command returns 0 length page.

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: DiffPlugin, NatSkin
Branches:
Reported By: GeorgeClark
Waiting For: MichaelDaum
Last Change By: MichaelDaum
DiffPlugin:d483bdfb40a5 removed the diff.nat.tmpl template, however there is no corresponding checkin to the NatSkin.

Newly installed NatSkin sites don't have a working bin/diff command, however older sites that have the prior template left over work fine.

-- GeorgeClark - 23 Apr 2018

It's also not listed in the MANIFEST:
grep -c templates\/diff lib/Foswiki/Contrib/NatSkin/MANIFEST 
0

-- GeorgeClark - 23 Apr 2018

Note that it seems to be working fine on Pattern skin without a skin specific template. It's only broken on NatSkin.

-- GeorgeClark - 24 Apr 2018

Here's a quick fix.

-- MichaelDaum - 24 Apr 2018

I've encounter this issue after upgrading our site. However copying this diff.nat.tmpl file did not work properly, the page went from blank to a distorted layout.

Another workaround that I found was to disable the DiffPlugin and use CompareRevisionsAddOn instead.

Then, replace the line in view.nat.tmpl
<a href="%SCRIPTURLPATH{"diff"}%/%WEB%/%TOPIC%?rev=%CURREV%">

With:
<a href="%SCRIPTURLPATH{"compare"}%/%WEB%/%TOPIC%?type=last;render=interweave;context=1">

-- AlexAnder - 11 Jan 2019

This has been fixed in the latest release.

-- MichaelDaum - 12 Feb 2019
 

ItemTemplate edit

Summary diff.nat.tmpl is missing, bin/diff command returns 0 length page.
ReportedBy GeorgeClark
Codebase
SVN Range
AppliesTo Extension
Component DiffPlugin, NatSkin
Priority Urgent
CurrentState Closed
WaitingFor MichaelDaum
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
I Attachment Action Size Date Who Comment
diff.nat.tmpltmpl diff.nat.tmpl manage 415 bytes 24 Apr 2018 - 09:51 MichaelDaum quickfix until next release of NatSkin
Topic revision: r5 - 12 Feb 2019, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy