Skip to content

Deleting a cloud that has cloudByIndex in the url leads to a 404 #26176

@mawinter69

Description

@mawinter69

Jenkins and plugins versions report

Environment
Jenkins 2.547

What Operating System are you using (both controller, and any agents involved in the problem)?

not relevant

Reproduction steps

  1. Install one of the cloud plugins google-compute-engine, jclouds or openstack-cloud (there are some others as well)
  2. Create 2 clouds, e.g. with google compute, choose google as name on the config page (after pressing Create on the new cloud page. This creates 2 clouds with name gce-google
  3. Delete the second cloud

Expected Results

Returns to the cloud overview page

Actual Results

404

Anything else?

The root cause is that the doDelete method unconditionally returns with a redirect to .. which end up at the url /cloud/cloudByIndex/ for an indexed cloud

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions