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

No error message when passing a wrong parameter on /content/typegroups

    Details

    • Type: Bug Bug
    • Status: Confirmed
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: Engineering tracked issues, 5.0, 5.1, 5.2
    • Fix Version/s: None
    • Component/s: Platform > REST API v2
    • Labels:

      Description

      When passing a wrong parameter the server ignores it and returns the complete content type group list.
      e.g. .../content/typegroups?identifie=Media
      here an error message should be returned when passing from parameters.

        Activity

        Hide
        Bertrand Dunogier added a comment -

        To be done properly, this should be done at a higher level. Every resource may potentially return such an error, and it would be a very bad idea to do it manually in every controller, at least for maintainability.

        Furthermore, the current implementation makes it very hard, if not impossible, to test this.

        Show
        Bertrand Dunogier added a comment - To be done properly, this should be done at a higher level. Every resource may potentially return such an error, and it would be a very bad idea to do it manually in every controller, at least for maintainability. Furthermore, the current implementation makes it very hard, if not impossible, to test this.
        Hide
        Damien Pobel (Inactive) added a comment - - edited

        Needs to be verified for others resources

        Show
        Damien Pobel (Inactive) added a comment - - edited Needs to be verified for others resources

          People

          • Assignee:
            Unassigned
            Reporter:
            Christian Bacher (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: