Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail::AddressList can not parse error when S/MIME or PGP integration is active #5178

Closed
ChibangLW opened this issue May 17, 2024 · 0 comments
Assignees
Milestone

Comments

@ChibangLW
Copy link

Used Zammad Version

6.3

Environment

  • Installation method: package
  • Operating system (if you're unsure: cat /etc/os-release ): ubuntu 22.04
  • Database + version: postgresql 15
  • Elasticsearch version: 7.17
  • Browser + version: [e.g. chrome 83, safari 14, firefox 105]

Actual behaviour

When creating a ticket and selecting a customer, an error message is displayed.

Mail::AddressList can not parse |max.musterman@example.de,Max Mustermann|: Only able to parse up to "max.musterman@example.de,Max Mustermann"

The corresponding production.log shows this error:

RROR -- : Mail::AddressList can not parse |max.musterman@example.de,Max Mustermann|: Only able to parse up to "max.musterman@example.de,Max Mustermann" (Mail::Field::IncompleteParseError)
lib/secure_mailing/backend/handler_security_options.rb:115:in `new'
lib/secure_mailing/backend/handler_security_options.rb:115:in `verified_recipient_addresses'
lib/secure_mailing/backend/handler_security_options.rb:108:in `can_encrypt?'
lib/secure_mailing/backend/handler_security_options.rb:61:in `check_encryption'
lib/secure_mailing/backend/handler_security_options.rb:32:in `process'
app/controllers/integration/smime_controller.rb:93:in `search'
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'

If the S/MIME integration is disabled the error does not show. It looks like the error does not impact the functionality but seeing a 500 Server Error every time you input a customer is not good.

Expected behaviour

Just input the customer and no error popup displayed.

Steps to reproduce the behaviour

  1. Enable S/MIME integration
  2. Create new outbound mail ticket
  3. Select customer
  4. Error message is displayed

It could be related to #5166.

Support Ticket

No response

I'm sure this is a bug and no feature request or a general question.

yes

@martini martini self-assigned this May 17, 2024
@martini martini added this to the 6.3 milestone May 17, 2024
@martini martini changed the title Mail::AddressList can not parse error when S/MIME integration is active Mail::AddressList can not parse error when S/MIME or PGP integration is active May 17, 2024
zammad-sync added a commit that referenced this issue May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants