Actions
Bug #3162
closedDiff in modify directive event log is not correct
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
The actual diff in modify directive is not correct
There are some (plus/minus)ses missing and there is a blankspace that should not be here (in unchanged firt line)
it looks like :
<section name="sections"> <section name="File to manage"> <section name="File"> + <var name="GENERIC_FILE_CONTENT_CREATE_BOOLEAN">false</var> + <var name="GENERIC_FILE_CONTENT_DELETION_BOOLEAN">false</var> <var name="GENERIC_FILE_CONTENT_ENFORCE">false</var> + <var name="GENERIC_FILE_CONTENT_MODIFICATION_BOOLEAN">false</var> + <var name="GENERIC_FILE_CONTENT_PATH">/tmp/test</var> </section> <section name="File content"> <var name="GENERIC_FILE_CONTENT_PAYLOAD">f**cking content</var> </section> <section name="Line deletion regular expressions"> <var name="GENERIC_FILE_CONTENT_DELETION_REGEXP">.</var> </section> <section name="Line replacement regular expressions"> <var name="GENERIC_FILE_CONTENT_MODIFICATION_DESTINATION"></var> <var name="GENERIC_FILE_CONTENT_MODIFICATION_REGEXP">.</var> </section> <section name="Permission adjustment"> <var name="GENERIC_FILE_CONTENT_GROUP">root</var> <var name="GENERIC_FILE_CONTENT_OWNER">root</var> - <var name="GENERIC_FILE_CONTENT_PATH">/tmp/test</var> - <var name="GENERIC_FILE_CONTENT_PAYLOAD">f**cking content</var> <var name="GENERIC_FILE_CONTENT_PERM">644</var> + <var name="GENERIC_FILE_CONTENT_PERMISSION_ADJUSTMENT">false</var> </section> <section name="Post-modification hook"> <var name="GENERIC_FILE_CONTENT_POST_HOOK_COMMAND"></var> <var name="GENERIC_FILE_CONTENT_POST_HOOK_RUN">false</var> </section> </section> </section>
and should look like :
<section name="sections"> <section name="File to manage"> <section name="File"> + <var name="GENERIC_FILE_CONTENT_CREATE_BOOLEAN">false</var> + <var name="GENERIC_FILE_CONTENT_DELETION_BOOLEAN">false</var> <var name="GENERIC_FILE_CONTENT_ENFORCE">false</var> + <var name="GENERIC_FILE_CONTENT_MODIFICATION_BOOLEAN">false</var> + <var name="GENERIC_FILE_CONTENT_PATH">/tmp/test</var> + </section> + <section name="File content"> + <var name="GENERIC_FILE_CONTENT_PAYLOAD">f**cking content</var> + </section> + <section name="Line deletion regular expressions"> + <var name="GENERIC_FILE_CONTENT_DELETION_REGEXP">.</var> + </section> + <section name="Line replacement regular expressions"> + <var name="GENERIC_FILE_CONTENT_MODIFICATION_DESTINATION"></var> + <var name="GENERIC_FILE_CONTENT_MODIFICATION_REGEXP">.</var> + </section> + <section name="Permission adjustment"> <var name="GENERIC_FILE_CONTENT_GROUP">root</var> <var name="GENERIC_FILE_CONTENT_OWNER">root</var> - <var name="GENERIC_FILE_CONTENT_PATH">/tmp/test</var> - <var name="GENERIC_FILE_CONTENT_PAYLOAD">f**cking content</var> <var name="GENERIC_FILE_CONTENT_PERM">644</var> + <var name="GENERIC_FILE_CONTENT_PERMISSION_ADJUSTMENT">false</var> </section> <section name="Post-modification hook"> <var name="GENERIC_FILE_CONTENT_POST_HOOK_COMMAND"></var> <var name="GENERIC_FILE_CONTENT_POST_HOOK_RUN">false</var> </section> </section> </section>
Actions