Infos:
- Used Zammad version: Zammad Version 6.1.0-1701845240.5a81e629.jammy
- Used Zammad installation type: package
- Operating system: Ubuntu 22.04.4 LTS
- Browser + version: Firefox 130.0 + Chromium 127
Expected behavior:
- Click on “My Organization Tickets” will load and list the ticket of the customer’s organisation. This works out of the box for all but one customer. This one customer has multiple views (Overviews). All customer-specific views do load and show the tickets correctly without an error (including generic/template view “My Tickets”).
Actual behavior:
- Loading “My Organization Tickets” results in StatusCode: 500 (Please contact your administrator)
- Backlog says:
E, [2024-09-09T08:32:38.147938#3697374-10752920] ERROR -- : undefined method `assets' for nil:NilClass
group.assets(data)
^^^^^^^ (NoMethodError)
app/models/ticket/assets.rb:36:in `assets'
app/controllers/ticket_overviews_controller.rb:51:in `block (2 levels) in show'
app/controllers/ticket_overviews_controller.rb:49:in `each'
app/controllers/ticket_overviews_controller.rb:49:in `block in show'
app/controllers/ticket_overviews_controller.rb:44:in `each'
app/controllers/ticket_overviews_controller.rb:44:in `show'
app/controllers/application_controller/has_download.rb:17:in `block (4 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:16:in `block (3 levels) in <module:HasDownload>'
app/controllers/application_controller/has_download.rb:15:in `block (2 levels) in <module:HasDownload>'
app/controllers/application_controller/handles_transitions.rb:16:in `handle_transaction'
E, [2024-09-09T08:32:38.152490#3697374-10752920] ERROR -- : Error ID 3G9A9nX3: undefined method `assets' for nil:NilClass
group.assets(data)
^^^^^^^
I, [2024-09-09T08:32:38.152828#3697374-10752920] INFO -- : Completed 500 Internal Server Error in 2396ms (Views: 0.2ms | ActiveRecord: 242.8ms | Allocations: 835357)
Steps to reproduce the behavior:
- I do not know how to reproduce the error, this seems to be specific for this customer. When trying to recreate the issue with another customer - creating organisation-specific views - there is no such problem.
- From the backlog I assume that one of the returned objects of the array(?) -
group
- isnil
which zammad/rails tries to execute the methodassets
on. Is there a way to find out what group has that problem? - Is this possibly a problem on the data-level of the Zammad-Installation? AFAIK this problem even occured for this customer before upgrading from Zammad 6.0 (and less)
- I have executed rebuild/cleanup-processes such as
rails r “Rails.cache.clear”
rake zammad:searchindex_rebuild
- Please let me know if I can provide more information
- Thank you!