gentics / gentics/mesh

Missing property in schema update should default to previous value

Open
#1,072 0 comments 0 reactions 0 assignees View on GitHub
bug f/schema
Dominant language
Java
Stars
593
Forks
123
Avg merge
2d 18h
Merged PRs (30d)
4

Description

## Gentics Mesh Version, operating system, or hardware.
- v1.4.x

## Problem

When omitting a property in a schema update request, Mesh sometimes assumes the default value instead of the value from the previous version.

I confirmed this is the case with the description and the label of fields. Other properties could be affected as well.

This might also affect other requests than schema updates. For schemas, this is however especially bad, because this causes a costly schema migration.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing a schema update request that omits the description or label, then trace the schema update request handling to find where omitted properties receive defaults. Done means omitted properties retain their previous values and schema updates no longer trigger an unnecessary costly migration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.