Bug #20133
closedTechnique editor allows id with only case difference, do an error, but still save technique
Description
So, I have a technique starting by an upper case. It's id also has an upper case (should not ?).
If I clone it, change first letter to lower case, try to save, I have an error which is totally not actionnable and should be change (something like "an error occured server side, try latter").
Then, in logs I get:
[2021-10-15 10:06:49+0000] ERROR com.normation.rudder.rest.RestUtils - "Could not create ncf technique <- Technique name and ID must be unique. 'technique with blocks' already used"
As I'm still on the technique, I try to delete it.
There, I get a screen with 0 techniques remaining (I had only the other one, so perhaps it removed both based on the id, case insensitive?).
A bit of stress, then I click back on "techniques" in the main menu, and I get not only two techniques... But also two drafts ???
And yes, in the file system, contrary to what rudder and log told, there is a bunch of technique:
- id must be case insensitive
- error must be actionnable. What fail? How can I fix it?
- if log say it was an error, there should not be files in the fs
- draft must be deleted once technique is saved without error (what happened for the first one). I don't want draft for saved techniques.
Files
Updated by François ARMAND about 3 years ago
- Related to Bug #20137: Technique draft can't be deleted added
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~beta2 to 7.0.0~beta3
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~beta3 to 7.0.0~rc1
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~rc1 to 7.0.0~rc2
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0~rc2 to 7.0.0~rc3
Updated by Benoît PECCATTE almost 3 years ago
- Category set to Web - Technique editor
Updated by Elaad FURREEDAN almost 3 years ago
- Status changed from New to In progress
- Assignee set to Elaad FURREEDAN
Updated by Elaad FURREEDAN almost 3 years ago
- Related to Bug #20491: Error message in technique editor doesn't help added
Updated by Elaad FURREEDAN almost 3 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Elaad FURREEDAN to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder/pull/4079
Updated by Anonymous almost 3 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|196ae971a2c8ca5b373f1c7e746ce51512bad571.
Updated by Vincent MEMBRÉ almost 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~rc3 which was released today.