Uploaded image for project: 'NHibernate [Moved to GitHub]'
  1. NH-3457

TemplatedViolatedConstraintNameExtracter.ExtractUsingTemplate calls Substring with wrong arguments

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.3.3.GA, 3.4.0.CR1
    • Fix Version/s: 4.0.3
    • Component/s: Core
    • Labels:
      None

      Description

      I guess it's a rarely used class, but I was testing it today and I found a bug.

      The method ExtractUsingTemplate calls String.Substring with the start and the end index, but Substring expects the start index and the length.

      Attached is the patch to fix it

        Attachments

          Activity

            People

            • Assignee:
              hazzik Alexander Zaytsev
              Reporter:
              danielcastro Daniel Castro Alvarado
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?