Bug 6865 - Modification of DB attribute fails when new value same as current value
: Modification of DB attribute fails when new value same as current value
Status: RESOLVED FIXED
: Replica Location
RLS
: development
: All All
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-09-28 13:26 by
Modified: 2009-12-07 16:26 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-09-28 13:26:20
Running the automated RLS tests, modification of an attribute, e.g. "date", in
which the new value and the current value are the same, results in a failure
being reported.

The bug is very likely in "server/db.c", in "db_attr_modify()".  

The call to "SQLRowCount()" returns a "0" in "rows" when the new value and the
current value are the same, and a "1", otherwise.  

"0" rows (which may be an indication of a true failure in some cases) results
in a "GLOBUS_RLS_ATTR_NEXIST" being returned by "db_attr_modify()", and a
failure being reported by the automated RLS tests.