[MAGNOLIA-3597] Attach a File with MailAttachment on Windows platform Created: 29/Mar/11 Updated: 15/Aug/13 Resolved: 15/Aug/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 4.4.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Vincent Gombert | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows + JDK 1.6 + Tomcat 5.5 |
||
| Issue Links: |
|
||||||||||||
| 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)
|
||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||
| Date of First Response: | |||||||||||||
| Description |
|
Using constructor info.magnolia.module.mail.templates.MailAttachment(File, String, String, String) results to an UnknownHostException while java mail is trying to get the file on Windows. |
| Comments |
| Comment by Adrien Berthou [ 09/Jul/13 ] |
|
http://forum.magnolia-cms.com/forum/thread.html?threadId=4c4ccc94-bd1a-45c3-89a2-0e8bd158ba43 |
| Comment by Adrien Berthou [ 09/Jul/13 ] |
|
There is a missing "/" character in MailAttachment.class private static final String FILE_URL_PREFIX = "file://"; should be (notice the 3rd slash) private static final String FILE_URL_PREFIX = "file:///"; Tested on windows machine |