lsalamon / nhin-d

Automatically exported from code.google.com/p/nhin-d
0 stars 0 forks source link

DocumentMetadata Hash comparison should not be case sensitive #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The hash comparison in Health.Direct.Common.Metadata.SetHash() is calculating 
the hash as an uppercase string, then comparing it to the supplied hash using a 
case-sensitive comparison.   

In the IHE specs I've seen, the case of the hash is not specified, but the 
examples provided use lowercase.

The comparison should be case-insensitive.   Also consider changing the 
calculated hash to lowercase for consistency.

Original issue reported on code.google.com by frank.ra...@siemens.com on 16 Mar 2011 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by bgran...@harris.com on 18 Mar 2011 at 8:27