Uploaded image for project: 'Magnolia GraphQL'
  1. Magnolia GraphQL
  2. MGNLGQL-52

Return short error message for content walled off by access rights

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None
    • HL & LD 11
    • 3

    Description

      Currently, a relatively long stacktrace is returned (50kB or so), if the requested content, e.g. authors { name }

      {
          bookshelf(id: "c2a5ea72-6611-4f70-8005-42e8694fc610") {
              title
              authors {
                  name
              }
          }
      }
      

      resides in a repo (Authors) which the user role has no access to:

      {
          "status": 500,
          "errors": [
              {
                  "message": "Exception while fetching data (/bookshelf/authors) : javax.jcr.ItemNotFoundException: b1bc15d1-e2d4-4d20-8491-1a42689bb003",
                  "path": [
                      "bookshelf",
                      "authors"
                  ],
                  "exception": {
                      "cause": {
                          "cause": null,
                          "stackTrace": [
                              {
                                  "methodName": "g ...
      

       

       

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rsiska Robert Šiška
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR