Problem Statement
When a client using the Asset API (PUT /api/v1/assets) tries to upload assets with the "System Indexed" option unchecked on the "File Asset" field of the "File Asset" content type, the API returns a 500 error. This error is not informative and makes it difficult to troubleshoot the issue. The API should handle this scenario gracefully and provide a clear error message.
Steps to Reproduce
- In dotCMS, navigate to the Content Model -> Content Types.
- Edit the "File Asset" content type.
- Edit the "File Asset" field.
- Uncheck the "System Indexed" option and save.
- Reindex the File Asset Content Type (Maintenance/INDEX tab).
- Attempt to upload a file asset using the
PUT /api/v1/assets endpoint.
- Observe the 500 Internal Server Error response.
Acceptance Criteria
dotCMS Version
Latest from main branch
Severity
Medium - Some functionality impacted
Links
Ticket support
Problem Statement
When a client using the Asset API (
PUT /api/v1/assets) tries to upload assets with the "System Indexed" option unchecked on the "File Asset" field of the "File Asset" content type, the API returns a 500 error. This error is not informative and makes it difficult to troubleshoot the issue. The API should handle this scenario gracefully and provide a clear error message.Steps to Reproduce
PUT /api/v1/assetsendpoint.Acceptance Criteria
dotCMS Version
Latest from main branch
Severity
Medium - Some functionality impacted
Links
Ticket support