How to delete a view named ".."
Asked Answered
S

2

16

I created a new view in Cloudbees and, while configuring it, wanted it to remain somewhat unnoticed by the rest of my team. I renamed the view to "..", just because it was the first thing that came to mind.

Now I can't delete the group, because the use of ".." is interpreted as directory traversal.

  • I cannot navigate to the view by clicking the tab, since "https://{account}.ci.cloudbees.com/view/../" is the "https://{account}.ci.cloudbees.com/".
    • I can navigate to this view, but only by setting this as the default view inside "Manage Jenkins".
  • By the same URL pattern issues, I also cannot write a URL appropriate for deleting this view.
Sw answered 21/1, 2013 at 19:23 Comment(2)
In general, don't name things . or .., as I'm sure you have just learned.Clowers
That's a smart thing to remember. I sometimes forget that software is only as smart as its developers.Sw
S
15

Just as I was finishing this question, I had another idea which was successful. I found by accident that "https://{account}.ci.cloudbees.com/view/../delete" will delete the default view. Another test confirmed that "https://{account}.ci.cloudbees.com/delete" deletes the default view.

  1. In "Manage Jenkins", set ".." as the default view.
  2. Enter "https://{account}.ci.cloudbees.com/delete" into the URL bar.
  3. Go back to "Manage Jenkins" to set a new default view.
Sw answered 21/1, 2013 at 19:23 Comment(3)
Sounds like a bug in Jenkins that it let you create a view with this name to begin with. File in issues.jenkins-ci.org/browse/JENKINS if you have a moment.Engstrom
an update: JENKINS-16608 has been marked as fixed.Sw
This just saved me. I was making a new view, and on the second page of creating it, I clicked on the main jenkins link. This committed an unconfigured view, crashing jenkins. I hand-typed jenkins/views/my dumb view name/delete and it purged the faulty view, and thus also the crashing java code for the main index.Praxis
F
33

Please specify Jenkins server, port and view name to delete custom view:

http://<jenkins-server>:<port>/view/<view name>/delete

Jenkins is problematic in this particular functionality.

Florin answered 20/9, 2016 at 19:45 Comment(0)
S
15

Just as I was finishing this question, I had another idea which was successful. I found by accident that "https://{account}.ci.cloudbees.com/view/../delete" will delete the default view. Another test confirmed that "https://{account}.ci.cloudbees.com/delete" deletes the default view.

  1. In "Manage Jenkins", set ".." as the default view.
  2. Enter "https://{account}.ci.cloudbees.com/delete" into the URL bar.
  3. Go back to "Manage Jenkins" to set a new default view.
Sw answered 21/1, 2013 at 19:23 Comment(3)
Sounds like a bug in Jenkins that it let you create a view with this name to begin with. File in issues.jenkins-ci.org/browse/JENKINS if you have a moment.Engstrom
an update: JENKINS-16608 has been marked as fixed.Sw
This just saved me. I was making a new view, and on the second page of creating it, I clicked on the main jenkins link. This committed an unconfigured view, crashing jenkins. I hand-typed jenkins/views/my dumb view name/delete and it purged the faulty view, and thus also the crashing java code for the main index.Praxis

© 2022 - 2024 — McMap. All rights reserved.