[DEFECT] Content Type Copy Operation Fails for Legacy IDs (Non-UUID)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Problem Statement
Copying content types incorrectly rejects content types that have legacy numeric IDs instead of UUIDs, even though the copy operation generates a new UUID for the copied content type
The operation fails with the error message "ContentType 'id' if set, should be a uuid" if the source content type has a legacy numeric ID instead of a UUID format.
This validation is unnecessary because:
- The copy operation creates a new content type with a new UUID (the source ID is set to
nullduring copy) - The system already supports legacy IDs throughout the codebase
- The validation prevents legitimate use cases where users need to copy older content types
Steps to Reproduce
- Have a content type with a legacy numeric ID (non-UUID format)
- Attempt to copy
Acceptance Criteria
The copy operation should succeed regardless of whether the source content type has a UUID or legacy numeric ID, since:
The copied content type will have a new UUID generated automatically
dotCMS Version
Latest, evergreen
Severity
Medium - Some functionality impacted
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the content type copy operation and the validation that emits "ContentType 'id' if set, should be a uuid". Reproduce the case with a legacy numeric source ID, then verify that copying succeeds and the new content type receives a UUID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100