Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1959

Use of File.separator in StatusHttpServer prevents running Junit tests inside eclipse on Windows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.15.0
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
      None

      Description

      There is exactly one use of File.separator in StatusHttpServer. In every other instance, a literal "/" is used.

      When running a Junit test inside eclipse on Windows, the the jetty web server fails to start due to the following exception:

      java.io.FileNotFoundException: jar:file:/C:/workspace/hadoop-commit/build/hadoop-0.15.0-dev-core.jar!/webapps\dfs

      Changing File.separator to "/" enables the test to be run, and unit tests run from ant on the command line still work.

        Attachments

        1. patch.txt
          0.8 kB
          Jim Kellerman

          Activity

            People

            • Assignee:
              jimk Jim Kellerman
              Reporter:
              jimk Jim Kellerman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: