[MAGNOLIA-1313] mail: handle casting of attachements more safely Created: 26/Jan/07  Updated: 23/Jan/13  Resolved: 31/Jan/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.0.1
Fix Version/s: 3.0.2

Type: Improvement Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

the command uses the attribute attachement by accepting a object of type MailAttachement where all mail types subtyping HtmlMail are using the attribute casting to ArrayList. Both pieces of code should check the type and handle the list or the atom object.

The type ArrayList should be replaced by the more general type List



 Comments   
Comment by Boris Kraft [ 09/Mar/07 ]

fix typo

Comment by Boris Kraft [ 09/Mar/07 ]

fix typo

Generated at Mon Feb 12 03:25:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.