Ticket updates fail when accessing Zammad via a DNS alias different from the configured FQDN

Infos:

  • Used Zammad version: Latest (7.2.1-1791280138.f3fa197.ubuntu22)
  • Used Zammad installation type: package
  • Operating system: Ubuntu 22.0.4.1
  • Browser + version: Microsoft Edge (153.0.4234.48)

Expected behavior:

Zammad should work correctly and consistently regardless of which configured DNS alias is used to access the system. Ticket changes, such as changing the priority or owner, should be applied successfully by clicking the “Update” button. The ticket interface should also display the correct fields and options according to the current ticket status.

Actual behavior:

The Zammad system is configured with the following FQDN under Settings → System → FQDN:

Zammtastic.ticket.de

In addition, several DNS aliases have been configured, for example:

Problem.Zammtastic.de

When accessing Zammad via the configured FQDN (Zammtastic.ticket.de), the system works as expected and all ticket functions operate normally.

However, when accessing Zammad via the DNS alias (Problem.Zammtastic.de), various unexpected problems occur.

For example, changes made to a ticket, such as changing the priority, cannot be applied by clicking the “Update” button. The click appears to be ignored and the change is not saved.

After reloading the page using F5 or Ctrl+F5, the functionality works once. However, when attempting to make another change afterwards, such as changing the ticket owner, the “Update” button again does not work correctly.

We have also observed inconsistent behavior in the ticket interface. For example, a ticket with the status “open” displayed the “Pending until…” field, even though this field should not be displayed for the current ticket status.

The issue is not related to the user’s permissions. We also tested the behavior using the Zammad administrator account, but the same problems occurred. Changes to tickets could still not be applied correctly when accessing Zammad via the DNS alias.

As soon as Zammad is accessed using the FQDN configured in Zammad (Zammtastic.ticket.de), all functions work as expected.

This suggests that the problem may be related to accessing Zammad through a DNS alias that differs from the FQDN configured in the Zammad system settings.

Steps to reproduce the behavior:

Configure Zammtastic.ticket.de as the FQDN under Settings → System → FQDN.
Configure a DNS alias pointing to the same Zammad system, for example Problem.Zammtastic.de.
Open Zammad using the configured FQDN Zammtastic.ticket.de.
Open an existing ticket and change a value, e.g. the priority.
Click “Update”.
Observe that the change is applied successfully.
Now access the same Zammad system using the DNS alias Problem.Zammtastic.de.
Open an existing ticket and change a value, e.g. the priority.
Click “Update”.
Observe that the change is not applied and the click appears to be ignored.
Reload the page using F5 or Ctrl+F5.
Try changing the ticket again.
Observe that the change may work once, but subsequent changes fail again.
Repeat the test with the Zammad administrator account and observe the same behavior.
Compare the behavior with access through Zammtastic.ticket.de, where the issue does not occur.

Thank you very much for your help in investigating and resolving this issue.

Zammad supports one FQDN only. You have to decide for one and use that one for everything you do. A security patch forces you down on this even more, but technically, this is a hard requirement since day one.

I’m having exactly the same problem after today’s update. On top of that, I can no longer make any adjustments to the core workflows. The FQDN matches the configuration, but my TLS endpoint is HA Proxy. I had to restore my snapshot again.

Thanks Gemini. :slight_smile:

I wanted to share the solution to an issue I ran into after updating Zammad, where the web interface suddenly stopped updating in real-time (updating tickets hung, live collision warnings were missing, and forms behaved erratically), while older snapshots worked fine.

The Setup

  • External client ➔ HAProxy / pfSense (SSL Termination / HTTPS) ➔ Nginx (HTTP / Port 80) ➔ Zammad (Puma / Rails)

Root Cause

Due to recent updates tightening Rails CSRF checks and WebSocket origin verification, mismatched protocol headers between the proxy layers broke the WebSocket handshake (/ws / /cable).

Two things were misconfigured:

  1. Nginx on the Zammad host was configured with:

    proxy_set_header X-Forwarded-Proto $scheme;
    
    

    Since HAProxy offloads SSL and connects to Nginx via plain HTTP, $scheme evaluated to http. This caused Nginx to overwrite the X-Forwarded-Proto: https header sent by HAProxy, effectively telling Rails that the incoming request was unencrypted http. This caused Rails to reject the WebSocket handshake due to an Origin mismatch (Origin: https://... vs. http).

  2. Zammad’s internal setting http_type was set to http instead of https.

The Solution

1. Fix the Nginx proxy headers
In your Zammad Nginx configuration (/etc/nginx/sites-available/zammad.conf), make sure Nginx preserves the X-Forwarded-Proto header forwarded from the upstream reverse proxy instead of replacing it with $scheme:

Replace:

proxy_set_header X-Forwarded-Proto $scheme;

with:

proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;

(Alternatively, if all external traffic is strictly HTTPS, you can hardcode proxy_set_header X-Forwarded-Proto https;)

Then reload Nginx:

sudo nginx -t && sudo systemctl reload nginx

2. Ensure Zammad is configured for HTTPS
Run the Rails console to verify and set Zammad’s internal protocol to https:

zammad run rails r "Setting.set('http_type', 'https')"

3. Verify

  • Open DevTools (F12) ➔ Network ➔ WS.
  • The connection to wss://<your-fqdn>/ws (or /cable) should now establish cleanly with status 101 Switching Protocols (or 200 OK / accepted handshake) and Sec-Websocket-Accept in the response headers.
  • Ticket updates, live typing collision warnings, and form submissions should now work instantly without refreshing.

Hopefully, this helps anyone running into WebSocket/CSRF issues behind an SSL-offloading proxy chain!

After reading your microwave solution, I honestly get the feeling that you might have missed breaking changes of Zammad 7.2.

Essentially this part: zammad/BREAKING_CHANGES.md at develop · zammad/zammad · GitHub

Which basically overwrites everything from upstream proxy servers:

Zammad is built around one hostname. The browser keeps the session, CSRF token and WebSocket connection per hostname, and several parts of the UI build URLs from the FQDN setting. When you work on an alias, the WebSocket and some requests end up on a different origin, so the ticket form gets out of sync. That matches the Update button working once after a reload and then failing.

The clean fix is to not serve Zammad on the aliases at all, but redirect them to the real FQDN in your web server. In nginx, add a separate server block for the aliases:

server {

listen 443 ssl;

server_name Problem.Zammtastic.de;

(your ssl certificate lines)

return 301 https://Zammtastic.ticket.de$request_uri;

}

Do the same for port 80 if needed, then reload nginx. Users can keep the old addresses, they simply land on the configured name.