Project

General

Profile

Actions

Bug #3660

closed

Change Request can't be validated if there is trailing spaces in the modified object

Added by Vincent MEMBRÉ almost 11 years ago. Updated almost 11 years ago.

Status:
Released
Priority:
1
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When modifying a Directive/Rule/group, if there is trailling spaces at the end of any field, the change request cannot be validated.

This is because the initial state saved for the change request is saved as an xml in postgres, and postgres trims all string when saving them.

So there is a difference between the current state (with spaces) and and the initial state (without any spaces)

Here a small example with the a long description

Current state (saved in configurationr repository and LDAP :

<longDescription>blablabla
bliblibli
blublublu
   </longdescription>

initial state of change request (saved in postgres):

<longDescription>blablabla
bliblibli
blublublu</longdescription>

This mean a change here is not possible because long desciprions are not the same

Actions

Also available in: Atom PDF