[MGNLREST-46] Nodes and properties endpoints do not allow operations on the root node Created: 07/Jan/14  Updated: 28/Jan/14  Resolved: 07/Jan/14

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.2

Type: Bug Priority: Critical
Reporter: Tobias Mattsson Assignee: Tobias Mattsson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Requests targeting the root node does not match the JAX-RS @Path descriptors making it impossible to query the root with GET or create nodes under the root with PUT.

Neither with or without a trailing slash works.

Proposed solution:

This path pattern appears to work:

@Path("/{workspace}{path:(/.+)?}")


 Comments   
Comment by Philip Mundt [ 10/Jan/14 ]

Check on line 165 in info.magnolia.rest.service.node.v1.NodeEndpoint doesn't allow creating nodes on root level if one doesn't set the path property to the wrong value of e.g. "//test".

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