[MGNLREST-74] PUT request fails with 400 code if a new node has any subnodes Created: 22/Sep/16  Updated: 25/Mar/22

Status: Open
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: 1.1.2, 2.2.1
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Ondrej Chytil Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: y2k
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MGNLREST-78 PUT request fails to create properties Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

PUT request works only if adding a single node. If such node contains any subnode(s) the request fails with 400 code.
Tested on REST tools and via curl.
Sample data:

{
  "name": "test",
  "type": "mgnl:page",
  "path": "/test",
  "properties": [],
  "nodes": [
    {
      "name": "test",
      "type": "mgnl:page",
      "path": "/test/test",
      "properties": []
    }
  ]
}

Generated at Mon Feb 12 06:56:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.