You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an inconsistency between the title field displayed in the dotCMS admin interface and the title retrieved via the content API and GraphQL query. The title is overwritten with the file/asset name.
Steps to Reproduce
Create Contenttype
Create a new contenttype called Test.
Add a text field called title.
Add a binary field.
Create Contentlet
Create a new Test contentlet.
Add a title value.
Upload an asset (image or video).
Check the response of the Content API/GraphQL.
Error: The title field will be overwritten with the file/asset name in the Content API/GraphQL response
Acceptance Criteria
The title property should not be overwritten with the file/asset name.
This videocontentlet has a title field. You can see there is a title field with this value: dotCMS Intro Animation Video. However, if you check the content API, the title is dotcms-v2.mp4.
The same happens if you run this GraphQL query:
queryContentAPI {
search(query: "+contentType:Video +identifier:c7e0a6457746152fc2fc076ee9f6737e") {
title
}
}
However, in Velocity, we are respecting the real title:
<!-- This will print dotCMS Intro Animation Video -->
<span>${contentlet.get(0).title}</span>
Importance
It's important to respect the real title because we are telling the user that the title is the file/asset name, when it's not. The Lucene Query doesn't work with the title that Content API or GraphQL returns:
"+contentType:Video +Video.title:${contentAPITitle}" // Doesn't work
"+contentType:Video +Video.title:${realTitle}" // Works
The text was updated successfully, but these errors were encountered:
rjvelazco
changed the title
Content API/GraphQL: title property inconsistency on assets
Title: Content API/GraphQL: Title Property Inconsistency on Assets
Sep 24, 2024
rjvelazco
changed the title
Title: Content API/GraphQL: Title Property Inconsistency on Assets
Content API/GraphQL: Title Property Inconsistency on Assets
Sep 24, 2024
Parent Issue
N/A
Problem Statement
There is an inconsistency between the
title
field displayed in the dotCMS admin interface and the title retrieved via the content API and GraphQL query. Thetitle
is overwritten with thefile/asset
name.Steps to Reproduce
Create
Contenttype
Test
.title
.Create Contentlet
Test
contentlet.Error: The
title
field will be overwritten with thefile/asset
name in theContent API
/GraphQL
responseAcceptance Criteria
The
title
property should not be overwritten with the file/asset name.dotCMS Version
master/trunk
Proposed Objective
Core Features
Proposed Priority
Priority 2 - Important
More Details
This
video
contentlet has a title field. You can see there is atitle
field with this value:dotCMS Intro Animation Video
. However, if you check the content API, the title isdotcms-v2.mp4
.The same happens if you run this GraphQL query:
However, in Velocity, we are respecting the real
title
:Importance
It's important to respect the real title because we are telling the user that the
title
is thefile/asset
name, when it's not. The Lucene Query doesn't work with thetitle
thatContent API
orGraphQL
returns:The text was updated successfully, but these errors were encountered: