Missing required value for field 'body'

Infos:

  • Used Zammad version: 6.1
  • Used Zammad installation type: (source, package, docker-compose, …)
  • Operating system: Debian 12
  • Browser + version: Chrome, Safari, Firefox latest version

Expected behavior:

  • Create a ticket.

Actual behavior:

  • Ticket creation failed with popup “Missing required value for field ‘body’”

Steps to reproduce the behavior:

  • Upgrade from 6.1 to 6.2

After upgrading Zammad starts normally, but we can not create a new ticket. Always getting: “Missing required value for field ‘body’”
I think in the log is also missing the organisation_id?!
Never mind if we create a call or email.
Tried to downgrade to an older Version of 6.2 and go back to 6.1 doesn’t help.
Luckily we had a backup of the whole VM :wink:

Here is the excerpt from the log file (modified personal data)

I, [2024-02-03T10:27:18.579412#4520-144120]  INFO -- : Started POST "/api/v1/tickets" for 192.168.0.242 at 2024-02-03 10:27:18 +0100
I, [2024-02-03T10:27:18.584638#4520-144120]  INFO -- : Processing by TicketsController#create as JSON
I, [2024-02-03T10:27:18.584703#4520-144120]  INFO -- :   Parameters: {"title"=>"adsafdd", "group_id"=>"14", "owner_id"=>"3", "customer_id"=>"3", "state_id"=>"2", "priority_id"=>"2", "article"=>{"to"=>"EDV", "from"=>"Max Mustermann <user@example.com>", "body"=>"[FILTERED]", "type_id"=>5, "sender_id"=>2, "form_id"=>"952509072", "content_type"=>"text/html"}, "tags"=>"EDV", "organization_id"=>"", "id"=>"c-287"}
E, [2024-02-03T10:27:18.703066#4520-144120] ERROR -- : Missing required value for field 'body'! (Exceptions::ApplicationModel)
app/models/concerns/checks_core_workflow.rb:69:in `block in check_mandatory'
app/models/concerns/checks_core_workflow.rb:63:in `each_key'
app/models/concerns/checks_core_workflow.rb:63:in `check_mandatory'
app/models/concerns/checks_core_workflow.rb:41:in `validate_workflows'
app/controllers/tickets_controller.rb:165:in `block in create'
app/models/transaction.rb:17:in `block in execute'
app/models/transaction.rb:14:in `execute'
app/models/transaction.rb:26:in `execute'
app/controllers/tickets_controller.rb:85:in `create'
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'
I, [2024-02-03T10:27:18.705693#4520-144120]  INFO -- : Completed 422 Unprocessable Entity in 121ms (Views: 0.2ms | ActiveRecord: 47.8ms | Allocations: 46415)```

We are seeing the same ERROR in one of our webapps:

I, [2024-02-03T17:08:28.993557#369765-143660]  INFO -- : Started POST "/api/v1/tickets" for [FILTERED] at 2024-02-03 17:08:28 +0100
I, [2024-02-03T17:08:28.997075#369765-143660]  INFO -- : Processing by TicketsController#create as */*
I, [2024-02-03T17:08:28.997139#369765-143660]  INFO -- :   Parameters: {"title"=>" [FILTERED] ", "group"=>" [FILTERED] ", "customer_id"=>34, "article"=>{"subject"=>" [FILTERED] ", "body"=>"[FILTERED]", "type"=>"note", "internal"=>false}}
E, [2024-02-03T17:08:29.082482#369765-143660] ERROR -- : Missing required value for field 'body'! (Exceptions::ApplicationModel)
app/models/concerns/checks_core_workflow.rb:69:in `block in check_mandatory'
app/models/concerns/checks_core_workflow.rb:63:in `each_key'
app/models/concerns/checks_core_workflow.rb:63:in `check_mandatory'
app/models/concerns/checks_core_workflow.rb:41:in `validate_workflows'
app/controllers/tickets_controller.rb:165:in `block in create'
app/models/transaction.rb:17:in `block in execute'
app/models/transaction.rb:14:in `execute'
app/models/transaction.rb:26:in `execute'
app/controllers/tickets_controller.rb:85:in `create'
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-02-03T17:08:29.087450#369765-143660] ERROR -- : Error ID hlQQmcw2: Missing required value for field 'body'!
I, [2024-02-03T17:08:29.087730#369765-143660]  INFO -- : Completed 422 Unprocessable Entity in 91ms (Views: 0.1ms | ActiveRecord: 23.2ms | Allocations: 30506)

The “body” field is filled in regularly, so it is possible that the error description is incorrect. We are currently investigating the issue, I will let you know if we find the source of this error.

1 Like

The hotfix worked like a charm, thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.