Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group with name already exists on material modification #7865

Closed
Evesy opened this issue Mar 16, 2020 · 2 comments
Closed

Group with name already exists on material modification #7865

Evesy opened this issue Mar 16, 2020 · 2 comments

Comments

@Evesy
Copy link

Evesy commented Mar 16, 2020

Issue Type
  • Bug Report
Summary

Material modifications on pipelines error with Group with name 'delivery_engineering' already exists

Environment
Basic environment details
  • Go Version: 20.1.0
  • JAVA Version: 13.0.1
  • OS: Linux 2.6.32-696.18.7.el6.x86_64
Steps to Reproduce
  1. Existing pipeline within a pipeline group (e.g. group name example)
  2. Select to clone pipeline. In popup box provide a new pipeline name, and specify the same group name, but different casing, e.g. Example)
  3. The pipeline is cloned, and a new group is also created
  4. Try editing the new pipeline material (Or any other material on any pipeline) and save. Save will fail with the message Group with name 'example' already exists

Duplicated pipeline group can be removed to resolve the issue.
It seems like perhaps pipeline groups are case insensitive in some contexts, but in others are case sensitive

@maheshp
Copy link
Contributor

maheshp commented Mar 17, 2020

This looks like an issue with the PipelineConfig API - https://api.gocd.org/20.2.0/#create-a-pipeline. The PipelineGroup name should be validated for case insensitive uniqueness.

@Evesy we are close to a GoCD 20.2.0 release, if possible we will fix it else will be done as part of 20.3.0

@maheshp maheshp added this to the Release 20.3.0 milestone Mar 17, 2020
GaneshSPatil added a commit to GaneshSPatil/gocd that referenced this issue Mar 17, 2020
* Perform case-insensitive pipeline group name equals check.

* When a user specifies a pipeline group name, while creating
  a new pipeline and the same group name with different case
  already exists, do not create a new group. Create the new
  pipeline in the existing pipeline group.
GaneshSPatil added a commit to GaneshSPatil/gocd that referenced this issue Mar 23, 2020
* Perform case-insensitive pipeline group name equals check.

* When a user specifies a pipeline group name, while creating
  a new pipeline and the same group name with different case
  already exists, do not create a new group. Create the new
  pipeline in the existing pipeline group.
maheshp added a commit that referenced this issue Mar 25, 2020
…itivity-issue

Make pipeline group case-insensitive (#7865)
@maheshp
Copy link
Contributor

maheshp commented Apr 3, 2020

Verified on GoCD Version: 20.3.0 (11453-8d4b313e23791fc45f1a5c1e83a6540a524ff76a).

@maheshp maheshp closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants