Skip to content

Don't try to write readonly id property after indexing #2230

Closed
@sothawo

Description

@sothawo

In AbstractElasticsearchTemplate.updateIndexedObject() the following code is used to set the id property of an entity:

if (indexedObjectInformation.getId() != null && idProperty != null
		&& idProperty.getType().isAssignableFrom(String.class)) {
	propertyAccessor.setProperty(idProperty, indexedObjectInformation.getId());
}

Here it must be checked as well if the id property is writeable - check reactive part as well

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions