[JIRA] (JENKINS-57180) folder "parent" in workspace not browseable

7 views
Skip to first unread message

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:35:01 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart created an issue
 
Jenkins / Bug JENKINS-57180
folder "parent" in workspace not browseable
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: workspace-click-on-parent.PNG
Components: _unsorted
Created: 2019-04-25 07:34
Environment: 2.164.2, 2.169 on linux, others not checked
Priority: Minor Minor
Reporter: twolfart

A folder named "parent" in the workspace is not browseable for a pipeline job.

Example pipeline:

node {
  deleteDir()
  sh ("mkdir -p parent/foo")
  sh ("mkdir -p bar/parent")
  sh ("mkdir parent-foo")
}

Note: deleteDir() is only needed to re-run the job. It is not needed for the behaviour to appear.

Impact: "parent" is an often used folder name in Maven projects.

Works as expected (i.e. shows the folder):

  • click on a job execution
  • click on workspaces
  • click on the listed workspace
    • click on folder bar - shows contents
    • click on folder bar/parent - shows contents
    • click on folder parent-foo - shows contents

Does not work as expected:

  • click on a job execution
  • click on workspaces
  • click on the listed workspace
    • click on folder parent - shows the parent node step
    • click on folder parent/foo - results in 404

Workarounds

  • use subfolder for project (i.e. project-name/parent)
  • rename "parent"
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:35:02 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
Change By: twolfart
A folder named "parent" in the workspace is not browseable for a pipeline job.

Example pipeline:
{code}

node {
  deleteDir()
  sh ("mkdir -p parent/foo")
  sh ("mkdir -p bar/parent")
  sh ("mkdir parent-foo")
}
{code}

Note: {{deleteDir()}} is only needed to re-run the job. It is not needed for the behaviour to appear.

Impact: "parent" is an often used folder name in Maven projects.

h3. Works as expected (i.e. shows the folder):
* click on a job execution
* click on workspaces
* click on the listed workspace
** click on folder bar - shows contents
** click on folder bar/parent - shows contents
** click on folder parent-foo - shows contents

h3. Does not work as expected:
* click on a job execution
* click on workspaces
* click on the listed workspace
** click on folder parent - shows the parent node step
!workspace-click-on-parent.PNG|thumbnail!
** click on folder parent/foo - results in 404

h3. Workarounds
* use subfolder for project (i.e. project-name/parent)
* rename "parent"

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:35:03 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
Change By: twolfart
Attachment: workspace-click-on-parent.PNG

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:36:02 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
Change By: twolfart
Attachment: workspace-click-on-parent-subfolder.PNG

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:37:01 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
!workspace-click-on-parent-subfolder.PNG|thumbnail!

h3. Workarounds
* use subfolder for project (i.e. project-name/parent)
* rename "parent"

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:38:01 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
Change By: twolfart
Attachment: workspace-example-folders.PNG

twolfart@java.net (JIRA)

unread,
Apr 25, 2019, 3:39:02 AM4/25/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
A folder named "parent" in the workspace is not browseable for a pipeline job.

Example pipeline:
{code}
node {
  deleteDir()
  sh ("mkdir -p parent/foo")
  sh ("mkdir -p bar/parent")
  sh ("mkdir parent-foo")
}
{code}
Note: {{deleteDir()}} is only needed to re-run the job. It is not needed for the behaviour to appear.

This will create a workspace with the following folders:
!workspace-example-folders.PNG!

Impact: "parent" is an often used folder name in Maven projects.

h3. Works as expected (i.e. shows the folder):
* click on a job execution
* click on workspaces
* click on the listed workspace
** click on folder bar - shows contents
** click on folder bar/parent - shows contents
** click on folder parent-foo - shows contents

h3. Does not work as expected:
* click on a job execution
* click on workspaces
* click on the listed workspace
** click on folder parent - shows the parent node step
!workspace-click-on-parent.PNG|thumbnail!
** click on folder parent/foo - results in 404
!workspace-click-on-parent-subfolder.PNG|thumbnail!

h3. Workarounds
* use subfolder for project (i.e. project-name/parent)
* rename "parent"

twolfart@java.net (JIRA)

unread,
May 6, 2019, 5:48:02 AM5/6/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
Change By: twolfart
Component/s: core
Component/s: _unsorted

twolfart@java.net (JIRA)

unread,
May 6, 2019, 5:48:02 AM5/6/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
A folder named "parent" in the workspace is not browseable for a pipeline job.

twolfart@java.net (JIRA)

unread,
Jul 4, 2019, 5:17:02 AM7/4/19
to jenkinsc...@googlegroups.com
twolfart updated an issue
Change By: twolfart
Component/s: _unsorted
Component/s: core

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 25, 2020, 7:07:03 PM2/25/20
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-57180
 
Re: folder "parent" in workspace not browseable

I confirmed that the problem exists as described for pipeline jobs. Attempting to browse the workspace of a PIpeline job fails when attempting to navigate a directory named 'parent' at the root of the workspace.

Same problem does not happen for Freestyle jobs. I've assigned the issue to a pipeline plugin.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 25, 2020, 7:08:03 PM2/25/20
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
 
Change By: Mark Waite
Component/s: pipeline
Component/s: _unsorted

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 25, 2020, 7:17:03 PM2/25/20
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-57180
I confirmed that the problem exists as described for pipeline jobs. Attempting to browse the workspace of a PIpeline job fails when attempting to navigate a directory named 'parent' at the root of the workspace.

Same problem does not happen for Freestyle jobs. I've assigned the issue to a pipeline plugin.


My test case job contained a pipeline definition like this:

{noformat}
node('!windows') {
    stage('create dirs') {
        deleteDir()
        sh ("mkdir -p parent/foo && touch parent/foo/file-1")
        sh ("mkdir -p bar/parent && touch bar/parent/file-2")
        sh ("mkdir parent-foo    && touch parent-foo/file-3")
        echo "OK URL is ${env.BUILD_URL}/execution/node/3/ws/"
        echo "Odd URL is ${env.BUILD_URL}/execution/node/3/ws/parent/"
        echo "Broken URL is ${env.BUILD_URL}/execution/node/3/ws/parent/foo"
    }
}
{noformat}

From the console output, clicking the "OK URL" works as expected.  Clicking the "Odd URL" causes a surprising result.  Clicking the "Broken URL" generates the 404 page not found.

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 25, 2020, 7:17:03 PM2/25/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 25, 2020, 8:12:03 PM2/25/20
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-57180
I confirmed that the problem exists as described for pipeline jobs. Attempting to browse the workspace of a PIpeline job fails when attempting to navigate a directory named 'parent' at the root of the workspace.

Same problem does not happen for Freestyle jobs. I've assigned the issue to a pipeline plugin.

My test case job contained a pipeline definition like this:

{noformat}
node('!windows') {
    stage('create dirs') {
        deleteDir()
        sh ("mkdir -p parent/foo")
        sh ("mkdir -p bar/parent")
        sh ("mkdir parent-foo")

        echo "OK URL is ${env.BUILD_URL}/execution/node/3/ws/"
        echo "Odd URL is ${env.BUILD_URL}/execution/node/3/ws/parent/"
        echo "Broken URL is ${env.BUILD_URL}/execution/node/3/ws/parent/foo"
    }
}
{noformat}

From the console output, clicking the "OK URL" works as expected.  Clicking the "Odd URL" causes a surprising result.  Clicking the "Broken URL" generates the 404 page not found.
Reply all
Reply to author
Forward
0 new messages