Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9753

Return a 500 status code if the persisted query cannot be stored in the cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • GraphQL Core 0.0.6
    • GraphQL
    • None

    Description

      SLING-9655 added support for GraphQL persisted queries. However, the current implementation still returns a query's cache and allows a client to perform cache retrievals even if the query was not actually stored in the cache.

      This happens due to the LRU cache implemented by org.apache.sling.graphql.core.cache.SimpleGraphQLCacheProvider, which evicts the oldest entry without checking if the new entry can actually be stored when using a cache memory limit configuration.

      Attachments

        Activity

          People

            radu Radu Cotescu
            radu Radu Cotescu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: