dotCMS / dotCMS/core

[DEFECT] Content Type Copy Operation Fails for Legacy IDs (Non-UUID)

Open
#33,977 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support Team : Maintenance
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:

  1. The copy operation creates a new content type with a new UUID (the source ID is set to null during copy)
  2. The system already supports legacy IDs throughout the codebase
  3. The validation prevents legitimate use cases where users need to copy older content types
Steps to Reproduce
  1. Have a content type with a legacy numeric ID (non-UUID format)
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.