Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22055

REST path string parameters are not fully validated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Low Low
    • Resolution: Fixed
    • Affects Version/s: 5.3-dev
    • Fix Version/s: 5.3
    • Component/s: Platform > REST API v2
    • Labels:
      None

      Description

      As a result a GET on /api/ezp/v2/content/locations/1/5/13/15 and /api/ezp/v2/content/locations/42/42/42/42/15 produce the same result while the later should generate a 404

      edit:
      This also happens with:

      GET /user/groups/{group-path}
      

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          Pull-request: ezpublish-kernel#651.

          Show
          Bertrand Dunogier added a comment - Pull-request: ezpublish-kernel#651 .
          Hide
          Marcos Loureiro (Inactive) added a comment - - edited

          Notice that this also happens for

          GET /user/groups/{group-path}
          

          Show
          Marcos Loureiro (Inactive) added a comment - - edited Notice that this also happens for GET /user/groups/{group-path}
          Hide
          Bertrand Dunogier added a comment -
          Show
          Bertrand Dunogier added a comment - Fixed for both /content/locations and /user/groups in https://github.com/ezsystems/ezpublish-kernel/commit/d88cc6e068a22ca285c3faeef9cba8f44c402948 .
          Hide
          Joao Pingo (Inactive) added a comment -

          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 1 hour, 9 minutes Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 1 hour, 9 minutes Remaining Estimate - 1 hour
                1h 9m