You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Thierry Ygé (Jira)" <ji...@apache.org> on 2022/04/04 11:22:00 UTC

[jira] [Created] (SLING-11248) Post empty body should fail gracefully

Thierry Ygé created SLING-11248:
-----------------------------------

             Summary: Post empty body should fail gracefully
                 Key: SLING-11248
                 URL: https://issues.apache.org/jira/browse/SLING-11248
             Project: Sling
          Issue Type: Bug
          Components: GraphQL
    Affects Versions: GraphQL Core 0.0.12
            Reporter: Thierry Ygé
            Assignee: Dirk Rudolph
             Fix For: GraphQL Core 0.0.14


The GraphQLServlet may produce a NaN for the cache hit rate metric resulting in a hard to parse json. 

 
{code:java}
"sling:org.apache.sling.graphql.core.servlet.GraphQLServlet.rt:my/rt.m:GET_POST.e:json.cache_hit_rate": {
            "value": NaN
        }{code}

NaN is not an allowed value according to https://www.json.org/json-en.html



--
This message was sent by Atlassian Jira
(v8.20.1#820001)