Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-793

magnolia-rest-content-delivery does not work with endpoint with underscore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Neutral Neutral
    • None
    • 2.2.25
    • delivery
    • None

      The tours module provides several delivery endpoints with underscores. None of the endpoints work when called. Even when adjusting the security:

      bypassWorkspaceAcls: true
      

      For example, https://demo.magnolia-cms.com/.rest/delivery/tours_v1

      Reproduce

      • Create two endpoints travel.yaml and travel_v1.yaml
        $type: jcrDeliveryEndpoint_v2
        workspace: website
        bypassWorkspaceAcls: true
        depth: 2
        nodeTypes:
         - mgnl:area
        childNodeTypes:
         - mgnl:component
        
      • Try to call:
        • /.rest/delivery/tours_v1
        • /.rest/delivery/tours

      Expected
      Both endpoints should return the same content.

      Actual
      When calling the endpoint with an underscore you get the following reponse:

      {"error":{"code":"notFound","message":"Could not find resource for full path: http://demo.magnolia-cms.com/.rest/delivery/travel_v1"}}
      

        Acceptance criteria

              Unassigned Unassigned
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD