Updating a binary field of a node causes 404 on Webroot API
Open
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
- 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"
}]
}
- Create a node of that schema
- Verify that the node is accessible via webroot
- Upload a binary to that node
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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