Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-82408

GraphQL activity query doesn't return Confluence pages for custom domain tenant

XMLWordPrintable

      Issue Summary

      When sending the following GraphQL activity query to cc-graphql, it doesn't return the hydrated Confluence pages. This only happens to custom domain tenant.

      query activityTest {
        activity {
          myActivity {
            all(filter: {
              type: AND
              rootContainerIds: ["ari:cloud:platform::site/a52bb7b9-7fba-42bc-96f3-992b71017257"]
              arguments: {
                products: ["CONFLUENCE"]
                objectTypes: ["PAGE"]
                eventTypes: []
              }
            }) {
              edges {
                node {
                  object {
                    id
                    data { # hydration
                      ... on ConfluencePage {
                        title
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      

      Steps to Reproduce

      1. Go to this custom domain staging tenant cctesting-active.stg.customdomains.com.co. Browse a few Confluence pages.
      2. Send the above query to cc-graphql. Use this link for convenience.

      Expected Results

      In the response, data should contain the page title.

      {
        "data": {
          "activity": {
            "myActivity": {
              "all": {
                "edges": [
                  {
                    "node": {
                      "object": {
                        "id": "ari:cloud:confluence:7553cfaa-fa16-484f-87f8-6c9b7f448d77:page/625624665",
                        "data": {
                          "title": "some title"
                        }
                      }
                    }
                  },
                  {
                    "node": {
                      "object": {
                        "id": "ari:cloud:confluence:7553cfaa-fa16-484f-87f8-6c9b7f448d77:page/785217928",
                        "data": {
                          "title": "some title"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      }
      

      Actual Results

      In the response, data is null.

      {
        "data": {
          "activity": {
            "myActivity": {
              "all": {
                "edges": [
                  {
                    "node": {
                      "object": {
                        "id": "ari:cloud:confluence:7553cfaa-fa16-484f-87f8-6c9b7f448d77:page/625624665",
                        "data": null
                      }
                    }
                  },
                  {
                    "node": {
                      "object": {
                        "id": "ari:cloud:confluence:7553cfaa-fa16-484f-87f8-6c9b7f448d77:page/785217928",
                        "data": null
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      }
      

      The below error message is in the cc-graphql error log.

      Field was filtered by policy check. Cannot evaluate custom domains security policy: “X-Forwarded-Host” header is missing. Please add this header to your requests.
      

      Note that there is a secondary issue that the GraphQL error is not included in the response.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              xma@atlassian.com Xiao Ma
              xma@atlassian.com Xiao Ma
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: