Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20102

Directory browser cannot handle paths contain backslash on Linux

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Oracle Java 1.6 update 45
      Red Hat Enterprise Linux 6.4

      We had a faulty test case that saved screenshots from Selenium tests in a hard-coded location, which happened to be "C:\Screenshots". Unsurprisingly, this didn't work properly when run on our Linux build server. It created a directory called "C:\Screenshots" in the workspace, and then files like "C:\Screenshots\XXX.png" in the workspace directory.

      Obviously, we're fixing our build to not do this. However, Jenkins does not handle this case.

      You can recreate this by running the following commands in a workspace:

      [jenkins@build-master workspace]$ mkdir "C:\Screenshots"
      [jenkins@build-master workspace]$ echo test > "C:\Screenshots\test.txt"

      The output of ls -l will then contain entries like this:

      drwxrwxr-x. 2 jenkins jenkins 4096 Oct 17 14:46 C:\Screenshots
      rw-rw-r-. 1 jenkins jenkins 5 Oct 17 14:46 C:\Screenshots\test.txt

      Attempts to navigate into the folder or view the file through the workspace browser will fail with a 404 error. Additionally, the directory will appear as just Screenshots and the file as test.txt, rather than their full names.

      (Set priority to Trivial, as frankly, I don't expect this situation to come up again).

          [JENKINS-20102] Directory browser cannot handle paths contain backslash on Linux

          Paul Milliken created issue -
          Brian Artman made changes -
          Assignee New: Brian Artman [ bin_ary ]
          Daniel Beck made changes -
          Summary Original: 404 error when navigating workspace with bad file names New: Directory browser cannot handle paths contain backslash on Linux
          Daniel Beck made changes -
          Priority Original: Trivial [ 5 ] New: Major [ 3 ]
          Steven Christou made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Steven Christou made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Steven Christou made changes -
          Assignee Original: Brian Artman [ bin_ary ] New: Steven Christou [ schristou ]
          Daniel Beck made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Daniel Beck made changes -
          Priority Original: Critical [ 2 ] New: Major [ 3 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-25224 [ JENKINS-25224 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 151624 ] New: JNJira + In-Review [ 178021 ]

            schristou Steven Christou
            pmilliken Paul Milliken
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: