Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1541

Numerous JUnit tests failing on Windows.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0-RC1
    • 2.0.0-M1
    • core, ldap, schema
    • None
    • All Microsoft Windows.

    Description

      File names and paths are not being handled in a platform-independent manner is all cases.

      In particular, in regex matching patterns the "\" has special meaning. On Windows the "\" is used as the file directory separator character so a regex attempting to test for a directory separator character must be constructed in a platform-dependent manner.

      Also, certain characters are not allowed in file names in Microsoft Windows. Any attempt to use such names must have these special characters "escaped" to safe characters. Since the "\" character is the directory separator character it is unsuitable for special character escaping.

      Finally, in the JdbmStoreTest test, stores and indexes must be destroyed and/or closed to permit deletion of the underlying files at completion of the test run.

      Attachments

        1. DIRSERVER-1541.patch
          48 kB
          Stefan Seelmann
        2. WindowsPatches.diff
          24 kB
          Richard Feezel
        3. ADS_Patches.diff.txt
          17 kB
          Richard Feezel

        Activity

          People

            elecharny Emmanuel Lécharny
            rfeezel Richard Feezel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: