email sender fails to recognize BOM in the email template
---------------------------------------------------------

                 Key: DS-799
                 URL: https://jira.duraspace.org/browse/DS-799
             Project: DSpace
          Issue Type: Bug
          Components: DSpace API
    Affects Versions: 1.7.0
            Reporter: Ivan Masár


I noticed, that when I received a localized email in 1.7.0, it also included 
the first commented line. I suspected the email sender read the UTF-8 BOM and 
since the line started with a different character than '#', it included it in 
the message. So I removed the BOM and the comment was gone from the message. 
Interestingly, this wasn't a problem in 1.6.0. I tested this with the localized 
change_password email template.

I found this: 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058 

The problematic method is getEmail() at 
dspace-api/src/main/java/org/dspace/core/ConfigurationManager.java:587 
According to the bug, it won't be fixed upstream, we have to fix it in DSpace. 
There are some suggestions in the comments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to