You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(graphql) make graphql accept GETs (dotCMS#31396)
This pull request introduces several changes to the
`DotGraphQLHttpServlet` class in order to improve the handling of
GraphQL requests. The key modifications include adding a new request
wrapper class and updating the `doGet` method to enforce the presence of
a query id `?qid=abc123` parameter that can be used to enforce
uniqueness in the responses.
ref: dotCMS#31395
Logger.warn(DotGraphQLHttpServlet.class, "No query id (qid) provided in graphql GET . This can result in invalid cached data by both browsers and CDNs. Please provide a distinguishing query id (qid) parameter to execute a graphql query via GET, e.g. /api/v1/graphql?qid=123abc");
52
+
Try.run(()->response.sendError(500, "No query id (qid) provided. This can result in invalid cached data by both browsers and CDNs. Please provide a distinguishing query id (qid) parameter to execute a graphql query via GET, e.g. /api/v1/graphql?qid=123abc"));
0 commit comments