gentics / gentics/mesh

Updating a binary field of a node causes 404 on Webroot API

Open
#1,042 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug f/webroot
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.3

Problem

Updating a binary field in a node where the segmentField is another field makes the node unable to be found via the webroot API.

Reproducer

  1. Create this schema:
{
    "description": "asset",
    "name": "Asset",
    "displayField": "name",
    "segmentField": "slug",
    "fields": [
    {
        "name": "content",
        "label": "Content",
        "required": false,
        "type": "binary"
    },
    {
        "name": "name",
        "label": "Name",
        "required": true,
        "type": "string"
    },
    {
        "name": "slug",
        "label": "Slug",
        "required": true,
        "type": "string"
    }]
}
  1. Create a node of that schema
  2. Verify that the node is accessible via webroot
  3. Upload a binary to that node
  4. Try again to fetch the node via webroot

Expected behaviour and actual behaviour

I expect the node to be found after updating the binary field. Instead I receive a 404 error.

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

Reproduce the failure with the Asset schema from the issue: use a separate slug segmentField, verify the node through the Webroot API, upload a binary to content, and request it again. Compare the Webroot lookup before and after the binary update, then confirm that the node remains accessible after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.