Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-93635

Confluence is throwing error about CSSParser in the logs while sharing a page

      Issue Summary

      After upgrading Confluence 8.5.X to 8.6.X, Confluence is throwing errors about "CSSParser" while a page is being shared automatically or manually.

      Despite the error message, the notification will still manage to reach the recipient. However, since the error is thrown every time "NotificationSender" picks up a page, Confluence logs will get filled up with similar error messages quickly and create unnecessary noise.

      This issue is not replicable on version 8.5.X

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Set up Confluence 8.6.x
      2. Set up an SMTP mail server
      3. Share any page in Confluence to a user or email address
        • The page can even be a blank page, or simply a page with 1 line of text.

      Expected Results

      Confluence will not return any error about the page share action, considering all the required fields are filled correctly.

      Actual Results

      Confluence returns errors about "CSSParser" about the page share action.

      The below exception is thrown in the atlassian-confluence.log file:

      2023-12-13 06:17:42,078 ERROR [NotificationSender:thread-1] [web.csskit.antlr4.CSSParser] noprop PARSING noprop ERROR | should be empty
       -- url: /rest/api/content/1703937 | userName: admin | referer: https://instenv-213827-pyco.instenv.internal.atlassian.com/pages/resumedraft.action?draftId=1703937&draftShareId=ee6ef3ab-cae0-41b9-a881-dfd38b9e0ecb& | traceId: ccf4291cfb3d4e9b
      2023-12-13 06:17:42,078 ERROR [NotificationSender:thread-1] [web.csskit.antlr4.CSSParser] declaration PARSING declaration ERROR | consume until SEMICOLON, RCURLY
       -- url: /rest/api/content/1703937 | userName: admin | referer: https://instenv-213827-pyco.instenv.internal.atlassian.com/pages/resumedraft.action?draftId=1703937&draftShareId=ee6ef3ab-cae0-41b9-a881-dfd38b9e0ecb& | traceId: ccf4291cfb3d4e9b
      

      Workaround

      To suppress the error messages:
      Via "Logging and Profiling"

      1. Go to "Logging and Profiling" in the admin menu
      2. Add "cz.vutbr.web" to the list via the text box under "Add New Entry"
      3. Set logging level to "FATAL"
      4. Click on "Add Entry"
      5. Click "Save" (bottom of the "Logging and Profiling" page)
      6. Refer Configuring Logging documentation for more details regarding logging configuration in Confluence

      Via "log4j.properties" file

      1. Open up the /confluence/WEB-INF/classes/log4j.properties file
      2. Add the following line to the file:
        log4j.logger.cz.vutbr.web=FATAL 
        
      1. Save the file
      2. Apply the same changes to the rest of the nodes
      3. Perform a rolling Confluence restart

            [CONFSERVER-93635] Confluence is throwing error about CSSParser in the logs while sharing a page

            No work has yet been logged on this issue.

              a9c75a56733b Manonmani Muthukrishnan
              jwaihou Jonathan Soo
              Affected customers:
              17 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: