Bug 527920 - Attribute to force overwrite of preference in setup task
Summary: Attribute to force overwrite of preference in setup task
Status: UNCONFIRMED
Alias: None
Product: Oomph
Classification: Tools
Component: Setup (show other bugs)
Version: 1.9.0   Edit
Hardware: All All
: P3 enhancement with 36 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-29 09:41 EST by Anders Jönsson CLA
Modified: 2020-11-23 07:04 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Jönsson CLA 2017-11-29 09:41:42 EST
There should be an attribute on PreferenceTask (or more general for setup tasks) to "always" (=force) overwrite the old value when changed.

For some preferences, for instance when the value is in xml format and handled by an XMLPreferenceHandler, a changed value in the product setup will never be updated. In the XMLPreferenceHandler case this is due to lack of merge support for xml-files which leaves changes undetected.

In cases like this it should be possible to choose to overwrite the value. Overwrite should occur whenever the value has changed in any way, i.e. the value should be treated as a string.

This could be implemented by a new attribute on PreferenceTask, e.g:
forceOverwrite = true;