Audit of Binary Field - Incorrect

Aug 5, 2011 at 9:19 PM

When you compare two audits, and they contain stuff in a binary field the audit always says that that field has changed.

I verified by opening an object, persisted it immediately (no changes).  when I compare the two audits it says that the only difference is the binary field.

They are exactly the same and when I compare them with the following snippet, it reports that the fields are in fact the same.

    ''' <summary>
    ''' returns true if the bytes are the same, otherwise false.
    ''' </summary>
    ''' <param name="one"></param>
    ''' <param name="two"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Private Function ComparePictures(ByVal one() As Byte, ByVal two() As Byte) As Boolean
        Dim toReturn As Boolean = False
            If one.Length = two.Length Then
                toReturn = True
                For i As Integer = 0 To one.Length - 1
                    If one(i) <> two(i) Then
                        toReturn = False
                        Exit For
                    End If
            End If
        Catch ex As Exception
            'Either one or two is NULL
            If one Is Nothing And two Is Nothing Then toReturn = True
        End Try
        Return toReturn
    End Function


Aug 7, 2011 at 5:42 PM

This has been identified and corrected. It will be in the next build.