Bug 45320 - Create tool to show diffs for UCR-template-adjustments
Create tool to show diffs for UCR-template-adjustments
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-04 12:30 CEST by Arvid Requate
Modified: 2020-07-06 09:21 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2017-09-04 12:30:48 CEST
As customers edit UCR templates, it would be good to have a mechanism which allows to obtain a diff. For that purpose we would need to store a reference copy of each template file in some location like /etc/univention/templates.dist. That would allow customers and Support to check a diff of the resulting config files (post UCR commit).


That would also lay a foundation for an automatized 3-way-merge for template adjustments (via some preup/postup code), but that's a different story and might not be a good (supportable) idea at all.
Comment 1 Arvid Requate univentionstaff 2017-09-04 14:51:07 CEST
This proposal is focussed on template adjustments, rather than adjustments to committed configuration files.
Comment 2 Philipp Hahn univentionstaff 2017-09-04 17:07:18 CEST
(In reply to Arvid Requate from comment #0)
> As customers edit UCR templates, it would be good to have a mechanism which
> allows to obtain a diff. For that purpose we would need to store a reference
> copy of each template file in some location like
> /etc/univention/templates.dist

NO, NEVER TEHRE! See Bug #28284

> That would also lay a foundation for an automatized 3-way-merge for template
> adjustments (via some preup/postup code), but that's a different story and
> might not be a good (supportable) idea at all.

See <https://anonscm.debian.org/gitweb/?p=users/srivasta/debian/ucf.git> to do it right.
Comment 3 Ingo Steuwer univentionstaff 2020-07-03 20:54:36 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 4 Philipp Hahn univentionstaff 2020-07-05 07:34:04 CEST
I get asked for such a tool regularly during Technical Trainings when talking about `univention-check-templates` and that there is no tool to revert changes.

My work-around is
  dpkg -S /etc/univention/templates/files/… # → $pkg
  apt download $pkg
  dpkg -x $pkg ./orig
  diff {orig,}/etc/univention/templates/files/…

TT 2020-06-25/26