I have…
- [x] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
When cloning content with a unique field, the server responds with a 400 Bad Request but the UI does nothing.
{"message":"Failed to create content.","details":["id: Another content with the same value exists."],"statusCode":400}
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
When I try to clone content with a unique field, the clone operation silently fails.
Expected behavior
At a minimum, I would expect a UI notification of the error message.
However, it would be fantastic if the clone succeeded and any field marked as unique was appended with something like a guid to guarantee uniqueness.
Minimal reproduction of the problem
- Create and publish a new schema with a unique string named
id
- Create a content on that schema with id
foo
- Use the UI to clone that content. This fails silently
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: 4.0.2.0
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge