Attachment array keys not always available
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3366127. --> Reported by: [jurgenhaas](https://www.drupal.org/user/168924) Related to !3 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>This is a follow-up error from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/helpdesk_integration/-/work_items/3363759" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/helpdesk_integration/-/work_items/3363759</a></span> where we introduced <code>download_headers</code> and <code>method</code> as attachment headers to be used in <code>\Drupal\helpdesk_integration\PluginBase::downloadAndGetAttachmentValues</code>. But most plugins don't provide those values which leads to exceptions in Guzzle. Also, existing attachments don't have those values either.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Use default values if not present.</p>
issue