Uploaded image for project: 'HipChat'
  1. HipChat
  2. HCPUB-4550

Chat history of rooms doesn't load

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • None
    • HCDC 3.0.0, HCDC 3.1.3, HCDC 3.1.4
    • Chat history, Data Center
    • None
    • Severity 1 - Critical

      Summary

      The chat history of some rooms will not load.

      Environment

      • Hipchat Data Center 3.1.3
      • All clients are impacted

      Steps to Reproduce

      We do not have an exact list of steps to reproduce.

      Actual Results

      Using the web client, the browser's JavaScript shows errors with:
      uncaught exception: badformat
      The same error is also visible in the client logs.

      Notes

      • No server-side errors are logged
      • The issue impacts rooms with large messages from integrations, especially message in HTML format
      • The root cause of the issue is a bug in raw mode of Punjab, the HTTP to XMPP translator

      Workaround

      The workaround of the issue is to disable Punjab's raw mode:

      1. Comment out the following line in /etc/init.d/punjab:
        PLUGIN_OPTS="$PLUGIN_OPTS --use_raw"
        

        or remove --use_raw if your line looks as follows:

        PLUGIN_OPTS="--white_list=.hipchat.com --site_log_file=/dev/null --route_override=xmpp:127.0.0.1:5222 --use_raw"
        
      1. Restart Punjab
        service punjab restart
        

      Punjab's raw mode includes performance improvements, disabling it may degrade chat performance in highly loaded or under-resourced environments.
      Reach out to Atlassian Support if you run into any issues.

              Unassigned Unassigned
              adridi Arbi Dridi
              Archiver:
              mandreacchio Michael Andreacchio

                Created:
                Updated:
                Resolved:
                Archived: