king
I'm new here

Group renaming allows duplicates

Dear FirstSpirit Community,

when renaming an existing FirstSpirit group via:

Group.setName()

Project.save()

method calls, no "IllegalArgumentException" is thrown in case of an already existing FirstSpirit group having the same name.

When creating a new FirstSpirit group via calling:

Project.createGroup()

Project.save()

an "IllegalArgumentException" is thrown in case of an already existing FirstSpirit group having the same name.

Why this difference?

Is there a workaround available?

0 Kudos
2 Replies
feddersen
Community Manager

Your first code example should be

Group.setName();

Project.save();

right?

You're right that this method doesn't check if the group name is unique, so you've to ensure that within your code.

Feel free to submit a feature request for this issue.

Yeah - for sure. I corrected it. A feature request is already open:

https://community.e-spirit.com/ideas/1173

0 Kudos